From cd7aeaef26bf05e42e789da6bc4a97118c40d616 Mon Sep 17 00:00:00 2001 From: moehm Date: Fri, 21 Mar 2014 18:40:44 +0100 Subject: The index.php starts the download. Also extra function to print empty folders. --- www/functions/func_interface.php | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'www/functions/func_interface.php') diff --git a/www/functions/func_interface.php b/www/functions/func_interface.php index 192e94f..a86fe6d 100755 --- a/www/functions/func_interface.php +++ b/www/functions/func_interface.php @@ -1,42 +1,5 @@ query("SELECT folder FROM files WHERE id=".$file_id.";"); - $check_if_file_ar = $check_if_file_db->fetchArray(SQLITE3_NUM); - - //TODO: Instead of exit; let the browser start_download or print folder content - if($check_if_file_ar[0] == "FILE"){ - if(start_file_download($username, $folder_path)){ - exit; - return true; - } else { - exit; - return false; - } - } else { - $content = get_content($db, $file_id, $owner); - } - - - /*if(!$content){ - failure("This folder is empty."); - }*/ - - return $content; -} - -/*function print_browser($content){ - var_dump($content); -}*/ - function print_invite($var){ include("invite.php"); } -- cgit v1.2.3