Absolute URLs in all redirects (thx @JonasPed)

This commit is contained in:
Laurent Raufaste 2013-05-12 15:14:10 -04:00
parent b7df6f82ea
commit 703037a02e
6 changed files with 12 additions and 12 deletions

View File

@ -352,7 +352,7 @@ function refreshUserInfo() {
{
if(substr_count($_SERVER["PHP_SELF"], "account.php")==0)
{
header("Location: account.php?regsceneid=1");
header("Location: http://$_SERVER[HTTP_HOST]/account.php?regsceneid=1");
}
}
}

View File

@ -61,7 +61,7 @@ if($_SESSION["SCENEID"])
{
if($_SESSION["SCENEID_IP"]!=$_SERVER["REMOTE_ADDR"])
{
//header("Location: logout.php");
//header("Location: http://$_SERVER[HTTP_HOST]/logout.php");
}
}

View File

@ -28,5 +28,5 @@ if($_COOKIE["SCENEID_SESSION"])
$sceneid->parseSceneIdData($command, $params);
header("Location: ".$HTTP_REFERER);
header("Location: ".$_SERVER[HTTP_REFERER]);
?>

View File

@ -1,5 +1,5 @@
<?
@session_start();
$_SESSION["nodonate"]=$_GET["reset"]?false:true;
header("Location: /");
header("Location: http://$_SERVER[HTTP_HOST]/");
?>

View File

@ -113,11 +113,11 @@ if($what) {
if ($nbresults==1 && !$_GET["page"] && !$_GET["dontredirect"]) {
switch($type) {
case "prod": header("Location: prod.php?which=".$results[0][0]); exit(); break;
case "group": header("Location: groups.php?which=".$results[0][0]); exit(); break;
case "party": header("Location: party.php?which=".$results[0][0]); exit(); break;
case "board": header("Location: bbses.php?which=".$results[0][0]); exit(); break;
case "user": header("Location: user.php?who=".$results[0][0]); exit(); break;
case "prod": header("Location: http://$_SERVER[HTTP_HOST]/prod.php?which=".$results[0][0]); exit(); break;
case "group": header("Location: http://$_SERVER[HTTP_HOST]/groups.php?which=".$results[0][0]); exit(); break;
case "party": header("Location: http://$_SERVER[HTTP_HOST]/party.php?which=".$results[0][0]); exit(); break;
case "board": header("Location: http://$_SERVER[HTTP_HOST]/bbses.php?which=".$results[0][0]); exit(); break;
case "user": header("Location: http://$_SERVER[HTTP_HOST]/user.php?who=".$results[0][0]); exit(); break;
}
}
}