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

function show($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.");
	}

	var_dump($content);
}