Просмотр файла click_club/index.php

Размер файла: 1.42Kb
<?
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=\"registration.php\">Регистрация</a><br/>";
}
echo"<br/><a href=\"rules.html\">ПРАВИЛА</a><br/>";
echo"<br/><a href=\"guest/index.php\">Книга предложений и пожеланий</a><br/>";
echo"<br/>Зарегистрировано: $countu <br/>";
echo"Активировано ссылок: $count <br/>";
include"inc/foot.php";
?>