From: niekt0 Date: Wed, 3 Nov 2010 00:55:00 +0000 (+0100) Subject: upload files fix X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=a081a6fd9e8fd6a75cc95c1f1b4062c360f0fc0b;p=mirrors%2FKyberia-bloodline.git upload files fix --- diff --git a/wwwroot/inc/eventz/upload_data_file.inc b/wwwroot/inc/eventz/upload_data_file.inc index ea00274..070d758 100644 --- a/wwwroot/inc/eventz/upload_data_file.inc +++ b/wwwroot/inc/eventz/upload_data_file.inc @@ -26,6 +26,8 @@ function upload_data_file() { mkdir(FILE_DIR.$_SESSION['user_id']); } + $suffix = array_pop(explode('.', basename($_FILES['data_file']['name']))); + if ($suffix=='zip' && $_POST['unzip']) { mkdir(TMP."/".$_FILES['data_file']['name']);