Файл: cabn/js.php
Строк: 12
<?php
session_name('SID') . session_start();
include '../db.php';
if (isset($_GET['us'])){
$_SESSION['sid'] = rand(1111,9999);
$data = mysql_query("SELECT * FROM `rek` WHERE `ok`>NOW() AND `ball` >= '1' ORDER BY RAND() LIMIT 4");
$rmq=mysql_query("select * from `rek` where `ok`>NOW() and `ball` >= '1'");
$imr=mysql_num_rows($rmq);
if ($imr > 0) {
?>
document.write('Реклама:<br />');
<?
while ($row = mysql_fetch_assoc($data)){
?>
document.write('<a style="" href="http://wordads.ru/go/m/<?=$row['id'];?>/<?=$_GET['us'];?>/<?=$_SESSION['sid'];?>" target="_blank"><?=$row['name'];?></a><br />');
<?
}
} else {
?>
<?
}
}
?>