diff options
| author | root | 2014-03-22 02:14:04 +0100 |
|---|---|---|
| committer | root | 2014-03-22 02:14:04 +0100 |
| commit | f1840d40760abb9869bd218ca510eceb94f86478 (patch) | |
| tree | 5e7afdd68c2e639bfa89c91fa3da07749b4fc093 /www/functions/func_download.php | |
| parent | 296d8a14511739a15327ffe30c0895cd3490e940 (diff) | |
| download | files.iamfabulous.de-f1840d40760abb9869bd218ca510eceb94f86478.tar.gz | |
Differences between folder_is_empty and file_not_found. TODO: Extra design for empty folder.
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]; |
