Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 23:29

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

Advertisement



[Release]Reg page for server without sql

Discussion on [Release]Reg page for server without sql within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 132
Received Thanks: 64
[Release]Reg page for server without sql

ok here is a reg page for a server with .ini or .acc or ... accounts:
__________________________________________________ ________
how to use?
change
Code:
  define ("AccountFilesPath", "acc\\");
to your server account folder
like
Code:
  define ("AccountFilesPath", "C:\server\acc\\");
to your source-account folder localtion
change at
Code:
  define ("AccountFilesEnding", ".acc");
the .acc to the ending for u account files
__________________________________________________ ________
u can se the page at:

__________________________________________________ ________

Code:
reg.php
Code:
<?php // Constants
  define ("MaxNameLength", 32);
  define ("WrongChars", "\r\n"); // Type other Chars, which shouldn't be in the Names, behind \r\n, but before "
  define ("AccountFilesPath", "acc\\");
  define ("AccountFilesEnding", ".acc");
?>

<html>
  <body>
    <h1>Registration</h1>
    
    <?php // New Account?
      If (IsSet($_GET["account"])) {
        // Variables
        $Account = $_GET["account"];
        $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  = "[Account]\r\n";
          $Text .= "AccountID=$Account\r\n";
          $Text .= "Password=\r\n";
          $Text .= "LogonType=2\r\n";
          $Text .= "LogonCount=0\r\n";
          $Text .= "Status=0\r\n";
          $Text .= "Charr=\r\n";
          $Text .= "Online=0\r\n";
          
          // 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>";
        }
      }
    ?>
    
    <form action="" type=post>
      <label for="name">Account-Name:</label> <input type=text id="name" name="account" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br>
      <button type=submit>Register</button>
    </form>
    
    <hr />
    <i><small>Echi-hp.de (<a href="http://www.echi-hp.de/" target=blank>http://www.echi-hp.de/</a>) :)</small></i>
  </body>
</html>
__________________________________________________ ________
credits goes to
koio is offline  
Thanks
17 Users
Old 01/30/2009, 22:59   #2
 
zane203's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 418
Received Thanks: 56
nice man, not gonna use it though, no need for it atm.

+ an extra bonus at the preview up front =p, so many people skip that...

keep up the good work.
zane203 is offline  
Old 01/31/2009, 09:58   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 132
Received Thanks: 64
thanks
koio is offline  
Old 02/01/2009, 03:17   #4
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
Very nice
kinshi88 is offline  
Old 02/01/2009, 03:19   #5
 
hio77's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 827
very nice
hio77 is offline  
Old 02/16/2009, 00:29   #6
 
Rofa300's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 105
Received Thanks: 45
i really was askin about that
Rofa300 is offline  
Thanks
1 User
Old 04/27/2009, 09:35   #7
 
doku66655's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 59
Received Thanks: 7
Could someone give me a hint how to do that? I don't need the whole guide.
Thanks

// EDIT Please help me I'm waiting for the answer the whole day!
doku66655 is offline  
Old 04/27/2009, 17:09   #8
 
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
Yea i dont understand this one bit can someone maybe help me with this reg page?
Pete1990 is offline  
Old 04/27/2009, 21:19   #9
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
you have to first have a LOTF converted into ini source... or a self made ini source
CoAttack is offline  
Old 04/27/2009, 22:34   #10
 
doku66655's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 59
Received Thanks: 7
I already have it >< Why should I post here when I don't have LOTF converted to .ini? This release is unclear for me, so maybe someone could help?
doku66655 is offline  
Old 04/27/2009, 23:43   #11
 
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
Yea same
how to use?
change
Code:

define ("AccountFilesPath", "acc\\");

to your server account folder
like
Code:

define ("AccountFilesPath", "C:\server\acc\\");

to your source-account folder localtion
change at
Code:

define ("AccountFilesEnding", ".acc");

the .acc to the ending for u account files

Only thing i dont understand
Pete1990 is offline  
Old 04/28/2009, 00:28   #12
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
Quote:
Originally Posted by doku66655 View Post
I already have it >< Why should I post here when I don't have LOTF converted to .ini? This release is unclear for me, so maybe someone could help?
i dont see how its unclear if you had lotf converted to ini you would see where you accounts and characters things are.
CoAttack is offline  
Old 05/02/2009, 09:04   #13
 
Panquque's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 64
Received Thanks: 3
Quote:
Originally Posted by Pete1990 View Post
Yea same
how to use?
change
Code:

define ("AccountFilesPath", "acc\\");

to your server account folder
like
Code:

define ("AccountFilesPath", "C:\server\acc\\");

to your source-account folder localtion
change at
Code:

define ("AccountFilesEnding", ".acc");

the .acc to the ending for u account files

Only thing i dont understand
i didnt undertand that either
any help?
Panquque is offline  
Old 05/02/2009, 14:42   #14
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by Panquque View Post
i didnt undertand that either
any help?
Ok lets say your accounts on your desktop so for that file path you would put


C:\Documents and Settings\PeTe\Desktop\Source\CoServerProject\bin\d ebug\accounts
PeTe Ninja is offline  
Thanks
1 User
Old 05/02/2009, 19:45   #15
 
Panquque's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 64
Received Thanks: 3
Quote:
Originally Posted by PeTe Ninja View Post
Ok lets say your accounts on your desktop so for that file path you would put


C:\Documents and Settings\PeTe\Desktop\Source\CoServerProject\bin\d ebug\accounts
so it would be like

define ("C:\Documents and Settings\PeTe\Desktop\Source\CoServerProject\bin\d ebug\accounts", "acc\\");



define ("C:\Documents and Settings\PeTe\Desktop\Source\CoServerProject\bin\d ebug\accounts", ".acc");

but with my path?
Panquque is offline  
Reply


Similar Threads Similar Threads
[release] reg page...
05/30/2010 - CO2 PServer Guides & Releases - 10 Replies
heres a reg page i dont got no encyrption for the pass or anything cuz i have no clue what the encryption is for it.. but here.. a few things you need to edit... all should be simple to understand.. $dbhost = "localhost"; $dbname = "coproj"; $dbuser = "root";
[Release] Register page
12/18/2009 - Dekaron Private Server - 7 Replies
Hi all! I release here my register page. Demo : Index of /demo Download : http://83.85.190.217/demo/demo.rar New : *Your own security
[release]IP Ban For Reg Page.
09/18/2009 - CO2 PServer Guides & Releases - 8 Replies
Here is an Ip Ban for Reg Page All you Do Ip Put At Top Of The Reg Page And Make A File Called IP.dat u Add the Ips in There And it Bans them. <?php $ip = $_SERVER; $ipArray = preg_replace("#\r\n?|\n#","",f ile('IP.dat')); // read the file into an array and remove new line breaks (should cover all OS) foreach ($ipArray as $ipTest) { if (substr_count($ip, $ipTest) != "0") { header('location: /banned.htm'); // the banned display page die(); } }
[Release] Reg Page For CoEmu v2
05/29/2009 - CO2 PServer Guides & Releases - 2 Replies
i have done with the reg page is work fine and i test it and work so download and test it must work great
[Release] Reg-Page
01/10/2009 - CO2 PServer Guides & Releases - 4 Replies
ok here is a small regpage it has no style so u can use your own .css datas <?php $Server = MySQL_Connect ("localhost", "root","mysql pass"); If ($Server) { If (IsSet($_POST)) {



All times are GMT +1. The time now is 23:29.


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.