blob: 0c765f4d0666209c4d330498588bf60b93139d84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?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);
$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");
}
|