i got a 5165 source from elitepvp and i dont know how to do an sit and how to make accounts need help [Only registered and activated users can see links. Click Here To Register...]
<?php
define ("MaxNameLength", 32);
define ("WrongChars", "\r\n"); // Type other Chars, which shouldn't be in the Names, behind \r\n, but before "
define ("AccountFilesPath", "D:\OldCODB\Users\\");
define ("AccountFilesEnding", ".usr");
?>
<html>
<body><body bgcolor="#000000">
<body text="#FF0000"
<h1><center>.</center></h1>
<h1><center>.</center></h1>
<?php // New Account?
If (IsSet($_GET["account"]["password"])) {
// Variables
$Account = $_GET["account"];
$Password = $_GET["password"];
$AllRight = True;
// Wrong Chars?
For ($I=0; $I<StrLen(WrongChars); $I++) {
If (StrPos($Account, SubStr(WrongChars,$I,1))) {
Echo "<p>Your Name musn't contain the char \"".SubStr(WrongChars,$I,1)."\"</p>";
$AllRight = False;
}
}
// File Exists?
If (file_exists(AccountFilesPath.$Account.AccountFilesEnding)) {
Echo "<p><FONT COLOR='#F0F8FF'><FONT SIZE='3'><center>This Account already exists!</center></FONT></FONT></p>";
$AllRight = False;
}
if($_GET["password"]!=$_GET["password1"]) {
Echo "<p><FONT COLOR='#F0F8FF'><FONT SIZE='3'><center>Password don't match</center></FONT></FONT></p>";
$AllRight = False;
}
if(ereg("^[0-9a-zA-Z]{4,4}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{5,5}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{6,6}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{7,7}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{8,8}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{9,9}$",$_GET["password"])) $code = ' '; {
}
if(ereg("^[0-9a-zA-Z]{10,10}$",$_GET["password"])) $code = '
'; {
}
if(ereg("^[0-9a-zA-Z]{11,11}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{12,12}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{13,13}$",$_GET["password"])) $code = '
'; {
}
if(ereg("^[0-9a-zA-Z]{14,14}$",$_GET["password"])) $code = ''; {
}
if(!ereg("^[0-9a-zA-Z]{4,14}$",$_GET["password"])) {
Echo "<p><FONT COLOR='#F0F8FF'><FONT SIZE='3'><center>Password only lenght of 4 to 14 characters</center></FONT></FONT></p>";
$AllRight = False;
}
// All Right?
If ($AllRight) {
// File-Data
$Text .= "$code$Password ";
// Create File
File_Put_Contents (AccountFilesPath.$Account.AccountFilesEnding, $Text);
// Check File
if(!file_exists(AccountFilesPath.$Account.AccountFilesEnding)) {
echo "<p>Error!</p>";
}
Echo "<p><FONT COLOR='#F0F8FF'><FONT SIZE='3'><center>This Account is created succesfully!</center></FONT></FONT></p>";
}
}
?>
<center><FONT COLOR='#FFFDD0'><FONT SIZE='2'>
<form action="" type=post>
<label for="name"><div><br>Account</br></div></label> <input type=text id="name" name="account" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br>
<label for="name"><div><br>Password</br></div></label> <input type=text id="name" name="password" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br>
<label for="name"><div><br>Retype Password</br></div></label> <input type=text id="name" name="password1" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br>
<button type=submit>Register</button>
</form>
</FONT></FONT>
</div>
were would u put that? o.OQuote:
Cesarkirch:
I didn't script this but here you arePHP Code:<?php
define ("MaxNameLength", 32);
define ("WrongChars", "\r\n"); // Type other Chars, which shouldn't be in the Names, behind \r\n, but before "
define ("AccountFilesPath", "D:\OldCODB\Users\\");
define ("AccountFilesEnding", ".usr");
?>
<html>
<body><body bgcolor="#000000">
<body text="#FF0000"
<h1><center>.</center></h1>
<h1><center>.</center></h1>
<?php // New Account?
If (IsSet($_GET["account"]["password"])) {
// Variables
$Account = $_GET["account"];
$Password = $_GET["password"];
$AllRight = True;
// Wrong Chars?
For ($I=0; $I<StrLen(WrongChars); $I++) {
If (StrPos($Account, SubStr(WrongChars,$I,1))) {
Echo "<p>Your Name musn't contain the char \"".SubStr(WrongChars,$I,1)."\"</p>";
$AllRight = False;
}
}
// File Exists?
If (file_exists(AccountFilesPath.$Account.AccountFilesEnding)) {
Echo "<p><FONT COLOR='#F0F8FF'><FONT SIZE='3'><center>This Account already exists!</center></FONT></FONT></p>";
$AllRight = False;
}
if($_GET["password"]!=$_GET["password1"]) {
Echo "<p><FONT COLOR='#F0F8FF'><FONT SIZE='3'><center>Password don't match</center></FONT></FONT></p>";
$AllRight = False;
}
if(ereg("^[0-9a-zA-Z]{4,4}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{5,5}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{6,6}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{7,7}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{8,8}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{9,9}$",$_GET["password"])) $code = ' '; {
}
if(ereg("^[0-9a-zA-Z]{10,10}$",$_GET["password"])) $code = '
'; {
}
if(ereg("^[0-9a-zA-Z]{11,11}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{12,12}$",$_GET["password"])) $code = ''; {
}
if(ereg("^[0-9a-zA-Z]{13,13}$",$_GET["password"])) $code = '
'; {
}
if(ereg("^[0-9a-zA-Z]{14,14}$",$_GET["password"])) $code = ''; {
}
if(!ereg("^[0-9a-zA-Z]{4,14}$",$_GET["password"])) {
Echo "<p><FONT COLOR='#F0F8FF'><FONT SIZE='3'><center>Password only lenght of 4 to 14 characters</center></FONT></FONT></p>";
$AllRight = False;
}
// All Right?
If ($AllRight) {
// File-Data
$Text .= "$code$Password ";
// Create File
File_Put_Contents (AccountFilesPath.$Account.AccountFilesEnding, $Text);
// Check File
if(!file_exists(AccountFilesPath.$Account.AccountFilesEnding)) {
echo "<p>Error!</p>";
}
Echo "<p><FONT COLOR='#F0F8FF'><FONT SIZE='3'><center>This Account is created succesfully!</center></FONT></FONT></p>";
}
}
?>
<center><FONT COLOR='#FFFDD0'><FONT SIZE='2'>
<form action="" type=post>
<label for="name"><div><br>Account</br></div></label> <input type=text id="name" name="account" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br>
<label for="name"><div><br>Password</br></div></label> <input type=text id="name" name="password" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br>
<label for="name"><div><br>Retype Password</br></div></label> <input type=text id="name" name="password1" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br>
<button type=submit>Register</button>
</form>
</FONT></FONT>
</div>