mirror of
https://silica.codes/islehorse/HorseIsleWeb.git
synced 2025-04-21 12:19:24 +12:00
Add files via upload
This commit is contained in:
parent
c632c19c34
commit
fb0a78cf76
17 changed files with 1808 additions and 1799 deletions
|
@ -1,32 +1,32 @@
|
|||
<?php
|
||||
include("config.php");
|
||||
include("crosserver.php");
|
||||
include("common.php");
|
||||
$id = -1;
|
||||
if(isset($_GET['id'])){
|
||||
$id = intval($_GET['id']);
|
||||
}
|
||||
$on = getPlayerList($dbname);
|
||||
$numbOn = count($on);
|
||||
$budsOn = 0;
|
||||
?>
|
||||
<B><?php echo($numbOn)?> players<BR>online now:</B><?php
|
||||
|
||||
for($i = 0; $i < $numbOn; $i++){
|
||||
$name = get_username($on[$i]['id']);
|
||||
$admin = $on[$i]['admin'];
|
||||
$mod = $on[$i]['mod'];
|
||||
$subbed = $on[$i]['subbed'];
|
||||
$new = $on[$i]['new'];
|
||||
$bud = checkUserBuddy($dbname, $id ,$on[$i]['id']);
|
||||
|
||||
echo("<BR>");
|
||||
if($bud) { echo('<B><FONT COLOR=BLUE>'); echo(htmlspecialchars($name)); echo('</FONT></B>'); $budsOn++; }
|
||||
else if($admin) { echo('<B><FONT COLOR=RED>'); echo(htmlspecialchars($name)); echo('</FONT></B>'); }
|
||||
else if($mod) { echo('<B><FONT COLOR=GREEN>'); echo(htmlspecialchars($name)); echo('</FONT></B>'); }
|
||||
else { echo(htmlspecialchars($name)); }
|
||||
|
||||
if($new) { echo(' <FONT SIZE=-2 COLOR=660000>[new]</FONT>'); };
|
||||
|
||||
}
|
||||
<?php
|
||||
include("config.php");
|
||||
include("crosserver.php");
|
||||
include("common.php");
|
||||
$id = -1;
|
||||
if(isset($_GET['id'])){
|
||||
$id = intval($_GET['id']);
|
||||
}
|
||||
$on = getPlayerList($dbname);
|
||||
$numbOn = count($on);
|
||||
$budsOn = 0;
|
||||
?>
|
||||
<B><?php echo($numbOn)?> players<BR>online now:</B><?php
|
||||
|
||||
for($i = 0; $i < $numbOn; $i++){
|
||||
$name = get_username($on[$i]['id']);
|
||||
$admin = $on[$i]['admin'];
|
||||
$mod = $on[$i]['mod'];
|
||||
$subbed = $on[$i]['subbed'];
|
||||
$new = $on[$i]['new'];
|
||||
$bud = checkUserBuddy($dbname, $id ,$on[$i]['id']);
|
||||
|
||||
echo("<BR>");
|
||||
if($bud) { echo('<B><FONT COLOR=BLUE>'); echo(htmlspecialchars($name)); echo('</FONT></B>'); $budsOn++; }
|
||||
else if($admin) { echo('<B><FONT COLOR=RED>'); echo(htmlspecialchars($name)); echo('</FONT></B>'); }
|
||||
else if($mod) { echo('<B><FONT COLOR=GREEN>'); echo(htmlspecialchars($name)); echo('</FONT></B>'); }
|
||||
else { echo(htmlspecialchars($name)); }
|
||||
|
||||
if($new) { echo(' <FONT SIZE=-2 COLOR=660000>[new]</FONT>'); };
|
||||
|
||||
}
|
||||
?><BR><I><FONT COLOR=BLUE>(<?php echo($budsOn); ?> buddies)</FONT></I><BR><FONT COLOR=222222 SIZE=-1><I>This list refreshes every 30 seconds.</I></FONT>
|
Loading…
Add table
Add a link
Reference in a new issue