Register for your free account! | Forgot your password?

You last visited: Today at 18:31

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

Advertisement



[Release] Reg-Page

Discussion on [Release] Reg-Page 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

ok
here is a small regpage
it has no style
so u can use your own .css datas

Code:
<?php
      $Server = MySQL_Connect ("localhost", "root","mysql pass");
      
      If ($Server) {
        If (IsSet($_POST["name"])) {
          If (MySQL_DB_Query("database", "INSERT INTO accounts SET AccountID='".MySQL_Real_Escape_String($_POST["name"], $Server)."', LogonType='2'")) {
            Echo "Registration successfully!<br>The Password will be the one which you type at your first Login! Have fun!";
          } Else {
            Echo "Registration failed!";
          }
        } Else {
    ?>
          <form method=post action="">
            <table style="position: absolute; top: 50%; left: 50%; width: 300px; height: 40px; margin-left: -150px; margin-top: -50px;">
              <tr>
                <td>
                  Name:
                </td>
                <td>
                  <input type=text name="name" maxlength=30 style="width: 100%;" />
                </td>
              </tr>
              <tr>
                <td colspan=2><input type=submit name="submit" value="Submit" style="width: 100%;" /></td>
              </tr>
            </table>
          </form>
    <?php
        }
      } Else {
        Echo "Connection to the Database failed.";
      }
    ?>
name:
Code:
reg.php
koio is offline  
Old 12/29/2008, 22:15   #2
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
this one looks nicer

Quote:
<?php
$Server = MySQL_Connect ("localhost", "root","mysqlpassword");

If ($Server) {
If (IsSet($_POST["name"] ) ) {
If (MySQL_DB_Query("database", "INSERT INTO accounts SET AccountID='".MySQL_Real_Escape_String($_POST["name"], $Server)."', LogonType='2'")) {
Echo "Registration successfully!<br>The Password will be the one which you type at your first Login! Have fun!";
} Else {
Echo "Registration failed!";
}
} Else {
?>
<form method=post action="">
<table style="position: absolute; top: 50%; left: 50%; width: 300px; height: 40px; margin-left: -150px; margin-top: -50px;">
<tr>
<td>
Name:
</td>
<td>
<input type=text name="name" maxlength=30 style="absolute: 100%;" />
</td>
</tr>
<tr>
<td colspan=2><input type=submit name="submit" value="Submit" style="width: 100%;" /></td>
</tr>
</table>
</form>
<?php
}
} Else {
Echo "Connection to the Database failed.";
}
?>
turk55 is offline  
Old 12/29/2008, 23:58   #3
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
@agree turk55

me2 its easier to see(i think so)
ph03nixx is offline  
Old 01/08/2009, 02:35   #4
 
Hoven's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 456
Received Thanks: 128
Either it fails, OR it fails with my hamachi haha but thanks anyway

i inputed my data n it still fails if u know y please let me know
Hoven is offline  
Old 01/10/2009, 16:26   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 94
Received Thanks: 19
lol it doesnt fail with hamachi just make sure you change the correct things and save it where it should be and save it as type .php
TruthCo 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 for server without sql
05/02/2009 - CO2 PServer Guides & Releases - 18 Replies
ok here is a reg page for a server with .ini or .acc or ... accounts: _________________________________________________ _________ how to use? change define ("AccountFilesPath", "acc\\"); to your server account folder like define ("AccountFilesPath", "C:\server\acc\\"); to your source-account folder localtion change at define ("AccountFilesEnding", ".acc"); the .acc to the ending for u account files



All times are GMT +1. The time now is 18:34.


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.