diff options
Diffstat (limited to 'www/functions/func_interface.php')
| -rwxr-xr-x | www/functions/func_interface.php | 37 |
1 files changed, 0 insertions, 37 deletions
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 @@ <?php -function collect_content($db,$username, $folder_path){ - $owner = user_id($db, $username); - - if(!$owner){ - failure("This user doesn't exist!"); - } - - $file_id = select_file_id($db, $owner, $folder_path); - - $check_if_file_db = $db->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"); } |
