Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <font color="white">
- <?php
- #Script by Stipt
- #Please do not remove credits
- //===========: Settings :==========/
- $database_host = "173.208.123.140";
- $database_user = "lostsoul_admin";
- $database_pass = "lsa5701!";
- $database = "lostsoul_characters";
- //===========: Script :===========/
- $online_aplayers = 0;
- $online_hplayers = 0;
- $whosonline = '<!--Script made by Stipt-->
- <!--Last updated: '.@date("d/M/Y G:i", time()).'-->
- <br>
- <table width=100%>
- <tr>
- <th><u>Name</u></th>
- <th><u>Level</u></th>
- <th><u>Race</u></th>
- <th><u>Class</u></th>
- </tr>';
- //===========: Settings :==========/
- $database_host1 = "173.208.123.140";
- $database_user1 = "lostsoul_admin";
- $database_pass1 = "lsa5701!";
- $database1 = "lostsoul_uldaman_characters";
- //===========: Script :===========/
- $online_aplayers1 = 0;
- $online_hplayers1 = 0;
- $whosonline = '<!--Script made by Stipt-->
- <!--Last updated: '.@date("d/M/Y G:i", time()).'-->
- <br>
- <table width=100%>
- <tr>
- <th><u>Name</u></th>
- <th><u>Level</u></th>
- <th><u>Race</u></th>
- <th><u>Class</u></th>
- </tr>';
- @mysql_connect("$database_host", "$database_user", "$database_pass") or die("Unable to connect to server, please try again later");
- @mysql_select_db("$database") or die("Unable to connect to database, please try again later");
- $online = mysql_query("SELECT name, gender, race, class, level FROM characters WHERE online = 1");
- $total_online = mysql_num_rows($online);
- while( $row = mysql_fetch_array($online)) {
- $faction = (($row['race'] == 1 || $row['race'] == 3 || $row['race'] == 4 || $row['race'] == 7 || $row['race'] == 11) ? 'alliance' : 'horde');
- if($faction == 'alliance') $online_aplayers++;
- else $online_hplayers++;
- $whosonline .= "<tr>
- <td>{$row['name']}</td>
- <td>{$row['level']}</td>
- <td><img src='icons/race/{$row['race']}-{$row['gender']}.gif'></td>
- <td><img src='icons/class/{$row['class']}.gif'></td>
- </tr>";
- }
- $whosonline .= '</table>';
- ?>
- <!--Seperate online Script-->
- Name: <b>Optical PvP</b><br><br><br><br><br/>
- Online: <?php echo $online_hplayers+$online_aplayers ; print " (<font color='blue'>Alliance: $online_aplayers</font> / <font color='red'>Horde: $online_hplayers</font>)"; ?><br><br><br><br><br/>
- Uptime: <b><?php $lss = mysql_connect("173.208.123.140","lostsoul_admin","lsa5701!");
- if (!$lss)
- {
- die('Could not connect: ' . mysql_error());
- }?><?php mysql_select_db("lostsoul_accounts", $lss);
- $upt = mysql_query("SELECT uptime FROM uptime ORDER BY starttime DESC LIMIT 0,1");
- while($up = mysql_fetch_array($upt))
- {
- echo $up['uptime'];
- } ?></b><br/><br><br><br><br><br><br><br><br><br/><br><br><br><br><br/>
- <br/>
- <br/>
- Name: <b>Uldaman Highrate</b><br><br><br><br><br/><?php
- @mysql_connect("$database_host1", "$database_user1", "$database_pass1") or die("Unable to connect to server, please try again later");
- @mysql_select_db("$database1") or die("Unable to connect to database, please try again later");
- $online1 = mysql_query("SELECT name, gender, race, class, level FROM characters WHERE online = 1");
- $total_online1 = mysql_num_rows($online1);
- while( $row1 = mysql_fetch_array($online1)) {
- $faction1 = (($row1['race'] == 1 || $row1['race'] == 3 || $row1['race'] == 4 || $row1['race'] == 7 || $row1['race'] == 11) ? 'alliance' : 'horde');
- if($faction1 == 'alliance') $online_aplayers1++;
- else $online_hplayers1++;
- $whosonline1 .= "<tr>
- <td>{$row1['name']}</td>
- <td>{$row1['level']}</td>
- <td><img src='icons/race/{$row1['race']}-{$row1['gender']}.gif'></td>
- <td><img src='icons/class/{$row1['class']}.gif'></td>
- </tr>";
- }
- $whosonline1 .= '</table>';
- ?>
- Online: <?php echo $online_hplayers1+$online_aplayers1 ; print " (<font color='blue'>Alliance: $online_aplayers1</font> / <font color='red'>Horde: $online_hplayers1</font>)"; ?><br><br><br><br><br/>
- Uptime: <b><?php $lss1 = mysql_connect("173.208.123.140","lostsoul_admin","lsa5701!");
- if (!$lss1)
- {
- die('Could not connect: ' . mysql_error());
- }?><?php mysql_select_db("lostsoul_accounts", $lss1);
- $upt1 = mysql_query("SELECT uptime FROM uptime ORDER BY starttime DESC LIMIT 0,1");
- while($up1 = mysql_fetch_array($upt1))
- {
- echo $up1['uptime'];
- } ?></b><br><br><br><br><br><br><br><br><br><br/>
- <br/>
- <br/>
- Total Online Players: <b> <?php echo $online_hplayers+$online_aplayers+$online_hplayers1+$online_aplayers1 ; ?></b>
- </font>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement