Soul_Stealler
Registered
Код:
Грешен "Потребител" или "Парола"
Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Грешен "Потребител" или "Парола"
Soul_Stealler каза::roll:Код:Грешен "Потребител" или "Парола"
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body >
<?php
function filled_out($form_vars)
{
foreach ($form_vars as $key => $value)
{
if (!isset($key) || ($value == ''))
return false;
}
return true;
}
if(!filled_out($HTTP_POST_VARS))
{
echo '
<b><center> <font color=#ff0000> Не сте попълнили всички полета. ';
echo'<META HTTP-EQUIV="Refresh"
CONTENT="1; URL=register.php">';
exit;
}
$user=$HTTP_POST_VARS['user'];
$user=str_replace(" ","",$user);
$file= file("db.inc");
$n=count($file);
for ($i=0; $i<$n;$i++)
{
$line = explode ("&",$file[$i] );
if (strtolower($line[0])==strtolower($user))
{echo "Има такъв USER.<br>
Изберете друго потребителско име.";
echo'<META HTTP-EQUIV="Refresh"
CONTENT="2; URL=register.html">';
exit;
}
}
$pas=$HTTP_POST_VARS['pas'];
$pas=md5($pas);
$ip = getenv("REMOTE_ADDR");
$zapis=$user.'&'.$pas.'&'.$ip." \n" ;
$fp = fopen ( "db.inc" ,"a");
fwrite($fp, $zapis );
fclose($fp);
?>
<b>
<font color=#ff0000>
РЕГИСТРАЦИЯТА Е УСПЕШНА!<br>
<font color="#ff0000">
МОЛЯ, ИЗЧАКАЙТЕ......
<META HTTP-EQUIV="Refresh"
CONTENT="3; URL=login.html">'
:?Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/bggames/public_html/game/pro.php:1) in /home/bggames/public_html/game/pro.php<on line 2<br />