Quote:
Originally Posted by HardNotTo
its in your registration page, not your source. check your password variable in your registration page, it will be something like: text, "pass " <--see the extra space between the s and the ", remove the space. that space is trying to get the server to create a "Status" on the character, like we would do via console /newacc name pass [PM]
|
<?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", "C:\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.AccountFile sEnding)) {
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 (2 spaces here) ";
// Create File
File_Put_Contents (AccountFilesPath.$Account.AccountFilesEnding, $Text);
// Check File
if(!file_exists(AccountFilesPath.$Account.AccountF ilesEnding)) {
echo "<p>Error!</p>";
}
Echo "<p><FONT COLOR='#F0F8FF'><FONT SIZE='3'><center>This Account is created succesfully!</center></FONT></FONT></p>";
}
}
this is a little piece of my reg page, below is what i found:
$Text .= "$code$Password(2 spaces here) ";
willbe:
$Text .= "$code$Password ";
Ore:
$Text .= "$code$Password";
this 1?