diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-06-21 17:12:06 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-06-21 17:12:06 +0200 |
commit | 80e0f88b56ca7e306d415604c608d8bc09496e21 (patch) | |
tree | 913d120f4e245a7b95bc948d12fa913eed01d840 /lib/file/index.php | |
parent | 889e8eaf7c40817663dd602a21ac771062ccac3b (diff) | |
download | Bits-80e0f88b56ca7e306d415604c608d8bc09496e21.tar.gz Bits-80e0f88b56ca7e306d415604c608d8bc09496e21.zip |
Changes. But minor. Mostly usability changes.
Diffstat (limited to 'lib/file/index.php')
-rw-r--r-- | lib/file/index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/file/index.php b/lib/file/index.php index 34686c5..1a60a79 100644 --- a/lib/file/index.php +++ b/lib/file/index.php @@ -6,7 +6,7 @@ $filters = array ( "order" => array ( "name" => "title", "upl_date" => "date uploaded", - "folder_name" => "folder", + //"folder_name" => "folder", ), "way" => $ord_ways, ); @@ -15,13 +15,13 @@ $fdefaults = array ( "way" => "DESC", ); -$title = "Image upload"; +$title = "File upload"; $files = array(); $fileq = sql("SELECT files.id AS id, files.name AS name, files.extension AS extension, files.upl_date AS upl_date, ". "files.comment_html AS comment_html, folders.id AS folder_id, folders.name AS folder_name ". " FROM files LEFT JOIN folders ON folders.id = files.folder ". - "WHERE files.owner = " . $user['id'] . + "WHERE files.folder = 0 AND files.owner = " . $user['id'] . " ORDER BY " . get_filter('order') . " " . get_filter('way')); while ($img = mysql_fetch_assoc($fileq)) $files[] = $img; |