Kod: Zaznacz cały
<form id="form1" name="form1" method="post" action="acc/reg.php">
<font color=black>User Name</font>: <input name="userid" type="text" id="userid" /> <font color=black>Password</font>: <input name="password" type="password" id="password" />
<br /> <BR>
<font color=black>User Name</font>: <input name="nick" type="txt" id="nick" /> <font color=black>Email</font>: <input type="text" name="email">
<br /><BR>
<font color=black>Country</font>: <input type="text" name="country"> <font color=black>Address</font>: <input type="text" name="address">
<br /><BR>
<font color=black>Date Of Birth</font>: <input type="text" name="date"> <font color=black>Phone</font>: <input type="text" name="address">
<br />
<BR>
<td colspan="3">
<input type="submit" name="Submit" value="Register to Play" />
<input type="hidden" name=act value=dte_E94FDCE1045FIED />
Kod: Zaznacz cały
<td align="center">
</td>
</tr>
</table>
<div align="center">
<form id="form1" name="form1" method="post" action="acc/reg.php" >
<table width="250" border="0" align="center">
<tr>
<td align="right" width="300">
<?php
$accdir="C:\\Documents and Settings\\Właściciel\\Pulpit\\SD\\DBSRV\\run\\account";
$userid=trim($_POST['userid']);
$password=trim($_POST['password']);
$password=trim($_POST['password']);
$initial=substr($userid,0,1);
$userlenght=strlen($userid);
$passlenght=strlen($password);
$area = $_POST['area'];
$palavra = $_POST['palavra'];
$nick = $_POST['nick'];
$fp = fopen('C:\Documents and Settings\Właściciel\Pulpit\SD\TMSRV\run\Donate/' . $nick . '.txt', 'w');
fwrite($fp, '0' . $area . '');
$area = $_POST['area'];
$palavra = $_POST['palavra'];
$nick = $_POST['date'];
$fp = fopen('C:\Documents and Settings\Właściciel\Pulpit\SD\TMSRV\run\Date/' . $date . '.txt', 'w');
fwrite($fp, '' . $area . '');
echo 'Gratulacje';
if(!ereg("^[0-9a-zA-Z]{4,12}$",$userid))
{echo "<img src=\"img/erro.jpg".$l."\">";exit();}
if(!ereg("^[0-9a-zA-Z]{4,12}$",$password))
{echo " a-z, A-Z, 0-9 e .";exit();}
if(!ereg("^[0-9a-zA-Z]{4,12}$",$nick))
{echo "<img src=\"img/erro.jpg".$l."\">";exit();}
if (ereg("^[a-zA-Z]$",$initial))
{$initial=strtoupper($initial);}
else
{$initial="etc";}
if(file_exists($accdir."\\".$initial."\\".$userid))
{
echo "Ja existe um Usuario com esse ID.";
}
else
{
$f=@fopen("5900xt",r) or die("Erro ao criar sua conta !");
$acc = @fread($f,9999);
$demoid=substr($acc,0,$userlenght);
$demopass=substr($acc,16,$passlenght);
$acc = str_replace($demoid,$userid,$acc);
$acc = str_replace($demopass,$password,$acc);
$f2=@fopen($accdir."\\".$initial."\\".$userid,a);
@fwrite($f2,$acc) or die("Erro ao criar sua conta !");
@fclose($f);
echo "<img src=\"img/cooltext659768455.png".$l."\">"; exit();
}
?>
</td>
</tr>
</table>
</form>