/
players.php
37 lines (31 loc) · 1.07 KB
/
players.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?
include("config.php");
include("commonfunctions.php");
$irpg_page_title = "Player Info";
include("header.php");
?>
<h1>Players</h1>
<h2>Pick a player to view</h2>
<p class="small">[gray=offline]</p>
<ol>
<?php
$file = file($irpg_db);
unset($file[0]);
usort($file, 'cmp_level_desc');
foreach ($file as $line) {
list($user,,,$level,$class,$secs,,,$online) = explode("\t",trim($line));
$class = htmlentities($class);
$next_level = duration($secs);
print " <li".(!$online?" class=\"offline\"":"")."><a".
(!$online?" class=\"offline\"":"").
" href=\"playerview.php?player=".urlencode($user).
"\">".htmlentities($user).
"</a>, the level $level $class. Next level in $next_level.</li>\n";
}
?>
</ol>
<p>For a script to view player stats from a terminal, try <a
href="idlerpg-adv.txt">this</a> perl script by
<a href="mailto:daxxar@mental.mine.nu">daxxar</a>.</p>
<p>See player stats in <a href="db.php">table format</a>.</p>
<?include("footer.php")?>