<?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']."'"));
$accz= mysql_fetch_array(mysql_query("SELECT * FROM `zadanuya` WHERE `account`='".$_SESSION['id']."'"));
mysql_query("UPDATE `account` SET `last_active`='".time()."' WHERE `id`='".$account['id']."'");
}else{
header ("Location: index.php"); exit;
}
?>