Просмотр файла forum/register.php

Размер файла: 2.65Kb
<?php
	header ("Expires: Thu, 01 Jan 1970 00:00:01 GMT");
	header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header ("Cache-Control: no-cache, no-store, must-revalidate, max-age=0");
	header ("Pragma: no-cache");
header("Content-type:text/html; charset=utf-8");
include("core.php"); //load main functions
include("conf.php"); //load config
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html><head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
<link rel=\"shortcut icon\" href=\"logo/icon.php\"><meta http-equiv=\"refresh\" content=\"1;URL=index.php?nick=$userreg&amp;pass=$passreg\"/><title>PIZDEC.RU</title><style type=\"text/css\">
body { font-weight: normal; font-size: normal; font-family: georgia; color: #FFFF00; background-color: #000033 }
a:link { text-decoration: underline; color : #FF00FF }
a:active { text-decoration: underline; color : #FFFF00 }
a:visited { text-decoration: underline; color : #00FFFF }
a:hover { text-decoration: none; color : #FFFF00 }
div { margin: 1px 0px 1px 0px; padding: 5px 5px 5px 5px; font-weight: bold;}
div.black{ background-color: #33CCFF; padding-top: 3px; padding-bottom: 3px; padding-left: 4px;  border: 1px solid;  text-align: center;}
div.blue{ background-color: #000066;    text-align: left;}
a {font-weight: bold;}</style>
</head>
<body bgcolor=\"#000033\"><div class=\"black\"><img src=\"logo.gif\" alt=\"\"/><br/><font color=\"#FF0000\">Форум для риальных поцанов!</font></div>";
echo "<div>";
$bro=fopen("brow.dat", "r+");
while (!feof ($bro))
{
$brow=fgets ($bro,1024);
}
     if ($chis==$brow) {echo""; $brow =rand(1000, 9999); 
$bro=fopen("brow.dat", "w+");
chmod("brow.dat", 0666);
fwrite($bro, $brow);
fclose($bro);} else {$brow =rand(1000, 9999); 
$bro=fopen("brow.dat", "w+");
chmod("brow.dat", 0666);
fwrite($bro, $brow);
fclose($bro);  echo"<font color=\"#FF0033\">Введенное число неправильное</font><br/><br/><a href=\"$gl\"><font color=\"#FF33FF\">На главную</font></a><br/>
</div></body></html>"; exit;}

$userreg=$_POST["userreg"];
$passreg=$_POST["passreg"];
$passreg2=$_POST["passreg2"];
$userreg=htmlspecialchars($userreg);
echo connect($dbuser,$dbpass,$dbserver,$dbname);
if ($passreg==$passreg2) echo register($userreg,$passreg); else echo "<font color=\"#FF0000\">&#x41F;&#x430;&#x440;&#x43E;&#x43B;&#x438; &#x43D;&#x435; &#x441;&#x43E;&#x432;&#x43F;&#x430;&#x434;&#x430;&#x44E;&#x442;!</font>";
echo"<br/><hr/><a href=\"index.php\"><font color=\"#FF00FF\">: Хуерумы</font></a><br/><a href=\"$ssite\"><font color=\"#FF0000\">$coppy</font></a>"; 
echo $endhtml;
?>