How do i make everyone a GM? menu

User Tag List

Results 1 to 12 of 12
  1. #1
    dude891's Avatar Member
    Reputation
    26
    Join Date
    Nov 2007
    Posts
    156
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do i make everyone a GM?

    How do I make everyone a gm when they register to my server? Here is my register.php file:

    <?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 (!@mysql_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="http://www.w3.org/1999/xhtml" >
    <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&#37;" 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>
    <div class="footer">
    Original design by mmorpg4free.com, styling by Julianx</div>
    </center>
    </body>
    </html>
    Last edited by dude891; 02-10-2008 at 09:58 PM.

    How do i make everyone a GM?
  2. #2
    Spartansp's Avatar Member
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you practically need to change this part:
    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')";

    to this:

    INSERT INTO `accounts` (`login`,`password`,`gm`,`lastip`, `email`, `flags`) VALUES ('".mysql_real_escape_string($_POST['login'])."', '".mysql_real_escape_string($_POST['password'][0])."','a', '".$_SERVER['REMOTE_ADDR']."', '".mysql_real_escape_string($_POST['email'])."', '8')";

  3. #3
    dude891's Avatar Member
    Reputation
    26
    Join Date
    Nov 2007
    Posts
    156
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! +Rep

  4. #4
    King Shaun's Avatar Member
    Reputation
    419
    Join Date
    Dec 2007
    Posts
    1,305
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, you must do what Spartan said, as you are changing the insertion into the accounts database to the numbers " az " which gives you all commands however, spartans SQL is wrong partly, it only says " a " which gives them admin, if they wanted Game Master access too and all commands you use this mate:


    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')";

    I have highlighted these parts in green to tell you what they do just incase you did not know.

    " az " : Is to make the person Game Master with all commands instead of just administrator commands.

    " 8 " : This makes their account burning crusade enabled, if you do not want it burning crusade enabled change it to " 0 ".

    Glad I could also help!


    Threads of the Week: [Errage] [Blizzard] [Rapidshare]

  5. #5
    Ballwinkle's Avatar Contributor Authenticator enabled
    Reputation
    124
    Join Date
    Mar 2007
    Posts
    662
    Thanks G/R
    0/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    or easy way....
    open your database-> edit the table and set the 'gm' defualt to a

  6. #6
    Spartansp's Avatar Member
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by King Shaun View Post
    Yes, you must do what Spartan said, as you are changing the insertion into the accounts database to the numbers " az " which gives you all commands however, spartans SQL is wrong partly, it only says " a " which gives them admin, if they wanted Game Master access too and all commands you use this mate:
    Actually you are wrong mate AZ is for admin and A its only for GM....¬¬ dont try to correct me in something i know way much more than you ... now im pissed

    Originally Posted by Ballwinkle View Post
    or easy way....
    open your database-> edit the table and set the 'gm' defualt to a
    True can also be do that way

  7. #7
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm No Fighting Now But spartans righ A is for admin =)
    Cheese Cake?

  8. #8
    King Shaun's Avatar Member
    Reputation
    419
    Join Date
    Dec 2007
    Posts
    1,305
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I know! It was early in the morning! I know it is A, I put that for administrator too, that is why I made a guide on it, showing people how to doedit it for admin and edit it for Game Master and more!

    ****ing.. :@


    Threads of the Week: [Errage] [Blizzard] [Rapidshare]

  9. #9
    Spartansp's Avatar Member
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok Snailz you are wrong to... AZ is for admin A is for GM...

  10. #10
    King Shaun's Avatar Member
    Reputation
    419
    Join Date
    Dec 2007
    Posts
    1,305
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha.. Pwned..
    Just like me, although technically I wasn't..

    And spartan knows it!


    Threads of the Week: [Errage] [Blizzard] [Rapidshare]

  11. #11
    Aldaus's Avatar Member
    Reputation
    28
    Join Date
    Sep 2007
    Posts
    98
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wouldn't give everyone AZ, They get to be able to shutdown the sever

    A will have almost everything excluding the server shutdown command.

    Experienced with C++

  12. #12
    Greed's Avatar Angry 12yearolds FTL
    Reputation
    -3
    Join Date
    Oct 2007
    Posts
    1,129
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AZ=Admin
    A=GM

    .gm

    [AZ]reknown
    [a]GM

Similar Threads

  1. How do i make Everyone spawn at the same place?!?!
    By evanmur12 in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 07-05-2009, 02:06 PM
  2. How to make everyone look like night elves/humans/blood elves!
    By owentheguy in forum World of Warcraft Exploits
    Replies: 27
    Last Post: 05-12-2008, 10:17 PM
  3. [Guide] How to make everyone a Game Master on signup! [Noob Friendly]
    By King Shaun in forum WoW EMU Guides & Tutorials
    Replies: 15
    Last Post: 02-13-2008, 05:02 PM
  4. How do I make everyone a GM?
    By dude891 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-04-2008, 05:53 AM
  5. How do i make weapons for my server......
    By sk8erevan in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 09-08-2006, 04:24 PM
All times are GMT -5. The time now is 05:15 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search