Файл: includes/fwd_from_magsu.php
Строк: 22
<?php
error_reporting(0);
$site=explode('/',$_SERVER['QUERY_STRING']);
$site=$site[0];
define("DBName","kmx");
define("HostName","localhost");
define("UserName","kmx");
define("Password","kmx-hosting");
$connectserv=@mysql_connect(HostName, UserName, Password);
$selectDB=@mysql_select_db(DBName);
$connect_bd=(($connectserv!=0)&&($selectDB!=0));
$q=@mysql(DBName,"SELECT * FROM `fwdmagsu` WHERE `num` = '".addslashes($site)."' LIMIT 0, 1");
$data=@mysql_fetch_array($q);
@mysql(DBName,"UPDATE `fwdmagsu` SET `back` = `back` + 1 WHERE `num` = '".addslashes($site)."' LIMIT 1");
if (($data['login']=='')||($site>149)) Header("Location: http://kmx.ru");
else Header("Location: http://".$data['login'].".".$data['domain'].".ru");
exit();
?>