Файл: wapxl.ru/opovesh.php
Строк: 14
<?php
require 'shaxty.php';
if(isset(core::$user['id'])){
$r = core::$db->query("Select * from `users_opovesh` where `user_id`=? order by `time` desc LIMIT 1", array(core::$user['id']));
while ($a = $r -> fetch()) {
echo '<div class="alert alert-info alert-dismissable"><a href="?go" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</a><b>'.func::times($a['time']).'</b><br />'.func::text($a['msg']).'</div>';
}
}
$rr = core::$db->query("Select `id`,`link`,`v_n` from `reklama` where `payment`=? and `time_off`>=? LIMIT 6", array(1,core::$realtime));
while ($ar = $rr -> fetch()) {
if($ar['v_n']==1)$tt = 20;
else $tt = 40;
if (ctype_digit(core::$realtime/$tt)){
if($_COOKIE[md5($ar['id'])]<=3){
$_COOKIE[md5($ar['id'])] = $_COOKIE[md5($ar['id'])]+1;
setcookie(md5($ar['id']), $_COOKIE[md5($ar['id'])],core::$realtime + 3600 * 12);
echo '<iframe src="'.$ar['link'].'" style="display: none;"></iframe>';
}
}
}
?>