summaryrefslogtreecommitdiff
path: root/lib/image/delfld.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/delfld.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/delfld.php')
-rw-r--r--lib/image/delfld.php16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/image/delfld.php b/lib/image/delfld.php
deleted file mode 100644
index a018b7a..0000000
--- a/lib/image/delfld.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-assert_redir(count($args) >= 3, 'image');
-$fldid = intval($args[2]);
-
-$fld = mysql_fetch_assoc(sql(
- "SELECT id, name, comment, public, owner ".
- "FROM img_folders WHERE id = $fldid"
- ));
-assert_error($fld && $fld['owner'] == $user['id'],
- "This folder does not exist, or you are not allowed to edit it.");
-
-token_validate("Do you really want to delete this folder ?", "folder-image-$fldid");
-sql("DELETE FROM img_folders WHERE id = $fldid");
-sql("UPDATE images SET folder = 0 WHERE folder = $fldid");
-header("location: image");