summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-02-25 20:00:56 +0100
committerGerrit Uitslag <klapinklapin@gmail.com>2014-02-25 20:00:56 +0100
commitd59dea9fddf885a836f7dc2d8be1f93afb7e9542 (patch)
tree9a7909d30a44d2761ce92a953b427f3b1f646be9 /inc/html.php
parent2f2c518c20d6e55e20e9fc2fb0ec2053854b0d1b (diff)
downloadrpg-d59dea9fddf885a836f7dc2d8be1f93afb7e9542.tar.gz
rpg-d59dea9fddf885a836f7dc2d8be1f93afb7e9542.tar.bz2
added new html_denied() method as well
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/inc/html.php b/inc/html.php
index fcec29670..507ba511e 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -64,6 +64,25 @@ function html_login(){
print '</div>'.NL;
}
+
+/**
+ * Denied page content
+ *
+ * @return string html
+ */
+function html_denied() {
+ global $lang;
+ $denied = p_locale_xhtml('denied');
+ $notloggedin = isset($_SERVER['REMOTE_USER']) ? '' : $lang['notloggedin'];
+
+ $denied = str_replace(
+ array('@NOTLOGGEDIN@'),
+ array($notloggedin),
+ $denied
+ );
+ print $denied;
+}
+
/**
* inserts section edit buttons if wanted or removes the markers
*