summaryrefslogtreecommitdiff
path: root/scire
diff options
context:
space:
mode:
authorPreston Cody <codeman@gentoo.org>2007-04-02 01:35:41 +0000
committerPreston Cody <codeman@gentoo.org>2007-04-02 01:35:41 +0000
commitd7cc33b79fb8cb237b54c48304c2245478cf7a81 (patch)
treea204cfd5e28d397a57e15bfdc05839301921fd49 /scire
parentdisable caching for the time being. don't think it works anyways. (diff)
downloadscire-d7cc33b79fb8cb237b54c48304c2245478cf7a81.tar.gz
scire-d7cc33b79fb8cb237b54c48304c2245478cf7a81.tar.bz2
scire-d7cc33b79fb8cb237b54c48304c2245478cf7a81.zip
adding an error page for access violations.
tells you which priviledge you needed and didn't have. svn path=/; revision=193
Diffstat (limited to 'scire')
-rw-r--r--scire/.smarty/templates/access_error.tpl9
-rw-r--r--scire/access_error.php11
2 files changed, 20 insertions, 0 deletions
diff --git a/scire/.smarty/templates/access_error.tpl b/scire/.smarty/templates/access_error.tpl
new file mode 100644
index 0000000..f38e992
--- /dev/null
+++ b/scire/.smarty/templates/access_error.tpl
@@ -0,0 +1,9 @@
+{include file="header.tpl" title="Access Denied"}
+<p>
+An error has occurred.<br>
+Unfortunatly, {$user} does not have sufficient permission to perform this action.<br>
+The requried permission was: {$perm}<br>
+Why don't you complain to your admin?
+{$message|escape:"htmlall"}
+</p>
+{include file="footer.tpl"}
diff --git a/scire/access_error.php b/scire/access_error.php
new file mode 100644
index 0000000..6e37b26
--- /dev/null
+++ b/scire/access_error.php
@@ -0,0 +1,11 @@
+<?php
+
+include('./.lib/common.php');
+
+if ($_GET['perm']) {
+ $smarty->assign('perm',$_GET['perm']);
+}
+
+$smarty->display('access_error.tpl');
+
+?>