Файл: transitions.php
Строк: 15
<?php
include_once($_SERVER["DOCUMENT_ROOT"]."/system/db.php");
include_once($_SERVER["DOCUMENT_ROOT"]."/system/function.php");
$_GET['id']=abs(intval($_GET['id']));
if(mysql_num_rows(mysql_query("SELECT * FROM `wapkassa` WHERE `id`='".$_GET['id']."'"))==0){
header('location:/');
}
mysql_query("INSERT INTO `transitions` SET `url`='".$_GET['id']."', `d`='".date(d)."', `m`='".date(m)."'");
$url=mysql_fetch_array(mysql_query("SELECT * FROM `wapkassa` WHERE `id`='".$_GET['id']."'"));
header('location:'.$url['url'].'');
include_once($_SERVER["DOCUMENT_ROOT"]."/style/foot.php");
?>