summaryrefslogtreecommitdiff
path: root/www/functions/func_content.php
diff options
context:
space:
mode:
authorHorus32014-03-16 21:18:48 +0100
committerHorus32014-03-16 21:18:48 +0100
commit0665ea1e03f2bbb269e33ab78e4271eabe8f6442 (patch)
tree0b0a736ed9896844d7827b5bfbf8c9a875cbe7af /www/functions/func_content.php
parente6f9dea9a5a3c450847cdf1a11f77633fca09e43 (diff)
downloadfiles.iamfabulous.de-0665ea1e03f2bbb269e33ab78e4271eabe8f6442.tar.gz
Some comments in the doc and renaming stuff.
Diffstat (limited to 'www/functions/func_content.php')
-rwxr-xr-xwww/functions/func_content.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/www/functions/func_content.php b/www/functions/func_content.php
index 7e2281b..9500f06 100755
--- a/www/functions/func_content.php
+++ b/www/functions/func_content.php
@@ -1,8 +1,8 @@
<?php
-function get_content($db, $parentdir, $owner){
+function get_content($db, $file_id, $owner){
- $content_db = $db->query("SELECT * FROM files WHERE parent=" . $parentdir . " AND owner=" . $owner . ";");
+ $content_db = $db->query("SELECT * FROM files WHERE parent=" . $file_id . " AND owner=" . $owner . ";");
$count=0;
@@ -20,8 +20,8 @@ function get_content($db, $parentdir, $owner){
}
if(!empty($content)){
- return $content;
+ return $content; // returns everything listed in the folder which is commited as parameter
} else {
- return false;
+ return false; // empty folder
}
}