summaryrefslogtreecommitdiff
path: root/www/functions/func_interface.php
blob: 0964470e2ce1ed9b9995e812223902d559c4d909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

function collect_content($db){
	$owner = user($db, $_GET["name"]);

	if(!$owner){
		failure("This user doesn't exist!");
	}

	$file_id = select_file_id($db, $owner);
	
	$content = get_content($db, $file_id, $owner);

	if(!$content){
		failure("This folder is empty.");
	}

	return $content;
	//var_dump($content);
}