Файл: inc/account.php
Строк: 14
<?php
include 'inc/mysql.php';
if(isset($_SESSION['auth']) && $_SESSION['auth']==1){
$account = mysql_fetch_array(mysql_query("SELECT * FROM `account` WHERE `id`='".$_SESSION['id']."'"));
$podval = mysql_fetch_array(mysql_query("SELECT * FROM `podval` WHERE `id`='".$_SESSION['id']."'"));
$master = mysql_fetch_array(mysql_query("SELECT * FROM `masterskaya` WHERE `id`='".$_SESSION['id']."'"));
$biznes= mysql_fetch_array(mysql_query("SELECT * FROM `biznes` WHERE `id`='".$_SESSION['id']."'"));
$accz= mysql_fetch_array(mysql_query("SELECT * FROM `zadanuya` WHERE `account`='".$_SESSION['id']."'"));
$dosuj= mysql_fetch_array(mysql_query("SELECT * FROM `dosuj` WHERE `account`='".$_SESSION['id']."'"));
mysql_query("UPDATE `account` SET `last_active`='".time()."' WHERE `id`='".$account['id']."'");
}else{
header ("Location: index.php"); exit;
}
?>