summaryrefslogtreecommitdiff
path: root/www/functions/func_interface.php
diff options
context:
space:
mode:
authormoehm2014-03-21 18:40:44 +0100
committermoehm2014-03-21 18:40:44 +0100
commitcd7aeaef26bf05e42e789da6bc4a97118c40d616 (patch)
tree1a253657f8ee29fb09dd9b9f03251b0ee6eae41a /www/functions/func_interface.php
parent08e945b89d649759f40916877f40044657314d9a (diff)
downloadfiles.iamfabulous.de-cd7aeaef26bf05e42e789da6bc4a97118c40d616.tar.gz
The index.php starts the download. Also extra function to print empty folders.
Diffstat (limited to 'www/functions/func_interface.php')
-rwxr-xr-xwww/functions/func_interface.php37
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");
}