la session admin/invite est visible de suite
This commit is contained in:
parent
757c7074ae
commit
d297637b4f
|
@ -30,6 +30,6 @@
|
|||
require_once("../class/config.php");
|
||||
|
||||
setcookie('oldid','',0,'/');
|
||||
|
||||
unset($_COOKIE['oldid']);
|
||||
require_once("main.php");
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue