From d14a08c618c8ea38b7fad26bee6fee51ea55b9c6 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Fri, 30 Nov 2007 06:57:34 +0000 Subject: tweaked the denied page, made it a little prettier and added conditional note for demos --- lib/ui.lib.php | 6 ++---- templates/show_denied.inc.php | 49 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 templates/show_denied.inc.php diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 9ab7650d..10924f08 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -88,10 +88,8 @@ if (!function_exists('_')) { */ function access_denied() { - echo "


"; - echo "
" . _("Error Access Denied") . "
\n"; - show_footer(); - exit(); + require_once Config::get('prefix') . '/templates/show_denied.inc.php'; + exit; } // access_denied diff --git a/templates/show_denied.inc.php b/templates/show_denied.inc.php new file mode 100644 index 00000000..fbd4bbab --- /dev/null +++ b/templates/show_denied.inc.php @@ -0,0 +1,49 @@ + + + + + +Ampache -- Debug Page + + + + +

+ +You've been redirected to this page because you do not have access to this function. If you believe this is an error please +contact an Ampache administrator. This event has been logged + +You've been redirected to this page because you've attempted to access a function that is disabled in the demo. +Functions are disabled in the demo because previous users of the demo have used the functionality to post inappropriate materials + +

+
+

Ampache
+Pour l'Amour de la Musique.

+
+ + -- cgit