aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/functions_html.inc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index b0f123a14..5812856a0 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -273,7 +273,7 @@ function tag_alpha_compare($a, $b)
*/
function access_denied()
{
- global $user;
+ global $user, $conf;
$login_url =
get_root_url().'identification.php?redirect='
@@ -289,6 +289,10 @@ function access_denied()
echo str_repeat( ' ', 512); //IE6 doesn't error output if below a size
exit();
}
+ elseif (!$conf['guest_access'] and is_a_guest())
+ {
+ redirect_http($login_url);
+ }
else
{
redirect_html($login_url);