View file index.php

File size: 1.69Kb
<?
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);
$k = mysql_query("SELECT * FROM `linkbase`");
$count = MYSQL_NUMROWS($k);
$u = mysql_query("SELECT * FROM `user`");
$countu = MYSQL_NUMROWS($u);
if(!$_SESSION['login']=="" && !($_SESSION['password'])=="" &&  ($_SESSION['password'])==$data['pass']){
//////////////////
echo"» <a href=\"panel.php\">В панель</a><br/>";
}else{
echo"» <a href=\"vhod.php\">Вход</a><br/>";
echo"» <a href=\"about.php\">О сервисе</a><br/>";
echo"» <a href=\"registration.php\">Регистрация</a><br/>";
}
echo"» <a href=\"rules.php\">Правила клуба</a><br/>";
echo"» <a href=\"guest/index.php\">Гостевая книга</a><br/>"; 

////////////////////////////
include "online.php";
////////////////////////////

echo"» Зарегистрировано: $countu <br/>";
echo"» Активировано ссылок: $count <br/>";
echo"Powered by <a href=\"http://bablo.net.ua\">BABLO.NET.UA</a> | Stanislav</td></tr>";
echo"<tr><td bgcolor=\"#CCCCFF\" align=\"center\"><font color=\"#008080\"><b>CLICK-CLUB</b></td></tr></table></body></html>";
?>