Просмотр поста

.
Mr-Xuliqan

<?php $rand=rand(1,4);
//Php code function , writed by Kohne_Dost
include "inc/config.php";

header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
$lid = $_GET['lid'];

$uid=@mysql_result(mysql_query("select `uid` from `xezerli_sites` where `sid`='".$sid."'"),0);
$ip=$_SERVER['REMOTE_ADDR']; $ua=$_SERVER['HTTP_USER_AGENT'];
$operator=operator($ip);

$sid = $lid ;

$tests=@mysql_fetch_array(mysql_query("select `status` from `xezerli_sites` where `sid`='".$sid."'"));
$testu=@mysql_fetch_array(mysql_query("select `status` from `xezerli_users` where `uid`='".$uid."'"));
$xxx=@mysql_result(mysql_query("select `xxx` from `xezerli_sites` where `sid`='".$sid."'"),0);
if($xxx==0){
$where="`credit`>=11";
}else{
$where="`credit`>=11 and `xxx`=0";
}
$query = "SELECT * FROM `xezerli_banners` WHERE `onoff`=1 and `uid`!='".$uid."' and `status`=1 and ".$where." ORDER BY rand() LIMIT 1";
$arr=@mysql_fetch_array(mysql_query($query)); $bid=$arr['bid']; $banner_uid=$arr['uid']; $suar=$arr['suar'];
$test=@mysql_fetch_array(mysql_query("select * from `xezerli_shows` where `sid`='".$sid."' and `bid`='".$bid."' and `ip`='".$ip."' and `ua`='".$ua."'"));



$status_site = @mysql_result(mysql_query("select `status` from `xezerli_sites` where `sid`='".$lid."'"),0);

if($lid){
if($status_site==1){

echo "<a href='http://azmas.biz/".$lid.".go'><img src='http://azmas.biz/".$lid.".img' alt='Azmas.biz'><br/> ";
echo "$suar- $bid<br/>";
}

if($status_site==2){
echo "<b><a href='http://azmas.biz'>Az</a>Mas:</b> - ".$lid." Deaktiv edilib";
}
if($status_site==0){
echo "<b><a href='http://azmas.biz'>Az</a>Mas:</b> - ".$lid." Yoxlanilir";
}
}

?>