diff options
| author | Horus3 | 2014-03-12 22:11:50 +0100 |
|---|---|---|
| committer | Horus3 | 2014-03-12 22:11:50 +0100 |
| commit | 2f0f4ca056f92ffd2bbf80e7b7c49b489d6e7ed4 (patch) | |
| tree | b14d63c782c3088d904858140d947492d946e29f /www/functions/func_interface.php | |
| parent | 478a6dbc03c1ed65f5a187a6752bc130d3b82ac3 (diff) | |
| download | files.iamfabulous.de-2f0f4ca056f92ffd2bbf80e7b7c49b489d6e7ed4.tar.gz | |
more modular for greater flexibility
Diffstat (limited to 'www/functions/func_interface.php')
| -rw-r--r-- | www/functions/func_interface.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/www/functions/func_interface.php b/www/functions/func_interface.php index 0116fe6..b7fbb5f 100644 --- a/www/functions/func_interface.php +++ b/www/functions/func_interface.php @@ -1,5 +1,19 @@ <? -function show($content){ +function show($db){ + $owner = user($db, $_GET["name"]); + + if(!$owner){ + failure("This user doesn't exist!"); + } + + $parentdir = select($db, $owner); + + $content = get_content($db, $parentdir, $owner); + + if(!content){ + failure("There is no data."); + } + var_dump($content); } |
