- new function set_status_header (set http status code)

- correction on recent/recent_by_child icons

git-svn-id: http://piwigo.org/svn/trunk@1643 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2006-12-08 00:12:44 +00:00
parent 92fc9abb14
commit 7325369bf5
3 changed files with 29 additions and 12 deletions
+2 -4
View File
@@ -55,8 +55,7 @@ function guess_mime_type($ext)
function do_error( $code, $str )
{
header("HTTP/1.1 $code ");
header("Status: $code ");
set_status_header( $code );
echo $str ;
exit();
}
@@ -148,8 +147,7 @@ if (!url_is_remote($file))
if ( isset( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) )
{
header("HTTP/1.1 304 Not modified ");
header("Status: 304 Not modified");
set_status_header(304);
foreach ($http_headers as $header)
{
header( $header );