Debugged upload_data_file method unified for upload_data_file & add eventz and moved...
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / upload_data_file.inc
index 7c21f3ae8b83bd0e84ceba2dffbb3889e0e5fee6..3af0a9381d2c6d094fcbc8f8a428dd0f44e14454 100644 (file)
@@ -14,18 +14,8 @@ function upload_data_file() {
        }
 
        $node_id=$node['node_id'];
-       
-       if ( !filez::upload_filename_secure($_FILES['data_file']['name'])) {
-               $error = 'bad, naughty file type. Cruise missile launched.';
-               return false;
-       }
-
-       if (!is_dir(FILE_DIR.$_SESSION['user_id'])) {
-                mkdir(FILE_DIR.$_SESSION['user_id']);
-       }
-
-       $suffix = array_pop(explode('.', basename($_FILES['data_file']['name'])));
-
+       filez::upload_data_file($node_id);      
+/*
        if ($suffix=='zip' && $_POST['unzip']) {
                mkdir(TMP."/".$_FILES['data_file']['name']);
 
@@ -92,7 +82,8 @@ function upload_data_file() {
                copy($_FILES['data_file']['tmp_name'],
                        FILE_DIR.$_SESSION['user_id'].'/'.$node['node_id'].".$suffix");
                symlink(FILE_DIR.$_SESSION['user_id'].'/'.$node['node_id'].".$suffix",
-                       SYSTEM_ROOT.'/files/'.$node['node_id']);
+                       FILE_DIR.'/'.$node['node_id']);
        }
+*/
 }
 ?>
This page took 0.137527 seconds and 4 git commands to generate.