Welcome to the MMOtop - Arcemu, Mangos, Trinity.
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    zakikiller's Avatar
    Status : zakikiller is offline
    Join Date : Nov 2010
    Location : Stormwind
    Posts : 2
    Thanks: 0
    Thanked 1 Time in 1 Post
    Rep Power : 0
    Reputation:10zakikiller is on a distinguished road

    Talking [Epic] Some Scripts

    Hello , today its my first post on mmotop , and i have too bad english i have create some scripts :

    PHP Code:
    <?php
    mysql_connect
    ("localhost""your-user""your-pass");
    mysql_select_db("auth");
    // compte created
    $retour mysql_query("SELECT COUNT(*) AS nbre_entrees FROM account");
    $comptecree mysql_fetch_array($retour);
    ?>
    number of accounts created :
    PHP Code:
    <?php echo $comptecree['nbre_entrees']; ?>
    PHP Code:
     <?php
    mysql_connect
    ("localhost""your-user""your-pass");
    mysql_select_db("auth");
    // record
    $max mysql_query("select max(`maxplayers`) from uptime");
    $max mysql_result ($max,0);

    ?>
    Record players online :
    PHP Code:
    <?php echo $max;?>
    PHP Code:
    <?php
    mysql_connect
    ("localhost""your-user""your-pass");
    mysql_select_db("characters");
    // comptes créer
    $retour mysql_query("SELECT COUNT(*) AS nbre_entrees FROM characters");
    $persocree mysql_fetch_array($retour);?>
    total characted created :
    PHP Code:
    <?php echo $persocree['nbre_entrees']; ?>
    PHP Code:
    <?php
    $conn 
    mysql_connect("localhost""your-user""your-pass");

    mysql_select_db("characters"$conn) or die('La s&eacute;lection de la base de donn&eacute;e &agrave; &eacute;chou&eacute;: ' mysql_error());

    $sql "SELECT Count(Online) FROM `characters` WHERE `online` = 1";
    $result mysql_query($sql$conn);
    $row mysql_fetch_array($result);
    $online $row["Count(Online)"];


    mysql_selectdb ("auth");
    ?>
    player online :
    PHP Code:
    <?php echo $online;?>
    PHP Code:
    <?php
    mysql_connect
    ("localhost""your-user""your-pass") or die ("Connexion impossible &agrave; $host");
    mysql_selectdb ("auth");

    $sql mysql_query ("SELECT * FROM `auth``uptime` ORDER BY `starttime` DESC LIMIT 1");  
    $uptime_results mysql_fetch_array($sql);    

    if (
    $uptime_results['uptime'] > 86400) { 
        
    $uptime =  round(($uptime_results['uptime'] / 24 60 60),2)." jour(s)";
    }
    elseif(
    $uptime_results['uptime'] > 3600) { 
        
    $uptime =  round(($uptime_results['uptime'] / 60 60),2)." heure(s)";
    }
    else { 
        
    $uptime =  round(($uptime_results['uptime'] / 60),2)." min";
    }

    ?>
    Uptime :
    PHP Code:
    <?php echo $uptime;?>
    Thats all , take 2sec vote [Only registered and activated users can see links. ]
    Last edited by zakikiller; 10-21-2011 at 12:04 AM.

  2. The Following User Says Thank You to zakikiller For This Useful Post:

    Truster (10-21-2011)

  3. #2
    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

    looks nice thanks!

  4. #3
    zakikiller's Avatar
    Status : zakikiller is offline
    Join Date : Nov 2010
    Location : Stormwind
    Posts : 2
    Thanks: 0
    Thanked 1 Time in 1 Post
    Rep Power : 0
    Reputation:10zakikiller is on a distinguished road

    Default

    Np^^


 

Visitors found this page by searching for:

if ($uptime_results[uptime] &gt; 86400)

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