Просмотр файла superkat/out.php

Размер файла: 828B
<?php
include "xconf.php";
If (!isset($_GET['go']) || !is_numeric($_GET['go'])){
header("Location: $site ");  
}
else {
$go = $_GET['go']; 
$rr = @mysql_query("select * from `cool_site` where id='$go';");
$row=mysql_num_rows($rr);
if ($row==0){
header("Location: $site ");
}else{

$q = @mysql_query("select `toout` from `cool_site` where id='$go';");
$q1 = @mysql_query("select `link` from `cool_site` where id='$go';");
$mm = @mysql_query("select `outs` from `cool_site` where id='$go';");
$data = @mysql_fetch_array($q);
$data_l = @mysql_fetch_array($q1);
$data_m = @mysql_fetch_array($mm);
$ss=$data_l['link'];
$data['toout'] += 1;
$data_m['outs'] += 1;
header("Location: $ss ");

@mysql_query("update `cool_site` set toout='".$data['toout']."', outs='".$data_m['outs']."' where id='$go';");
}
}
?>