Accounter updater (updates expansion flags for users.) menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    luc1f3rspalm's Avatar Member
    Reputation
    13
    Join Date
    Oct 2008
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Accounter updater (updates expansion flags for users.)

    Allows users to upgrade/downgrade their accounts to and from any expansion (original wow, bc, wotlk)

    Example Here

    Wrote it because i needed it, but figured others could use it too.

    All work by me, feel free to change anything.

    Upgrade.php
    Code:
    <head>
        <title>Upgrade Account</title>
        <meta http-equiv="Pragma" content="no-cache"/>
        <meta http-equiv="Cache-Control" content="no-cache"/>
        <style type="text/css" media="screen">
        @import url(stats/secondary_stats.css);.style1 {
    	font-size: 24px;
    	font-weight: bold;
    	font-style: italic;
    }
        </style>
        <!--[if lt IE 7.]>
        <script defer type="text/javascript" src="stats/pngfix.js"></script>
        <![endif]-->
    </head>
    <body>
        <center>
        <div class="logo"></div>
        <div style="width:300px">
            <form action="<?php echo $_SERVER[upgrade.php]; ?>" method="POST">
            <table width="100%" border="0" cellspacing="1" cellpadding="3">
                <tr class="head"><th colspan="2"><div class="heading"><span class="style1">Upgrade Account</span><br>
                  <br></div>
                <br><br></th></tr>
                <tr>
                    <th>Username: </th><td align="center"><input type="text" name="login" size="30" maxlength="16"/></td>
                </tr>
                <tr>
                    <th>Password: </th><td align="center"><input type="password" name="password" size="30" maxlength="16"/></td>
                </tr>
               
    <th>Account Type:</th><td align="center">
      <p>&nbsp;  </p>
      <p>
        <select name="set" type="select">
          <option value="0">Normal WoW</option>
          <option value="8">Burning Crusade</option>
          <option value="40" selected>Wrath of the Lich King</option>
        </select>
        <br>
        <br>
        <input type="reset" name="reset" value="Reset"/>
        <input type="submit" name="Update" value="Update" id="Update"/>
      </p></td>
    
            </table>
            
            </form>
    
    		<?php
    		include('config.php');
    		$query = @mysql_connect($dbhost,$dbuser,$dbpass) or die(mysql_error());
    		mysql_query($query);
    		mysql_select_db($db) or die (mysql_error());
            $login=$_POST['login'];
            $password=$_POST['password'];
            $set=$_POST['set'];
    		$loginlen=strlen($login);
            $passwordlen=strlen($password);
            $query = "SELECT acct FROM accounts WHERE login = '".$login."' AND password = '".$password."'";
    		$result = mysql_query($query) or die(mysql_error());
    		$numrows = mysql_num_rows($result);
    		if($loginlen < 1 or $passwordlen < 1)
    						{
    			  	        echo "Please fill in the fields";
    				        }
    	
    	else{
    		if($numrows == 1)
    	{
    			$query = "UPDATE accounts SET flags = '".$set."' WHERE login = '".$login."'";
    	$result = mysql_query($query) or die(mysql_error());
    
    	echo "".$login."'s Account successfully Updated!";
    	} else {
    
         die("Invalid account name/password!");
    
    	};		        
    	};
    		  
    		   						        
    ?>
    
        </div>
        <div class="footer">
        </div>
        </center>
    </body>
    </html>
    Config.php
    Code:
    <?php
    $db="logon";
    $dbuser="logon";
    $dbpass="password";
    $dbhost="127.0.0.1";
    ?>


    Let me know if you have any questions or issues.

    (I wrote this for arcemu so it should be compatible with both ascent and arc, as far as mangos i don't know.)
    Last edited by luc1f3rspalm; 11-30-2008 at 06:03 AM.

    Accounter updater (updates expansion flags for users.)
  2. #2
    Blackboy0's Avatar Member
    Reputation
    70
    Join Date
    Nov 2007
    Posts
    377
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good job mate +Rep from me!!

  3. #3
    R 3 A L 1 T Y's Avatar Banned
    Reputation
    96
    Join Date
    May 2007
    Posts
    651
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good job. Just what we needet.

    +rep

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Change the colour of the font you put on the script. Can barely make it out

  5. #5
    luc1f3rspalm's Avatar Member
    Reputation
    13
    Join Date
    Oct 2008
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, also any mod able to change my thread name, it's 430am and i managed to type accounter instead of account.

  6. #6
    luc1f3rspalm's Avatar Member
    Reputation
    13
    Join Date
    Oct 2008
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    Change the colour of the font you put on the script. Can barely make it out
    do you mean the actual code on this page?, or the color the echo's print out the text in?

  7. #7
    Blackboy0's Avatar Member
    Reputation
    70
    Join Date
    Nov 2007
    Posts
    377
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm guessing on this page lol :P Very hard to see that blue...

  8. #8
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I ment on the script and page for example:
    <![endif]-->
    I can barely see that, and the black was terrible to. To dark :P
    or:
    Password:
    See what I mean?

    Also put in a background and I'll probably use it :P Simple, and working. +Rep x2
    Last edited by stoneharry; 11-30-2008 at 07:19 AM.

  9. #9
    luc1f3rspalm's Avatar Member
    Reputation
    13
    Join Date
    Oct 2008
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    I ment on the script and page for example:
    <![endif]-->
    I can barely see that, and the black was terrible to. To dark :P
    or:
    Password:
    See what I mean?
    Changed it, should be a little better now.

    Also if anyone is getting an error about a config3 missing from one of the includes it's because i forgot to remove that part (it was added so it wouldn't break any other includes on my website, and i forgot to remove it when i posted here, I went ahead and removed it though so no one should have to worry about it now.)

  10. #10
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    very nice +Rep

  11. #11
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks an awful bit like the post from arcemu.org but w/e +Rep!
    Immortal GamerZ Under Development!

  12. #12
    Jrgamespot's Avatar Member
    Reputation
    26
    Join Date
    Aug 2007
    Posts
    123
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good job. +2rep from me.


  13. #13
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +Rep from me, nice contribution :P

  14. #14
    kyle102092's Avatar Member
    Reputation
    6
    Join Date
    Sep 2007
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks +Rep

  15. #15
    luc1f3rspalm's Avatar Member
    Reputation
    13
    Join Date
    Oct 2008
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quick update, I've found that some emus use 40 and others use 32, so if you need to have it set to either or just change the value for the wotlk one and you should be fine. (I have left the script at 40.)

    also a quick query that people could run if they want to update all accounts from one flag to another would be

    UPDATE logon.accounts SET flags = '32' WHERE flags = '40';

    thank you to those who rep'd

    Any suggestions for features to be added would be great as well.
    Last edited by luc1f3rspalm; 12-01-2008 at 12:16 AM.

Page 1 of 2 12 LastLast

Similar Threads

  1. [UPDATED] GM - Commands for Ascent Private Server
    By IlluzionE in forum World of Warcraft Guides
    Replies: 15
    Last Post: 03-15-2008, 09:19 AM
  2. [Updated] JOANAS GUIDE for patch v.2.3
    By XarezX in forum World of Warcraft Guides
    Replies: 15
    Last Post: 11-20-2007, 09:39 AM
  3. Updated Addons List for latest patch!
    By Unholyshaman in forum World of Warcraft General
    Replies: 6
    Last Post: 09-27-2007, 11:06 PM
  4. hacked account update
    By Tubz in forum Community Chat
    Replies: 1
    Last Post: 07-12-2007, 10:25 AM
  5. Warden Update - Glider offline for now...
    By Sturm in forum World of Warcraft General
    Replies: 24
    Last Post: 07-07-2007, 12:04 PM
All times are GMT -5. The time now is 06:48 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