PHP interesse |
|
Momenteel heb ik:
if($_GET['gameid'] AND !$_SESSION['loginwargame']){
$site_naam = 'gangsterteam.com';
$select = mysql_query("SELECT * FROM leden WHERE id=".$_GET['gameid']."");
if(mysql_num_rows($select) != 0){
$_SESSION['gameid'] = $_GET['gameid'];
}else{
//header("Location: ".$mainsite_url."?pagina=home");
}
}
if(!$_GET['gameid'] AND !$_SESSION['loginwargame'] AND !$_SESSION['gameid']){
$_SESSION['gameid'] = 53;
}
if(isset($_GET['pagina']) AND $_SESSION['gameid'] == ''){
mysql_query("DELETE FROM `[online]` WHERE `login`='{$_COOKIE['login']}' AND `validate`='{$_COOKIE['validate']}' AND `IP`='{$_SERVER['REMOTE_ADDR']}'");
setcookie("login",'',time()-24*60*60,"/","");
setcookie("validate",'',time()-24*60*60,"/","");
unset($_SESSION['loginwargame']);
unset($_SESSION['IP']);
unset($_SESSION['data']);
//$_SESSION['gameid'] = $_GET['gameid'];
//header("Location: ".$mainsite_url."?pagina=home");
}
if($_GET['gameid'] AND !$_SESSION['loginwargame']){ $site_naam = 'gangsterteam.com'; $select = mysql_query("SELECT * FROM leden WHERE id=".$_GET['gameid'].""); $_SESSION['gameid'] = $_GET['gameid']; }else{ //header("Location: ".$mainsite_url."?pagina=home"); } } if(!$_GET['gameid'] AND !$_SESSION['loginwargame'] AND !$_SESSION['gameid']){ $_SESSION['gameid'] = 53; } if(isset($_GET['pagina']) AND $_SESSION['gameid'] == ''){ mysql_query("DELETE FROM `[online]` WHERE `login`='{$_COOKIE['login']}' AND `validate`='{$_COOKIE['validate']}' AND `IP`='{$_SERVER['REMOTE_ADDR']}'"); unset($_SESSION['loginwargame']); unset($_SESSION['data']); //$_SESSION['gameid'] = $_GET['gameid']; //header("Location: ".$mainsite_url."?pagina=home"); }
wanneer er nu wordt uitgelogd of je wordt automatisch uitgelogd, dan wordt je doorgelinkt naar een andere ID. Maar ik zou willen dat je na het uiloggen gewoon op je eigen ID account blijft en niet wordt doorgelinkt naar een andere.
Hoe zou ik dit moeten doen?
|