I edited this regpage some, I removed the images and stuff, but how can I make it so that the max password limit AINT 8 WORDS/NUMBERS? I want the password limit to be freely chosen.
Here is the code:
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", "C:\OldCODB\Users\\");
define ("AccountFilesEnding", ".usr");
?>
<?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>This Account already exists!</p>";
$AllRight = False;
}
// All Right?
If ($AllRight) {
// File-Data
$Text .= "$Password ";
// Create File
File_Put_Contents (AccountFilesPath.$Account.AccountFilesEnding, $Text);
// Check File
if(!file_exists(AccountFilesPath.$Account.AccountFilesEnding)) {
echo "<p>Error!</p>";
}
Echo "<p>This Account is created succesfully!</p>";
}
}
?>
<div> </FONT></FONT></FONT></FONT></P></DIV>
<center></FONT>
<form action="" type=post>
<label for="name">Account:<div></label> <input type=text id="name" name="account" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br>
<h1><center></center></h1>
<label for="name">Password:<div></label> <input type=password id="password" name="password" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br>
<h1><center></center></h1>
<label for="name">Retype password:<div></label> <input type=password id="password" name="password" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br>
<button type=submit>Register</button></DIV>
I think I have figured out the problem. It sets like a square at the end of my password, and that makes it so I can't login. But when I remove the square, I can login.
Look:
How can I fix this?
-Edit-
I just noticed, If I make a password with 8 characters or over, there ain't any squares.
Regpage problem 07/08/2010 - Metin2 Private Server - 6 Replies Also ich habe dieses script: http://www.elitepvpers.com/forum/metin2-pserver-gui des-strategies/451847-homepage-release-exklusiv-de sign-ranking-etc-etc.html
Mit filezilla auf meinen Server hochgeladen...nun ist das problem wenn ich die seite aufrufen will kommen nur die ordner...aber nicht die seite persönlich...& wenn ich die index.html einfüge kommt nur it works.....mehr nicht.....
kann mir da jemand helfen?? Wenn es klappt gibtsn Thx :D
Und ja ich habe dieses script richtig...
[Release] Simple regpage for the 5165 02/21/2010 - CO2 PServer Guides & Releases - 10 Replies Well seen people asking for it, so i decided to edit and old regpage i had. This should work fine for the Source 5165 released wich was i belive developed by Tanel..
Thanks will be apreciated -.-
Simply put this in your WWW directory under appserver,
if your OldCODB is in a different place open up the file and edit
("AccountFilesPath", "C:\OldCODB\Users\\");
its not so perfect but it will do,
RegPage 01/11/2010 - Metin2 Private Server - 12 Replies hallo com,
ich suche die reg page für meinen metin2 server , aber es gibt ein problem , viele haben den link zum download hier hochgeladen aber bei rapidshare und man kann seit 2 tagen bei rapidshare nix downloaden weil alles überlastet ist und da man einen premium account braucht deshalb wollt ich euch fragen ob jemand es woanders mal hochladen kann der jenige der es macht kriegt auch einen thanks , woanders hochladen oder einen link zum download geben bitte !!!
MFG
Regpage plz any1?? 07/14/2009 - EO PServer Hosting - 15 Replies May anyone at all help me out with my registerpage the problem is that i need it to add there accounts to my navicat dbs when they register on the regpage so i dont half to make a username and pass for them...if u have teamviewer than that would be a big help to me and thanks to any that helps in advance....:mofo::pimp: