Файл: mklik.tk/gokontrol.php
Строк: 33
<?php
include "header/config.inc.php";
include "header/function.inc.php";
include "header/header.inc.php";
include "header/connect.inc.php";
include "header/click-club.class.php";
include "header/hellfish.inc.php";
$agent = mysql_escape_string($_SERVER['HTTP_USER_AGENT']);
$ip = mysql_escape_string($_SERVER['REMOTE_ADDR']);
$surl = mysql_escape_string($_SERVER['HTTP_REFERER']);
if($surl==NULL){$surl = "Не определено";}
mysql_query("INSERT into `".prefix."kontrol_info` set `url_id`='".intval($_GET['id'])."', `time`='".time()."', `agent`='".$agent."', `ipp`='".$ip."', `surl`='".$surl."'");
$result = mysql_query("select * from `".prefix."kontrol` where `id`='".intval($_GET['id'])."';");
if(mysql_num_rows($result)>0)
{
$reg=mysql_fetch_array($result);
header("Location: http://".$reg['url']."");
exit;
}
else
{
// иначе на главную
header('Location: index.php?'); exit;
}
?>