summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-03-14 16:44:44 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-03-14 16:44:44 +0100
commit1359eacbdbff842b241a85ea274a00982fec9267 (patch)
tree9b954ff7b5d656dd5b9a94fde89d690030a558ab /inc/html.php
parenta280c123d85db2bd11a95b562080baf6d225a28d (diff)
parentb981d5915250e5efe218466b608607174eb26608 (diff)
downloadrpg-1359eacbdbff842b241a85ea274a00982fec9267.tar.gz
rpg-1359eacbdbff842b241a85ea274a00982fec9267.tar.bz2
Merge pull request #574 from splitbrain/FS#2124deniedtext
Improve denied access text FS#2124
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/inc/html.php b/inc/html.php
index 41f26e5cd..4058440ca 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -64,6 +64,20 @@ function html_login(){
print '</div>'.NL;
}
+
+/**
+ * Denied page content
+ *
+ * @return string html
+ */
+function html_denied() {
+ print p_locale_xhtml('denied');
+
+ if(!$_SERVER['REMOTE_USER']){
+ html_login();
+ }
+}
+
/**
* inserts section edit buttons if wanted or removes the markers
*