View file public_html/count.php

File size: 678B
<?
/**
* @package     CyBeRLinK FREE TEXT EXCHANGER
* @link        http://trickscafe.com
* @license     LICENSE.txt (see attached file)
* @version     VERSION.txt (see attached file)
* @author      HammaD KHaN (XxCyBeR-WoLFxX)
*/
?>
<?php include "inc/def.php"; ?>
<?
$id=secureget('id');
$hammad = mysql_query("SELECT * FROM admlink WHERE id='$id'");
$khan = mysql_fetch_array($hammad);
$hk = $khan['clicks']+1;
if ($khan['last_ip']==$_SERVER['REMOTE_ADDR'])
{
header('Location: '.$khan['linkurl'].'');
}
else
{
mysql_query('UPDATE admlink SET last_ip = "'.$_SERVER['REMOTE_ADDR'].'" , clicks = "'.$hk.'"
WHERE id = "'.$id.'"');
header('Location: '.$khan['linkurl'].'');
}

?>