Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 03:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Register Page Registers but cant login!

Discussion on Register Page Registers but cant login! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2011
Posts: 72
Received Thanks: 3
Register Page Registers but cant login!

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:\PluimpieCoDB\Users\\");
  define ("AccountFilesEnding", ".usr");
?>


<html>
    
    <?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 Id/Password is in use! Try a new Id/Password.</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>Account succesfully! Please login to the game!</p>";
        }
      }
    ?>
<DIV align="center"><form action="" type=post>
      <label for="name">Account Login Id:<br></label> <input type=text id="name" name="account" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br>
<label for="name">Account Login Password<br></label> <input type=text id="name" name="password" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br><br>
      <button type=submit>Create Login Account</button></br>
    </form>
  </tr>
</table>
Step-1


step-2


step-3


Step-4



Edit:
I got to where if i take the space off from the register script it gos to login to game server then freezes Example:
With space:
$Text .= "$Password ";
With out:
$Text .= "$Password";
Drake68 is offline  
Reply


Similar Threads Similar Threads
How To ISS 7 Register Page and Help Page And Guild
12/16/2011 - Rappelz Private Server - 3 Replies
Hello , IIS 7 to the registration page . Good Luck.. ISS 7 Register Page and Help Page And Guild Page - YouTube Result 589896 - YouTube
[HELP] register page
04/23/2010 - Conquer Online 2 - 0 Replies
#request close i figured it out I don't know if this is the correct place to post this i'm sorry but i'm still a noob But i set up my register page and i get a weird error heres a picture of it: http://i922.photobucket.com/albums/ad68/borntohun t9944/helpmeplease.jpg Can anyone help me with that?
Register Page Bug
08/03/2009 - Dekaron Private Server - 2 Replies
Any1 know fix it ? Thx Screen of Error : Imageshack - imagenet
[HELP]REGISTER PAGE
07/14/2009 - Dekaron Private Server - 6 Replies
Hello.....i am with problems in dekaron register page.......some1 can help me to fix? u can check error at ilusiongz.sytes.net/register.php......who can help me add in msn [email protected] is a dedi server.....:D.....i'm looking for a team to work on it thanks ............



All times are GMT +1. The time now is 03:27.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.