Advertisement
Guest User

Untitled

a guest
May 30th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.38 KB | None | 0 0
  1. <?php include "main.php"; ?>  
  2. <div class="twrap">
  3. <div class="topic"></div><div class="topicm"><div class="ts"><center><span style="color:#d26b27;"><center>Server$
  4. <?php include ('config.php');
  5. #Script by Stipt
  6. #Please do not remove credits
  7.  
  8. //===========: Settings :==========/
  9. $database_host = "$sh";
  10. $database_user = "$su";    
  11. $database_pass = "$sp";
  12. $database = "$sd";
  13.  
  14. //===========: Script :===========/
  15. $online_aplayers = 0;      
  16. $online_hplayers = 0;                            
  17.  
  18. $whosonline = '<!--Script made by Stipt-->
  19.                                <!--Last updated: '.@date("d/M/Y G:i", time()).'-->
  20.               <br>
  21.               <table width=100%>
  22.                 <tr>
  23.                   <th><u>Name</u></th>                
  24.                   <th><u>Level</u></th>
  25.                   <th><u>Race</u></th>
  26.                   <th><u>Class</u></th>            
  27.                </tr>';
  28.  
  29. @mysql_connect("$database_host", "$database_user", "$database_pass") or die("Unable to connect to server, please$
  30. @mysql_select_db("$database") or die("Unable to connect to database, please try again later");
  31.  
  32. $online = mysql_query("SELECT name, gender, race, class,  level FROM characters WHERE online = 1");
  33. $total_online = mysql_num_rows($online);
  34.  
  35. while( $row = mysql_fetch_array($online)) {
  36.        $faction = (($row['race'] == 1 || $row['race'] == 3 || $row['race'] == 4 || $row['race'] == 7 || $row['r$
  37.        if($faction == 'alliance') $online_aplayers++;
  38.        else $online_hplayers++;
  39.        $whosonline .= "<tr>
  40.                           <td>{$row['name']}</td>
  41.                                           <td>{$row['level']}</td>
  42.                                           <td><img src='icons/race/{$row['race']}-{$row['gender']}.gif'></td>
  43.                                           <td><img src='icons/class/{$row['class']}.gif'></td>
  44.  
  45.                         </tr>";
  46. }
  47. $whosonline .= '</table>';
  48.  
  49. ?>
  50. <table width=100%>
  51. <tr>
  52.   <td>Realm Name: </td>
  53.   <td align=left><b>Chronos</b></td>
  54. </tr>
  55.  
  56. <tr>
  57.   <td>Realm Type: </td>
  58.   <td align=left>Blizzlike</td>
  59. </tr>
  60.  
  61. <tr>
  62.   <td>Status: </td>
  63.   <td align=left><?php GetStatus(0, "$sh", $spo, 3724, ""); ?></td>
  64. </tr>
  65. <tr>
  66.   <td>When: </td>
  67.   <td align=left><?php $when ='
  68.                                '.@date("M-d-Y G:i", time()).'
  69.                                                [ Read 94 lines ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement