summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
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
*