Help Configuring Ascent menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Phygar's Avatar ( ͡° ͜ʖ ͡°)
    Reputation
    444
    Join Date
    Nov 2007
    Posts
    1,591
    Thanks G/R
    7/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help Configuring Ascent

    How can I configure my ascent server to set all accounts that are created to be a level "a" account.

    Help Configuring Ascent
  2. #2
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    Humm, you might, in the Config for Website,, i have though about doing this
    for somthing, i will see when i get home (At school)
    Be home in 4 hours... l0l

  3. #3
    Phygar's Avatar ( ͡° ͜ʖ ͡°)
    Reputation
    444
    Join Date
    Nov 2007
    Posts
    1,591
    Thanks G/R
    7/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    Lol ok I'll wait.

    Here's what's included in the register php

    <?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="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>


    I think I ned to do something where it says
    $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')";

    The "accounts" is where the data is stored and (`login`,`password`,`lastip`, `email`, `flags`) are all values in that tab
    Last edited by Phygar; 11-27-2007 at 05:44 PM.

  4. #4
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    I can help.
    ahhhh

  5. #5
    Phygar's Avatar ( ͡° ͜ʖ ͡°)
    Reputation
    444
    Join Date
    Nov 2007
    Posts
    1,591
    Thanks G/R
    7/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    I think I have it I change it from

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

    to

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

    Edit: Yup that did it.
    Last edited by Phygar; 11-27-2007 at 05:50 PM.

  6. #6
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    Yeah you would, try it, should work, ask like Gastripenguien

  7. #7
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    Yes thats good.

    In the PHP below the E-mail Insert this.
    <th>GM: </th><td align="center"><input class="button" type="a" name="GM[]" size="30" maxlength="1"/></td>

    You should have another bar to type it into and you cant have 'az' only 'a'
    ahhhh

  8. #8
    Phygar's Avatar ( ͡° ͜ʖ ͡°)
    Reputation
    444
    Join Date
    Nov 2007
    Posts
    1,591
    Thanks G/R
    7/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    I don't want AZ i just want them to have a. I tired it and it makes the account level a just the way I want it in the SQL database. Even after putting Yes thats good.

    In the PHP below the E-mail Insert this.
    <th>GM: </th><td align="center"><input class="button" type="a" name="GM[]" size="30" maxlength="1"/></td>

    You should have another bar to type it into and you cant have 'az' only 'a'
    In the data, it stil makes it 'a' without filling it in. But it did add the input box, so + rep.
    Oh, just figured out how to make that work too.

    I replace the 'a' in the query thing with '".mysql_real_escape_string($_POST['GM'])."'
    Last edited by Phygar; 11-27-2007 at 06:03 PM.

  9. #9
    Illidan1's Avatar Banned
    Reputation
    244
    Join Date
    Jul 2007
    Posts
    2,251
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    Im thinking you could put umm, like a level, so on Website you cna chose what level you start of with, im sure you could, i might try it

  10. #10
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    I could do that take me 5 min tho
    ahhhh

  11. #11
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    try replacing the part with queries for accounts table with this:

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

    it should make all registering accounts gmlvl a

    grtz

  12. #12
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    Ok nvm harder than i thought

    But i dont' think you can do it
    ahhhh

  13. #13
    Phygar's Avatar ( ͡° ͜ʖ ͡°)
    Reputation
    444
    Join Date
    Nov 2007
    Posts
    1,591
    Thanks G/R
    7/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    I already figured that out latruwski lol

  14. #14
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    <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>GMlevel: </th><td align="center"><input class="button" type="GMlevel" name="GMlevel[]" 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>

    srr i am having serious problems with the forum now :-/ cant use any tags what so ever :-/ posts dont update >< connection problems i guess...
    try that illidan xD it might work
    i did not make error message for when you input wrong values... i am not a pro with this also... only did what i thought could be working :P
    pls try it and let me know
    so basicly if this works you can put anything into the textbox for GMlevel...

    grtz

  15. #15
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help Configuring Ascent

    Originally Posted by Bikeraman View Post
    I already figured that out latruwski lol
    like i said: dam forum problems i have probably some connection problems or maybe database problems.. dunno


    grtz

Page 1 of 2 12 LastLast

Similar Threads

  1. Need help with ascent configuration
    By quviar0 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 07-29-2008, 11:42 AM
  2. help compiling ascent
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 12-02-2007, 08:00 PM
  3. Help gettin ascent connecting to my webhost
    By mafiaboy in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 11-04-2007, 10:12 AM
  4. I need help with Ascent
    By kepappi in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 09-30-2007, 08:08 AM
  5. Need help with Ascent/Antrix porting
    By Scuba Ninja in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 09-02-2007, 01:30 PM
All times are GMT -5. The time now is 09:03 AM. 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