diff options
Diffstat (limited to 'www/functions/func_download.php')
| -rw-r--r-- | www/functions/func_download.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/www/functions/func_download.php b/www/functions/func_download.php index 64ca335..5770da4 100644 --- a/www/functions/func_download.php +++ b/www/functions/func_download.php @@ -21,10 +21,9 @@ function check_if_file($db, $name, $folder_path){ return false; } } else { - $content = get_path_to_empty_folder($db, $name, $folder_path); - print_empty_folder($content); + //$content = get_path_to_empty_folder($db, $name, $folder_path); + //print_empty_folder($content); //get_404("/", "Protected file"); - exit; return false; } @@ -83,6 +82,7 @@ function download_file($db, $file_id){ $file_db = $db->query("SELECT name, mime, hash FROM files WHERE id=". SQLite3::escapeString($file_id).";"); $file_ar = $file_db->fetchArray(SQLITE3_NUM); + $file_name = $file_ar[0]; $file_mime = $file_ar[1]; $file_hash = $file_ar[2]; |
