File size: 2.63Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
function myErrorHandler ($errno, $errstr, $errfile, $errline) {}
set_error_handler("myErrorHandler");
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
extract($HTTP_COOKIE_VARS);
extract($HTTP_SERVER_VARS);
extract($HTTP_SESSION_VARS);
session_name("ID");
session_start();
//////////////////
include "inc/conf_db.php";
include"inc/conf.php";
include"ban.php";
include"inc/head.php";
/////////////////
$login=$_SESSION['login'];
$password=$_SESSION['password'];
//////////////////
$q = mysql_query("select * from `user` where login='$login';");
$data = mysql_fetch_array($q);
if(!$_SESSION['login']=="" && !($_SESSION['password'])=="" && ($_SESSION['password'])==$data['pass']){
$result = mysql_query("SELECT * FROM linkbase ");
$number = MYSQL_NUMROWS($result);
if($number==0){ echo"Нет активированных ссылок<br/>» <a href=\"panel.php?".SID."\">В панель</a><br/><tr><td bgcolor=\"#CCCCFF\" align=\"center\"><font color=\"#008080\"><b>CLICK-CLUB</b></td></tr></table></body></html>"; exit;}
$k = mysql_query("SELECT * FROM perehod where nick='$login'");
$count = MYSQL_NUMROWS($k);
/////////////////
if($number > 0){ echo"Вы перешли по $count ссылкам<br/><p align=\"left\"></p><br>";
while ($row = mysql_fetch_array($result)) {
if($row[base]==$data[url]){ $row[base]=str_replace("$row[base]","",$row[base]); }
///////////////////
$r = mysql_query("SELECT * FROM perehod where nick='$login' AND ssylka='$row[base]'");
$re=mysql_num_rows($r);
if($re == 0 and $row['login']!= $login){ echo"»<a href=\"surfing.php?link=$row[base]\">".$row['login']."</a><br/>";
}
}}
//////////////////
$u=mysql_query("select * from `linkbase` where activater='$login'");
$ru=mysql_num_rows($u);
if($ru>0) {echo "<p align=\"left\">*С учетом вашей ссылки<br/><b>»</b> <a href=\"panel.php?".SID."\">Назад на панель</a> | ";
////////////////////////////
include "online_panel.php";
////////////////////////////
echo "</p>"; }
else {echo"<p align=\"left\">*Без учета вашей ссылки<br/><b>»</b> <a href=\"panel.php?".SID."\">Назад на панель</a> | ";
////////////////////////////
include "online_panel.php";
////////////////////////////
echo "</p>";}
//////////////////
echo"<tr><td bgcolor=\"#CCCCFF\" align=\"center\"><font color=\"#008080\"><b>CLICK-CLUB</b></td></tr></table></body></html>";
}else{ echo' Вы не выполнили вход!<br/>
» <a href="vhod.php">Войти</a>
<tr><td bgcolor="#CCCCFF" align="center"><font color="#008080"><b>CLICK-CLUB</b></td></tr></table></body></html>
'; exit;}
?>