aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-12-11 06:04:53 +0000
committerrub <rub@piwigo.org>2006-12-11 06:04:53 +0000
commitd54d1a52349c30f81529095ce21befda4079180e (patch)
treeb60c3579e01e1de2af37433d0d8063c0d96651b3 /include/functions_html.inc.php
parent222afe2caa357d6d31efdef87e2444d3e042880d (diff)
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
Diffstat (limited to '')
-rw-r--r--include/functions_html.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index d39a4cf09..f3ad7f700 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -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>',