Register for your free account! | Forgot your password?

You last visited: Today at 07:30

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

Advertisement



Register Problem

Discussion on Register Problem 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 Problem

Okay so if i register for my server on my site it says invalid account id or password. but if i register with /newacc it works just fine. im using a 5165 source and iv tryed 3 different register pages now.
Drake68 is offline  
Old 03/04/2012, 23:39   #2
 
2slam's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 586
Received Thanks: 336
check ur config.ini in ur appserv
2slam is offline  
Old 03/05/2012, 00:50   #3
 
elite*gold: 0
Join Date: Dec 2011
Posts: 72
Received Thanks: 3
checked them still not working.
Drake68 is offline  
Old 03/05/2012, 01:29   #4
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
why not just show the registerpage so we can have a look and see whats wrong with it.
turk55 is offline  
Thanks
1 User
Old 03/05/2012, 01:57   #5
 
elite*gold: 0
Join Date: Dec 2011
Posts: 72
Received Thanks: 3
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



Any ideas?
Drake68 is offline  
Old 12/23/2012, 01:07   #6
 
xgcell's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 14
Received Thanks: 3
Same problem. Guess no one has any idea how to fix this?
xgcell is offline  
Old 12/23/2012, 02:59   #7
 
Silent-Death's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 1,055
Received Thanks: 296
i don`t get this.. you are GET-ing the password from the form in $Password then you concatenate the literal "$Password " to $Text (??) that you then insert in that file you just create, and somehow you end up with an actual password in the file (that is not $Password)?

What is $Text and why do you concatenate to it?

from what i can tell you should end up with that $Text var containing something like:
"[whatever]$Password "
Silent-Death is offline  
Reply


Similar Threads Similar Threads
[Problem]Register
07/02/2011 - Flyff Private Server - 9 Replies
Joa habe ein Problem also beim öffnen der Register Seite(register.php) hab ich nen Fehler bekommen: Notice: Undefined index: s in C:xampphtdocsregisterregister.php on line 4 Hab in der Zeile nachgeguckt da steht nur "<?php" (ohne die Anführungszeichen) PS: Hab das TuT befolgt: http://www.elitepvpers.com/forum/flyff-pserver-di scussions-questions/837673-v-tut-registerpage.html
Problem mit Register !!
02/24/2011 - Flyff Private Server - 3 Replies
Hallo Liebe ElitePvPers Ich hab ein Problem mit meinem Register Script undzwar zweig er mir das hier an Notice: Use of undefined constant PATH_TRANSLATED - assumed 'PATH_TRANSLATED' in C:\xampp\htdocs\index2.php on line 91 Notice: Undefined index: PATH_TRANSLATED in C:\xampp\htdocs\index2.php on line 91
Register problem
02/21/2011 - CO2 Private Server - 17 Replies
Hello, I got a problem with my register script Script: <?php if(isset($_POST) && isset($_POST) && isset($_POST)) { if(!Empty($_POST) && !Empty($_POST) && !Empty($_POST)) {
Register-Problem
02/20/2011 - Flyff Private Server - 12 Replies
Hey alle zusammen, Ich wollte fragen ob ihr mir helfen könnt habe ein kleines problem habe meine registe page eingestellt aber da kommt ein EROR hier mal der Eror : Notice: Undefined index: s in C:\xampp\htdocs\register.php on line 208 Ich würde mich freuen wen ihr mir helfen könnt :D:D:
register problem!
04/13/2009 - WarRock - 2 Replies
moin... also ich hab mir ma warrock geholt kann mich aber nicht registrieren <.< ich hab ja nen acc aber PW kann ich auch nirgends finden bzw. sich das PW neu zu schicken... und bei https://www.gamersfirst.com/register/index.php?g=5 kommt seitenladenfehler? sind da grade warungsarbeiten oder so?



All times are GMT +1. The time now is 07:30.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.