diff options
author | plegall <plg@piwigo.org> | 2016-05-30 10:53:29 +0200 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2016-05-30 10:53:29 +0200 |
commit | db0e02b5d44b9e016b91fd8e5c95bdf72719cd6d (patch) | |
tree | 61f286fd543845b20d1b7509e569f5f5382fb463 /include/functions_html.inc.php | |
parent | bf81ba031575b8cd1ccc318f5d5a8f8ec7cb5049 (diff) |
fixes #476, in case of guest_access=false, redirect_http instead of redirect_html
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r-- | include/functions_html.inc.php | 8 |
1 files changed, 6 insertions, 2 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); @@ -648,4 +652,4 @@ function flush_page_messages() } } -?>
\ No newline at end of file +?> |