mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
Feature Issue ID 0000602: Redirect must be done by html or http
Redirect it's only done by the html method but must be done too with http method. Creation of two functions redirect_http and redirect_html. Function redirect calls one or other functions follow $conf or parameters. $conf value are true on BSF, in order to check modifications. Must be set to false on RC. git-svn-id: http://piwigo.org/svn/trunk@1649 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -609,7 +609,7 @@ function access_denied()
|
||||
else
|
||||
{
|
||||
set_status_header(401);
|
||||
redirect($login_url);
|
||||
redirect_html($login_url);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -623,7 +623,7 @@ function page_not_found($msg, $alternate_url=null)
|
||||
set_status_header(404);
|
||||
if ($alternate_url==null)
|
||||
$alternate_url = make_index_url();
|
||||
redirect( $alternate_url,
|
||||
redirect_html( $alternate_url,
|
||||
'<div style="text-align:left; margin-left:5em;margin-bottom:5em;">
|
||||
<h1 style="text-align:left; font-size:36px;">Page not found</h1><br/>'
|
||||
.$msg.'</div>',
|
||||
|
||||
Reference in New Issue
Block a user