summaryrefslogtreecommitdiff
path: root/www/functions/func_interface.php
blob: e6aa3f1bd10612874f428b967738b21a96e645b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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);
}*/