From 08e945b89d649759f40916877f40044657314d9a Mon Sep 17 00:00:00 2001 From: root Date: Fri, 21 Mar 2014 11:56:08 +0100 Subject: If you are loged in, now you can download your files. --- www/functions/func_content.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'www/functions/func_content.php') diff --git a/www/functions/func_content.php b/www/functions/func_content.php index 9500f06..f7c4629 100755 --- a/www/functions/func_content.php +++ b/www/functions/func_content.php @@ -19,6 +19,18 @@ function get_content($db, $file_id, $owner){ $count++; } +/* + var_dump($content); exit; + if($content[0][4] == "FILE"){ + if(!start_file_download($username, $folder_path)){ + echo "False!"; exit; + return false; + } else { + echo "True!"; exit; + return true; + } + } +*/ if(!empty($content)){ return $content; // returns everything listed in the folder which is commited as parameter } else { -- cgit v1.2.3