mirror of
https://github.com/psenough/pouet.net.git
synced 2025-03-15 11:29:41 +01:00
Absolute URLs in all redirects (thx @JonasPed)
This commit is contained in:
parent
b7df6f82ea
commit
703037a02e
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,5 +28,5 @@ if($_COOKIE["SCENEID_SESSION"])
|
||||
|
||||
$sceneid->parseSceneIdData($command, $params);
|
||||
|
||||
header("Location: ".$HTTP_REFERER);
|
||||
header("Location: ".$_SERVER[HTTP_REFERER]);
|
||||
?>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?
|
||||
@session_start();
|
||||
$_SESSION["nodonate"]=$_GET["reset"]?false:true;
|
||||
header("Location: /");
|
||||
header("Location: http://$_SERVER[HTTP_HOST]/");
|
||||
?>
|
||||
|
10
search.php
10
search.php
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user