<?php
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\" />
<title>Кафедра \"Компьютерные системы автоматизации производства\" МГТУ им.Н.Э.Баумана</title>
<link rel=\"shortcut icon\" href=\"design/rk9mini.png\" type=\"image/png\">
<link href=\"design/style1.css\" rel=\"stylesheet\" type=\"text/css\" />
<style type=\"text/css\">
<!--
body {
background-image: url(design/bg_main.png);
}
-->
</style></head>
<body marginheight=\"0\">";
echo "<form id=\"form1\" name=\"form1\" method=\"post\" action=\"\">\n";
echo " <label>Введите пароль\n";
echo " <input type=\"password\" name=\"uenterpas\"><br>\n";
echo " <label>Повторите пароль\n";
echo " <input type=\"password\" name=\"uenterpas2\"><br>\n";
echo " <input type=\"submit\" name=\"add\" id=\"add\" value=\"Получить хэш\" />\n";
echo "</form>\n";
if($uenterpas==$uenterpas2) {
$userhash = md5($uenterpas."t1sh1na");
if ($uenterpas!="") echo "Хэш вашего паролья: ".$userhash ;
}
else echo "Пароли не совпадают";
echo "
</body>
</html>"; ?>