summaryrefslogtreecommitdiff
path: root/www/functions/func_interface.php
diff options
context:
space:
mode:
authorHorus32014-03-12 22:11:50 +0100
committerHorus32014-03-12 22:11:50 +0100
commit2f0f4ca056f92ffd2bbf80e7b7c49b489d6e7ed4 (patch)
treeb14d63c782c3088d904858140d947492d946e29f /www/functions/func_interface.php
parent478a6dbc03c1ed65f5a187a6752bc130d3b82ac3 (diff)
downloadfiles.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.php16
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);
}