Welcome to the MMOtop - Arcemu, Mangos, Trinity.
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    banned
    Status : Toba is offline
    Join Date : May 2010
    Location : Vist twd2010.tk!
    Posts : 114
    Thanks: 0
    Thanked 16 Times in 9 Posts
    Rep Power : 0
    Reputation:30Toba is on a distinguished road

    Default [Release] Simple statistics page

    This is not made by me !!!

    Credits:
    victov

    Here is a simple statistics page i made.
    You should edit the file, and fill in your own host, username, and password.
    Then import it and use it on your own website :)

    Here's a little preview:
    [Only registered and activated users can see links. ]

    PHP Code:
    <?php
        
        
    ///////////////////////////////////////
        //         T0ba wAs Her3             //
        ///////////////////////////////////////
        
        
    $HOST "localhost"// YOUR HOST NAME HERE!
        
    $USERNAME "";      // YOUR USERNAME HERE!
        
    $PASS "";             // YOUR PASSWORD HERE.

        
    mysql_connect($HOST$USERNAME$PASS);
        
    mysql_select_db("deb14735_logon");
        
    $NUM_ACC mysql_fetch_object(mysql_query("SELECT COUNT(acct) AS acct FROM `accounts` WHERE lastip != ''"));
        
    $NUM_CHAR mysql_fetch_object(mysql_query("SELECT COUNT( guid ) AS Count FROM characters WHERE 1"));
        
    $AVG_LEVEL mysql_fetch_object(mysql_query("SELECT ROUND( AVG( level ) ) AS LevelAvg FROM characters LIMIT 1"))->LevelAvg;
        
    $HORDE_CHARS mysql_fetch_object(mysql_query("SELECT COUNT( race ) AS HordeChars FROM characters WHERE race IN (2, 5, 6, 8 ,10)"));
        
    $ALLY_CHARS mysql_fetch_object(mysql_query("SELECT COUNT( race ) AS AllyChars FROM characters WHERE race IN (1, 3, 4, 7 ,11)"));
        
    $HORDE_KILLS mysql_fetch_object(mysql_query("SELECT SUM( killsLifeTime ) AS HordeKills FROM characters WHERE race IN (2, 5, 6, 8 ,10)"));
        
    $ALLY_KILLS mysql_fetch_object(mysql_query("SELECT SUM( killsLifeTime ) AS AllyKills FROM characters WHERE race IN (1, 3, 4, 7 ,11)"));
    ?>

    <br />
    <h2>Statistics</h2>

    <table width="300">
        <tr>
            <td colspan="2">
                <b style="margin-left:40px;">General</b>
            </td>
        </tr>
        <tr>
            <td>
                Registered Accounts*:
            </td>
            <td>
                <?php echo $NUM_ACC->acct?>
            </td>
        </tr>
        <tr>
            <td>
                Total Characters:
            </td>
            <td>
                <?php echo $NUM_CHAR->Count?>
            </td>
        </tr>
        <tr>
            <td>
                Average Chars Per Account:
            </td>
            <td>
                <?php echo round($NUM_CHAR->Count/$NUM_ACC->acct2); ?>
            </td>
        </tr>
        <tr>
            <td>
                Average Character Level:
            </td>
            <td>
                <?php echo $AVG_LEVEL?>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <b style="margin-left:40px;">Horde vs Alliance</b>
            </td>
        </tr>
        <tr>
            <td>
                Horde Characters:
            </td>
            <td>
                <?php echo $HORDE_CHARS->HordeChars?>
            </td>
        </tr>
        <tr>
            <td>
                Alliance Characters:
            </td>
            <td>
                <?php echo $ALLY_CHARS->AllyChars?>
            </td>
        </tr>
        
        <tr>
            <td>
                Total Horde Kills:
            </td>
            <td>
                <?php echo $HORDE_KILLS->HordeKills?>
            </td>
        </tr>
        <tr>
            <td>
                Total Alliance Kills:
            </td>
            <td>
                <?php echo $ALLY_KILLS->AllyKills?>
            </td>
        </tr>
    </table><br>
    <br>

    *: At least logged in once.

  2. The Following 2 Users Say Thank You to Toba For This Useful Post:

    gerculy (11-05-2010), Jerry (05-31-2010)

  3. #2
    Jerry's Avatar
    Status : Jerry is offline
    Join Date : Mar 2009
    Location : Serbia
    Posts : 2,321
    Thanks: 223
    Thanked 501 Times in 286 Posts
    Rep Power : 10
    Reputation:2077Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute

    Default

    Thanks for sharing.

  4. #3
    Status : titi50000 is offline
    Join Date : Mar 2010
    Posts : 1
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Rep Power : 0
    Reputation:10titi50000 is on a distinguished road

    Default

    thanks :)

  5. #4
    AnTo's Avatar
    Status : AnTo is offline
    Join Date : Oct 2009
    Location : not saying
    Posts : 701
    Thanks: 21
    Thanked 63 Times in 23 Posts
    Rep Power : 3
    Reputation:97AnTo will become famous soon enough

    Default

    Thank You!

  6. #5
    Truster's Avatar
    Status : Truster is offline
    Join Date : Apr 2010
    Location : Norway
    Posts : 3,340
    Thanks: 46
    Thanked 87 Times in 83 Posts
    Rep Power : 10
    Reputation:2014Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute

    Default

    thanks for sharing

  7. #6
    Status : gerculy is offline
    Join Date : Apr 2010
    Location : Romania
    Posts : 5
    Thanks: 5
    Thanked 0 Times in 0 Posts
    Rep Power : 0
    Reputation:10gerculy is on a distinguished road

    Default

    Thanks :)

  8. #7
    ~Sidefx™'s Avatar
    Status : ~Sidefx™ is offline
    Join Date : Jun 2010
    Location : Louisville
    Posts : 968
    Thanks: 15
    Thanked 46 Times in 26 Posts
    Rep Power : 3
    Reputation:140~Sidefx™ will become famous soon enough ~Sidefx™ will become famous soon enough

    Default

    Thanks.

  9. #8
    Killerasis's Avatar
    Status : Killerasis is offline
    Join Date : Sep 2010
    Location : I Live @ MMOTop.Org
    Posts : 459
    Thanks: 3
    Thanked 9 Times in 5 Posts
    Rep Power : 2
    Reputation:11Killerasis is on a distinguished road

    Default

    Thanks


 

Visitors found this page by searching for:

PHP trinityCore Total kills Alliance

PHP mangos Total kills Alliance

Accounts Created: .$num_acc.; echo

SEO Blog

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts