Make an GM registration page menu

These ads disappear when you log in.

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    GrooN's Avatar Sergeant
    Reputation
    7
    Join Date
    Sep 2006
    Posts
    68
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)

    Make an GM registration page

    Discription
    I know meny servers were they say that all can be GM's but first you have to send me a mail and after 50hours ill check the mail

    Nobody wants that...
    ....so ive made this guide; how to make an GM rigistration page

    Required
    This is only tested on ascent...
    This is only tested with AC-Repack... (sure it works on all but this guide is made with AC-repack)
    You dont need any programs, else than notepad.

    Guide

    1) Open: C:\AC Web Ultimate Repack\Server\htdocs\stats\register.php
    (with notepad)
    site root, and then the rigistration page....

    2) the file should look something like this:

    Code:
    /*
    <?php
    #################
    # #
    # #
    # Enjoy! #
    # #
    # #
    #################
    include("config.php");
    error_reporting(E_ALL ^ E_NOTICE);
    session_start();
    $msg = Array();
    $error = Array();
    function addUser(){
    if (empty($_POST)) return false;
    global $config, $msg, $error;
    if (empty($_POST['login'])) $error[] = 'Error, You forgot to enter a account name!';
    if (empty($_POST['password'][0]) || empty($_POST['password'][1])) $error[] = 'Error, You forgot to enter a password!';
    if ($_POST['password'][0] !== $_POST['password'][1]) $error[] = 'Password does not match!';
    if (empty($_POST['email'])) $error[] = 'Please fill in a valid email adress!';
    if (!empty($error)) return false;
    $db = @mysql_connect($config['mysql_host'], $config['mysql_user'], $config['mysql_pass']);
    if (!$db) return $error[] = 'Database: '.mysql_error();
    if ([email protected]_select_db($config['mysql_dbname'], $db)) return $error[] = 'Database: '.mysql_error();
    $query = "SELECT `acct` FROM `accounts` WHERE `login` = '".mysql_real_escape_string($_POST['login'])."'";
    $res = mysql_query($query, $db);
    if (!$res) return $error[] = 'Database: '.mysql_error();
    if (mysql_num_rows($res) > 0) return $error[] = 'Username already in use.';
    $query = "INSERT INTO `accounts` (`login`,`password`,`lastip`, `email`, `flags`) VALUES ('".mysql_real_escape_string($_POST['login'])."', '".mysql_real_escape_string($_POST['password'][0])."', '".$_SERVER['REMOTE_ADDR']."', '".mysql_real_escape_string($_POST['email'])."', '8')";
    $res = mysql_query($query, $db);
    if (!$res) return $error[] = 'Database: '.mysql_error();
    $msg[] = 'The Account <span style="color:#00FF00"><strong>'.htmlentities($_POST['login']).'</strong></span> has been created!';
    mysql_close($db);
    return true;
    }
    {
    addUser();
    }
    ?>
     
    <html xmlns="XHTML namespace" >
    <head>
    <title>Account Creation Page</title>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Cache-Control" content="no-cache"/>
    <style type="text/css" media="screen">@import url(server_stats.css);</style>
    <!--[if lt IE 7.]>
    <script defer type="text/javascript" src="pngfix.js"></script>
    <![endif]-->
    </head>
    <body>
    <center>
    <div class="logo"></div>
    <div style="width:300px">
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
    <table width="100%" border="0" cellspacing="1" cellpadding="3">
    <tr class="head"><th colspan="2">Account Creation</th></tr>
    <tr>
    <th>Username: </th><td align="center"><input class="button" type="text" name="login" size="30" maxlength="16"/></td>
    </tr>
    <tr>
    <th>Password: </th><td align="center"><input class="button" type="password" name="password[]" size="30" maxlength="16"/></td>
    </tr>
    <tr>
    <th>Retype Password: </th><td align="center"><input class="button" type="password" name="password[]" size="30" maxlength="16"/></td>
    </tr>
    <tr>
    <th>E-mail: </th><td align="center"><input class="button" type="text" name="email" size="30" maxlength="30"/></td>
    </tr>
    </table>
    <input type="button" class="button" value="Back" onClick="history.go(-1)" />
    <input type="submit" value="Create" class="button"/>
    </form>
    <?php
    if (!empty($error)){
    echo '<table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td class="error" align="center">';
    foreach($error as $text)
    echo $text.'</br>';
    echo '</td></tr></table>';
    };
    if (!empty($msg)){
    echo '<table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td align="center">';
    foreach($msg as $text)
    echo $text.'</br>';
    echo '</td></tr></table>';
    exit();
    };
    ?>
    </div>
     
    </center>
    </body>
    </html>
    */


    3) while in notepad press CTRL + G.
    write: "35"
    4) change all in that line to:

    Code:
    /*
    $query = "INSERT INTO `accounts` (`login`,`password`,`gm`,`lastip`, `email`, `flags`) VALUES ('".mysql_real_escape_string($_POST['login'])."', '".mysql_real_escape_string($_POST['password'][0])."', 'az', '".$_SERVER['REMOTE_ADDR']."', '".mysql_real_escape_string($_POST['email'])."', '8')";
    */

    5) Save


    Now then people register all accounts will be GM / ADMIN
    ------------------------

    Explanation
    Will come tomorrow...


    (This is made by myself)
    ~GrooN

    These ads disappear when you log in.

  2. #2
    kayleta's Avatar Knight-Lieutenant
    Reputation
    17
    Join Date
    Aug 2007
    Posts
    271
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    So many posts you have made!
    https://i161.photobucket.com/albums/t238/darthdiddy/kayleta.jpg

  3. #3
    GrooN's Avatar Sergeant
    Reputation
    7
    Join Date
    Sep 2006
    Posts
    68
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    I know, but what about the guide? :P

  4. #4
    gurpreet's Avatar Master Sergeant
    Reputation
    5
    Join Date
    Sep 2007
    Posts
    95
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    I think thats wrong because "az" would make them admin. Just "a" would make them GM, im not sure so if someone else can say yes

  5. #5
    GrooN's Avatar Sergeant
    Reputation
    7
    Join Date
    Sep 2006
    Posts
    68
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    you're right but it still works

  6. #6
    Xo 0wner oX's Avatar Private
    Reputation
    1
    Join Date
    Mar 2007
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Great Guide been lookin for this all over. About time. Thanks

  7. #7
    GrooN's Avatar Sergeant
    Reputation
    7
    Join Date
    Sep 2006
    Posts
    68
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Originally Posted by Xo 0wner oX View Post
    Great Guide been lookin for this all over. About time. Thanks
    No problem mate
    https://groondev.com/

  8. #8
    P--JawZ--K's Avatar Private
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    What about having an alternate registration page for gm registration only. And hava a password for enabling the registration. And the password could be sent as a pm or whatever, over the website. I'm not good at these .html, .php or whatever need's to be done for this to work but, if someone could do it would nice to have that kinda thing on a website.

    EDIT: Think I know how to do it myself now, so no need to rush in here and give me an answer (not that I didn't thought I would get an answer, but yeah...)
    Last edited by P--JawZ--K; 01-07-2008 at 01:00 PM.

  9. #9
    mythicofforgotten's Avatar Private
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    nice guide you have got here thanks for posting it

  10. #10
    death1's Avatar Corporal
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Nice guide

  11. #11
    Kyoshero's Avatar Corporal
    Reputation
    2
    Join Date
    Feb 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Server don't last long like that

  12. #12
    nigthy's Avatar Master Sergeant
    Reputation
    7
    Join Date
    May 2007
    Posts
    107
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)

    right

    Originally Posted by gurpreet View Post
    I think thats wrong because "az" would make them admin. Just "a" would make them GM, im not sure so if someone else can say yes
    yea.. ur right :P

  13. #13
    helios00100's Avatar Sergeant
    Reputation
    6
    Join Date
    Apr 2008
    Posts
    58
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Thanxxxxxxxx this realy realy helped alooot! but i changed az to 1 thanxxxx +rep just lemme spread somethings around and ill rep

  14. #14
    helios00100's Avatar Sergeant
    Reputation
    6
    Join Date
    Apr 2008
    Posts
    58
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    dont u get it make it 1 so server will last

  15. #15
    eddiewom's Avatar Corporal
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    OMG nice one (i will never use it, making all members gm ) but still nice

Page 1 of 2 12 LastLast

Similar Threads

  1. How to make a Registration page?
    By trygon11 in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 03-06-2010, 12:52 PM
  2. How do i make my registration page work? And Other stuff about it
    By whatshisface in forum WoW EMU Questions & Requests
    Replies: 14
    Last Post: 09-16-2008, 07:42 PM
  3. Replies: 73
    Last Post: 09-10-2008, 10:56 AM
  4. [Guide] How to make a account creation page! Very easy!! (Hamachi)
    By rfvtgbyhn in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 11-02-2007, 05:25 PM
  5. You may need to check your registration page
    By ApeXz in forum Suggestions
    Replies: 5
    Last Post: 07-28-2007, 01:18 PM
All times are GMT -5. The time now is 05:24 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2018 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search