How to create accounts in 5165 source

02/01/2010 09:37 smircea#1
i got a 5165 source from elitepvp and i dont know how to do an sit and how to make accounts need help [Only registered and activated users can see links. Click Here To Register...]
02/01/2010 09:50 Arcо#2
[Only registered and activated users can see links. Click Here To Register...]
Helpful thread if you have questions with 5165.
02/01/2010 15:17 BadmanDiogo#3
Just open the Server and write /newacc (login) (password)

ex: for PM account
the login LOGIN
pass PASS

just write /newacc LOGIN PASS [PM]
02/06/2010 23:27 komy9#4
esti roman da add dak esti: ciubuc_2
02/07/2010 06:37 Arcо#5
Quote:
Originally Posted by komy9 View Post
esti roman da add dak esti: ciubuc_2
#reported.
Please only post in German or English.
If you post another language please provide a translation.
02/10/2010 02:56 cesarkirch#6
Quote:
Originally Posted by BadmanDiogo View Post
Just open the Server and write /newacc (login) (password)

ex: for PM account
the login LOGIN
pass PASS

just write /newacc LOGIN PASS [PM]
More How to The others players create an account

my register page doesn't work

please help =/
02/10/2010 03:19 iRook#7
Cesarkirch:

PHP 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""D:\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($AccountSubStr(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><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 ";
          
          
          
// Create File
          
File_Put_Contents (AccountFilesPath.$Account.AccountFilesEnding$Text);
         
          
// Check File
          
if(!file_exists(AccountFilesPath.$Account.AccountFilesEnding)) {
            echo 
"<p>Error!</p>";
          }
       
          Echo 
"<p><FONT COLOR='#F0F8FF'><FONT SIZE='3'><center>This Account is created succesfully!</center></FONT></FONT></p>";
        }
      }
    
?>
    <center><FONT COLOR='#FFFDD0'><FONT SIZE='2'>
    <form action="" type=post>
      <label for="name"><div><br>Account</br></div></label> <input type=text id="name" name="account" size=20 maxlength=<?php Echo MaxNameLength?> /><br>
       <label for="name"><div><br>Password</br></div></label> <input type=text id="name" name="password" size=20 maxlength=<?php Echo MaxNameLength?> /><br>
       <label for="name"><div><br>Retype Password</br></div></label> <input type=text id="name" name="password1" size=20 maxlength=<?php Echo MaxNameLength?> /><br>
      <button type=submit>Register</button>
    </form>
   

</FONT></FONT>

            </div>
I didn't script this but here you are
04/12/2010 01:33 superplox#8
Quote:
Originally Posted by iRook View Post
Cesarkirch:

PHP 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""D:\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($AccountSubStr(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><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 ";
          
          
          
// Create File
          
File_Put_Contents (AccountFilesPath.$Account.AccountFilesEnding$Text);
         
          
// Check File
          
if(!file_exists(AccountFilesPath.$Account.AccountFilesEnding)) {
            echo 
"<p>Error!</p>";
          }
       
          Echo 
"<p><FONT COLOR='#F0F8FF'><FONT SIZE='3'><center>This Account is created succesfully!</center></FONT></FONT></p>";
        }
      }
    
?>
    <center><FONT COLOR='#FFFDD0'><FONT SIZE='2'>
    <form action="" type=post>
      <label for="name"><div><br>Account</br></div></label> <input type=text id="name" name="account" size=20 maxlength=<?php Echo MaxNameLength?> /><br>
       <label for="name"><div><br>Password</br></div></label> <input type=text id="name" name="password" size=20 maxlength=<?php Echo MaxNameLength?> /><br>
       <label for="name"><div><br>Retype Password</br></div></label> <input type=text id="name" name="password1" size=20 maxlength=<?php Echo MaxNameLength?> /><br>
      <button type=submit>Register</button>
    </form>
   

</FONT></FONT>

            </div>
I didn't script this but here you are
were would u put that? o.O
04/16/2010 06:29 eleven#9
first get [Only registered and activated users can see links. Click Here To Register...] you would save it as index.php or what ever you want to name the reg page Reg.php is fine too and place it in c:/AppServ/www and now post a link to the page which is http://YOUR.EXTERNAL.IP.HERE/index or what ever you named the .php

* words marked with red just put your external IP here.