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

Размер файла: 1.64Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE & E_USER_WARNING);
session_name("SID");
session_start();
include("global.php");
if ( $id =="avtorized" &&
$login !="" &&
$pass !="")
{
session_register("login");
session_register("pass");
}
$direct ="user";
include("avt.php");
if (isset($top)) $top= ereg_replace("[^0-9]","", $top );
elseif (isset($tema)) $tema= ereg_replace("[^0-9]","", $tema );
elseif (isset($post)) $post= ereg_replace("[^0-9]","", $post );
elseif (isset($nickname))
{$nickname = ereg_replace("[^a-zA-Z0-9\-_]", "", $nickname);}
include("header.php");
include("translit.php");
include("online_doc.php");
?>
<div class="b1"><b>MotoFan.pp.ru</b><br>Официальный сайт проекта Moto Builder</div><div class="b2">
<?php
if ( !isset($login) ||
!isset( $pass ) ||
$login =="" ||
$pass =="" ||
$status =="gost")
{ echo '<a href="avtorized.php">Авторизация</a><br>
<a href="reg.php">Регистрация</a><br>';}
else {
echo '<b>Привет, <a href="anketa.php?'.SID.'">'.$login.'</a></b>';
$direct1 ="mail";
include("privat.php");
if ( $new != 0)
{ echo '<br><a href="mail.php?param=in&amp;'.SID.'"><b><font color="#ff000">Вам письмо!!!</font></b></a>
<img src="smile/email.gif" alt=""> ['. $new .']<br>';}
else { echo'<br>';}
include("ban.php");
echo'&#187; <a href="index.php?action=menu&amp;'.SID.'">Мое меню</a><br>';
if ($status =="admin")
{ echo'&#187; <a href="index.php?action=admin&amp;'.SID.'">Админка</a><br>';}
if ($status =="moder")
{ echo'&#187; <a href="index.php?action=admin&amp;'.SID.'">Модерка</a><br>';}
}
include("main.php");
include("footer.php");
?>