From cc12d640519a673d1a422cc608ca6ec1a59ef46e Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 17 Sep 2008 01:48:31 +0000 Subject: - fix status header (web services + IE6 min display) - sql optims in feed /notification - dont send cookie for 10 years from admin/history.php git-svn-id: http://piwigo.org/svn/trunk@2543 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_html.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/functions_html.inc.php') diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index ca07a1e16..2b3994aa8 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -585,16 +585,17 @@ function access_denied() get_root_url().'identification.php?redirect=' .urlencode(urlencode($_SERVER['REQUEST_URI'])); + set_status_header(401); if ( isset($user) and !is_a_guest() ) { echo '
'.l10n('access_forbiden').'
'; echo ''.l10n('identification').' '; echo ''.l10n('home').'
'; + echo str_repeat( ' ', 512); //IE6 doesn't error output if below a size exit(); } else { - set_status_header(401); redirect_html($login_url); } } @@ -677,7 +678,7 @@ $btrace_msg \n"; @set_status_header(500); - echo $display.str_repeat( ' ', 300); //IE doesn't error output if below a size + echo $display.str_repeat( ' ', 300); //IE6 doesn't error output if below a size if ( function_exists('ini_set') ) {// if possible turn off error display (we display it) @@ -754,6 +755,7 @@ function set_status_header($code, $text='') case 403: $text='Forbidden';break; case 404: $text='Not found';break; case 500: $text='Server error';break; + case 501: $text='Not implemented';break; case 503: $text='Service unavailable';break; } } -- cgit v1.2.3