Файл: vsime.com/moderate_dir/inc/pass_in.php
Строк: 26
<?
if (isset($_POST['submited'])) {
if ($_POST['pass']) {
if(!isset($_SESSION['captcha']) || hsc($_SESSION['captcha']) != hsc($_POST['captcha']))$error[] = 'Вы ошиблись при вводе кода с картинки.';
else {
$_SESSION['moderate_dir_pass'] = $_POST['pass'];
header("Location: $_SERVER[REQUEST_URI]");
exit();
}
}
}
ex_head();
show_errors();
echo "<form method='POST' action='' class='multi'>n";
echo "<div class='list'>n";
echo "Пароль:<br />n";
echo "<input type='password' name='pass' /><br />n";
echo "</div>n";
echo "<div class='list'>n";
echo "<img src='/captcha.php?".session_name()."=".session_id()."' height='35' width='100'><br />n";
echo "Введите код с картинки:<br />n";
echo "<input type='text' name='captcha' value='' /><br />n";
echo "</div>n";
echo "<div class='list'>n";
echo "<input type='submit' name='submited' value='Продолжить' />n";
echo "</div>n";
echo "</form>n";
ex_foot();
?>