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

Размер файла: 1.5Kb
<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 onsubmit=SubmitControl(this)>
  <tr>
<form method='get' action='../tmpl/vhd.php'>
    <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>
<a href='rgstr.php'><font color=#ff9900>Регистрация</font></a>
<?php
}
else
{
$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("Ошибка открытия файла");
	}
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='$url/adm/nws_add.php' title='Добавление новости'>[Добавить новость]</a>");
	}
}
?>
</td>
</tr>
</table>