Fix #1324
This commit is contained in:
parent
9acbee8807
commit
3770785c38
|
@ -50,13 +50,8 @@ if (file_exists($lang_date_picker))
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<?
|
<?
|
||||||
$oldid=intval(isset($_COOKIE['oldid'])?$_COOKIE['oldid']:'');
|
|
||||||
$isinvited=false;
|
|
||||||
|
|
||||||
if ($admin->enabled) $isinvited=true;
|
if ($isinvited && isset($oldid) && !empty($oldid) && $oldid!=$cuid ) {
|
||||||
|
|
||||||
if ($oldid && $oldid!=$cuid) {
|
|
||||||
$isinvited=true;
|
|
||||||
echo "<div align=center><p class='error'>";
|
echo "<div align=center><p class='error'>";
|
||||||
__("Administrator session. you may <a href='adm_login.php'>return to your account</a> or <a href='adm_cancel.php'>cancel this feature</a>");
|
__("Administrator session. you may <a href='adm_login.php'>return to your account</a> or <a href='adm_cancel.php'>cancel this feature</a>");
|
||||||
echo "</p></div>";
|
echo "</p></div>";
|
||||||
|
|
|
@ -174,4 +174,12 @@ for($i=0;$i<count($classes);$i++) {
|
||||||
$$name2= new $name1();
|
$$name2= new $name1();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$oldid=intval(isset($_COOKIE['oldid'])?$_COOKIE['oldid']:'');
|
||||||
|
$isinvited=false;
|
||||||
|
if ($admin->enabled) $isinvited=true;
|
||||||
|
|
||||||
|
if ($oldid && $oldid!=$cuid) {
|
||||||
|
$isinvited=true;
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue