summaryrefslogtreecommitdiff
path: root/www/functions/func_interface.php
diff options
context:
space:
mode:
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);
}