la session admin/invite est visible de suite

This commit is contained in:
Benjamin Sonntag 2011-03-27 13:47:50 +00:00
parent 757c7074ae
commit d297637b4f
2 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,6 @@
require_once("../class/config.php");
setcookie('oldid','',0,'/');
unset($_COOKIE['oldid']);
require_once("main.php");

View File

@ -33,6 +33,7 @@ require_once("../class/config.php");
$oldid=intval($_COOKIE['oldid']);
if ($oldid) {
setcookie('oldid','',0,'/');
unset($_COOKIE['oldid']);
$db->query("select lastip from membres where uid='$oldid';");
$db->next_record();
@ -72,6 +73,8 @@ if (!$r=$admin->get($id)) {
$error=$err->errstr();
} else {
setcookie('oldid',$cuid,0,'/');
$_COOKIE['oldid']=$cuid;
if (!$mem->setid($id)) {
$error=$err->errstr();
include("index.php");