summaryrefslogtreecommitdiff
path: root/lib/image/index.php
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-06-21 16:34:27 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-06-21 16:34:27 +0200
commit889e8eaf7c40817663dd602a21ac771062ccac3b (patch)
treeca8ac81ee202165333e5ffe16147d09e5cdaf2ab /lib/image/index.php
parent5c4caed8560d5fded00525844dfa8386b97e7918 (diff)
downloadBits-889e8eaf7c40817663dd602a21ac771062ccac3b.tar.gz
Bits-889e8eaf7c40817663dd602a21ac771062ccac3b.zip
Big change, sir. Can now upload any kind of files.
Diffstat (limited to 'lib/image/index.php')
-rw-r--r--lib/image/index.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/lib/image/index.php b/lib/image/index.php
deleted file mode 100644
index b9748dc..0000000
--- a/lib/image/index.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-
-require("lib/conf/image.php");
-
-$filters = array (
- "order" => array (
- "name" => "title",
- "upl_date" => "date uploaded",
- "folder_name" => "folder",
- ),
- "way" => $ord_ways,
-);
-$fdefaults = array (
- "order" => "name",
- "way" => "ASC",
-);
-
-$title = "Image upload";
-
-$images = array();
-$files = sql("SELECT images.id AS id, images.name AS name, images.extension AS extension, images.upl_date AS upl_date, ".
- "images.comment_html AS comment_html, img_folders.id AS folder_id, img_folders.name AS folder_name ".
- " FROM images LEFT JOIN img_folders ON img_folders.id = images.folder ".
- "WHERE images.owner = " . $user['id'] .
- " ORDER BY " . get_filter('order') . " " . get_filter('way'));
-while ($img = mysql_fetch_assoc($files)) $images[] = $img;
-
-/*if (count($images) >= $quota && $user['priv'] < $min_priv_for_no_quota) {
- $error = "You have already exceeded your quota of $quota uploadable images.";
- $can_upload = false;
-} else */
-
-if ($user['priv'] < $apps['image']['upload']) {
- $error = "You don't have the rights to upload images.";
- $can_upload = false;
-} else {
- $can_upload = true;
-}
-
-$folders = array();
-$r = sql("SELECT id, name FROM img_folders WHERE owner = " . $user['id'] . " ORDER BY name ASC");
-while ($f = mysql_fetch_assoc($r)) {
- $folders[] = $f;
-}
-
-$can_delete = ($user['priv'] >= $apps['image']['delete'] && $user['id'] != 0);
-$can_rename = ($user['priv'] >= $apps['image']['editinfo'] && $user['id'] != 0);
-
-require("tpl/image/index.php");