summaryrefslogtreecommitdiff
path: root/www/functions/func_interface.php
blob: e5e472997ba4290726526cb8c7be2cc6186e3dd4 (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);
}*/