Файл: widget/authentication.php
Строк: 35
<?php
echo'
';
if(!isset($user_data))
{
if($str != 'authentication' AND $str != 'registration')
{
echo'
<form action="/authentication" method="POST">
Логин:<br/>
<input type="text" class="form" class="input" name="login" maxlength="30" value="" size="20" maxlength="50" /><br/>
Пароль: <br/>
<input type="password" class="form" class="input" name="password" maxlength="30" value="" size="20" maxlength="50" /><br/>
<input name="ok" type="submit" class="button" value="Войти" /><br/>
';
echo '<a href="http://'.$_SERVER['HTTP_HOST'].'/recoveryPassword"><small>Восстановление пароля</small></a><br/>';
echo '<a href="http://'.$_SERVER['HTTP_HOST'].'/registration"><small>Регистрация</small></a>';
}
}
else
{
if($str != 'authentication')
{
$adminPanel = ($user_data['level'] == 2 AND $str != 'adminPanel') ? '- <a href="http://'.$_SERVER['HTTP_HOST'].'/controlPanel">Управление сайтом</a><br/>' : '';
echo 'Вы зашли как: <strong>'.$user_data['login'].'</strong><br/> '.$adminPanel.' - <a href="http://'.$_SERVER['HTTP_HOST'].'/exit">Завершить сеанс</a><br/>';
}
}
?>