Файл: RootPanel 1.7.0 FreeCode/RootPanel 1.7.0 FreeCode/_rootadmin/_gotobilling.inc.php
Строк: 19
<?
if ($id) {
if (checkAdminAccess('gotoBillingAllow')) {
$r=@mysql_query("select * from users where id='$id'") or die("File: ".__FILE__."<BR>Line: ".__LINE__."<BR>MySQL Error: ".mysql_error());
if (mysql_num_rows($r) > 0) {
$r=mysql_fetch_object($r);
$_SESSION["userId"]=$r->id;
$_SESSION["userLogin"]=$r->login;
$_SESSION["userEmail"]=$r->email;
$_SESSION["userCurrency"]=$r->currency;
$_SESSION["userHash"] = $r->password;
$_SESSION["userIP"] = $ip;
$_SESSION["userAttachPDFtoBill"] = $r->attachPDFtoBill;
writeAdminLog("Вход в аккаунт клиента ID # $r->id, $r->login");
Header("Location: billing.php");
exit;
}
} else {
print "<center><font color=red>Access denied!</font></center>";
}
}
?>