aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-09-17 01:48:31 +0000
committerrvelices <rv-github@modusoptimus.com>2008-09-17 01:48:31 +0000
commitcc12d640519a673d1a422cc608ca6ec1a59ef46e (patch)
tree988c8cb507ee9561d5b96f30974dbb2753c426b6 /include/functions_html.inc.php
parent7ea85bc0355c7ad60c51a4a1d3078e3dc4603031 (diff)
- 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
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r--include/functions_html.inc.php6
1 files changed, 4 insertions, 2 deletions
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 '<div style="text-align:center;">'.l10n('access_forbiden').'<br />';
echo '<a href="'.get_root_url().'identification.php">'.l10n('identification').'</a>&nbsp;';
echo '<a href="'.make_index_url().'">'.l10n('home').'</a></div>';
+ 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
</pre>\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;
}
}