Просмотр файла wwphpmaster1.03/www.phpedited.com/panel/panel2/panel2.txt

Размер файла: 1.66Kb
<table border=0 cellspacing=5 cellpadding=0 width=150>
<tr>
<?php
echo("<td background='thm-wb/$url_thm/pls.gif' align=center>");
?>
Авторизация
</td>
</tr>
<tr>
<td>
<?php
if (!$_SESSION)
{
?>
<table cellpadding=0 cellspacing=0>
  <tr>
<form method='get' action='tmpl/vhd.php' onsubmit=SubmitControl(this)>
    <td>Логин:</td>
    <td><input name='log' type='text' maxlength=40 size=20 style='width:80px' class=input>&nbsp;</td>
  </tr>
  <tr>
    <td>Пароль:</td>
    <td><input name='pass' type='password' maxlength=20 size=20 style='width:80px' class=input>&nbsp;</td>
  </tr>
<tr>
    <td><center><input value='Вход' type='submit' class=submit></form></center></td>
  </tr>
</table>
<?php
$reg=fopen("wap/lcl/rega.dt","r");
$regus=fgets($reg);
if ($regus==1)
{
?>
<a href='pgs/rgstr.php' class=cool>Регистрация</a>
<?php
}
if ($regus==0)
{
?>
<font color=red>Регистрация закрыта</font>
<?php
}

}
if ($_SESSION)
{
$log=$_SESSION['username'];
echo 'Привет, <a href=usr/prosmotr.php?log_pr=';
echo ("$log");
echo '><font color=red>'.$_SESSION['username'].'</font></a>';
echo ("<br><a href='usr/index.php' class=cool>Личный кабинет</a>");
echo ("<br><a href='tmpl/exit.php' class=cool>Выход [Exit]</a>");
////////// проверка на админа ////////
$file_array = file("wap/lcl/prof/$log");
if(!$file_array)
	{
//echo("Ошибка открытия файла wap/lcl/prof/log$log ");
	}
if ($file_array[2]==101)
	{
echo ("<br><a href=$url/adm/index.php>[В админ-панель]</a>");
	}
if (($file_array[2]==101) || ($file_array[2]==102))
	{
echo ("<br><a href='adm/nws_add.php' title='Добавление новости'>[Добавить новость]</a>");
	}
}
?>
</td>
</tr>
</table>