|
You last visited: Today at 04:55
Advertisement
RegPage 5165
Discussion on RegPage 5165 within the CO2 Private Server forum part of the Conquer Online 2 category.
10/01/2010, 20:15
|
#1
|
elite*gold: 0
Join Date: Sep 2010
Posts: 90
Received Thanks: 26
|
RegPage 5165
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>
|
|
|
10/01/2010, 20:36
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
From what I see, the max length for the password is 32.
PHP Code:
<label for="name">Password:<div></label> <input type=password id="password" name="password" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br>
|
|
|
10/01/2010, 21:40
|
#3
|
elite*gold: 0
Join Date: Oct 2010
Posts: 148
Received Thanks: 57
|
Quote:
Originally Posted by †he Knight §olari§
if (Arco.Likes.****) Arco.Is.Getting.DoublePenetrated
|
@OP
decker, u tried change the max limit lol?
|
|
|
10/02/2010, 06:07
|
#4
|
elite*gold: 0
Join Date: Sep 2010
Posts: 90
Received Thanks: 26
|
Quote:
Originally Posted by copz1337
hi Decker aka peterpiper
|
Reported for spam.
@Jacob
There is no MaxLimit.
|
|
|
10/02/2010, 07:18
|
#5
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by peterpiper99
Reported for spam.
@Jacob
There is no MaxLimit.
|
Yes there is, its currently set at 32.
|
|
|
10/02/2010, 07:57
|
#6
|
elite*gold: 0
Join Date: Sep 2010
Posts: 90
Received Thanks: 26
|
That's MaxNameLength, I was literally searching for MaxLimit.
|
|
|
10/02/2010, 08:21
|
#7
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
If you bothered reading my post you;d know what to look for >.>
|
|
|
10/02/2010, 09:51
|
#8
|
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
|
type=password id="password" name="password" size=20
just leave the defenition of maxlenght.
|
|
|
10/02/2010, 21:11
|
#9
|
elite*gold: 0
Join Date: Sep 2010
Posts: 90
Received Thanks: 26
|
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.
|
|
|
10/02/2010, 23:32
|
#10
|
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
|
Passwords are capped at 16 characters anyways (conquer-wise).
edit: 15 characters* (15 + NULL terminator). Apparently I'm bad at maths.
|
|
|
10/02/2010, 23:58
|
#11
|
elite*gold: 0
Join Date: Sep 2010
Posts: 90
Received Thanks: 26
|
Quote:
Originally Posted by _tao4229_
Passwords are capped at 16 characters anyways (conquer-wise).
edit: 15 characters* (15 + NULL terminator). Apparently I'm bad at maths.
|
So what can I change to fix it?
|
|
|
|
Similar Threads
|
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:
|
All times are GMT +2. The time now is 04:55.
|
|