This commit is contained in:
Alan Garcia 2012-10-16 14:50:16 +00:00
parent 9acbee8807
commit 3770785c38
2 changed files with 9 additions and 6 deletions

View File

@ -50,13 +50,8 @@ if (file_exists($lang_date_picker))
</head>
<body>
<?
$oldid=intval(isset($_COOKIE['oldid'])?$_COOKIE['oldid']:'');
$isinvited=false;
if ($admin->enabled) $isinvited=true;
if ($oldid && $oldid!=$cuid) {
$isinvited=true;
if ($isinvited && isset($oldid) && !empty($oldid) && $oldid!=$cuid ) {
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>");
echo "</p></div>";

View File

@ -174,4 +174,12 @@ for($i=0;$i<count($classes);$i++) {
$$name2= new $name1();
}
$oldid=intval(isset($_COOKIE['oldid'])?$_COOKIE['oldid']:'');
$isinvited=false;
if ($admin->enabled) $isinvited=true;
if ($oldid && $oldid!=$cuid) {
$isinvited=true;
}
?>