diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 00:57:06 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 00:57:40 -0500 |
commit | 42133f38d223a2b3b81d309f2d1a983ef2012485 (patch) | |
tree | a9a01095cbb54474e83f8ec220a15991542819e1 /lib/ui.lib.php | |
parent | 5f02e4f43cb1423653c156e612da53e4c5938583 (diff) | |
download | ampache-42133f38d223a2b3b81d309f2d1a983ef2012485.tar.gz ampache-42133f38d223a2b3b81d309f2d1a983ef2012485.tar.bz2 ampache-42133f38d223a2b3b81d309f2d1a983ef2012485.zip |
Move access_denied() from lib/ui.lib.php to UI
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r-- | lib/ui.lib.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 45c87016..f767c55b 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -49,20 +49,6 @@ function show_confirmation($title,$text,$next_url,$cancel=0,$form_name='confirma } // show_confirmation /** - * access_denied - * Throws an error if they try to do something that they aren't allowed to. - */ -function access_denied($error = "Access Denied") { - - // Clear any crap we've got up top - ob_end_clean(); - header("HTTP/1.1 403 $error"); - require_once Config::get('prefix') . '/templates/show_denied.inc.php'; - exit; - -} // access_denied - -/** * return_referer * returns the script part of the referer address passed by the web browser * this is not %100 accurate. Also because this is not passed by us we need |