Файл: __system/pages/out.php
Строк: 8
<?
$site = $db -> query
("
SELECT * FROM `site` WHERE `id` = '".filtration::int($_GET['id'])."' LIMIT 1
");
if($site -> rowCount() == 1)
{
$s = $site -> fetch(PDO::FETCH_ASSOC);
$site_h = $db->exec("UPDATE `site` SET `allOut` = (`allOut` + '1') WHERE `id` = '".$s['id']."' ");
$site_statistic_h = $db->exec("UPDATE `site_statistic` SET `out` = (`out` + '1')
WHERE `siteID` = '".$s['id']."' and `date` = '".date("Y-m-d",time())."' ");
header('Location: http://'.$s['url'].'');
}
else
{
header('Location: /index/');
}
?>