From d0060968b77c39bdf8abffb071c971c166b59edb Mon Sep 17 00:00:00 2001 From: Nicolas BERNSTEIN Date: Sat, 17 Sep 2011 16:48:29 +0200 Subject: First commit. --- lib/image/index.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lib/image/index.php (limited to 'lib/image/index.php') diff --git a/lib/image/index.php b/lib/image/index.php new file mode 100644 index 0000000..01c0928 --- /dev/null +++ b/lib/image/index.php @@ -0,0 +1,23 @@ += $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; +} + +$can_delete = ($user['priv'] >= $apps['image']['delete'] && $user['id'] != 0); + +require("tpl/image/index.php"); -- cgit v1.2.3