source: irpg/trunk/players.php@ 1449

Last change on this file since 1449 was 1449, checked in by skalpette, 15 years ago

Import initial

File size: 993 bytes
Line 
1<?
2 include("config.php");
3 include("commonfunctions.php");
4 $irpg_page_title = "Les joueurs";
5 include("header.php");
6?>
7
8 <h1>Les joueurs</h1>
9 <h2>Cliquez sur un joueur pour voir son profil complet</h2>
10 <p class="small">[gris=d&eacute;connect&eacute;]</p>
11 <ol>
12<?php
13 $file = file($irpg_db);
14 unset($file[0]);
15 usort($file, 'cmp_level_desc');
16 foreach ($file as $line) {
17 list($user,,,$level,$class,$secs,,,$online) = explode("\t",trim($line));
18
19 $class = htmlentities($class);
20 $next_level = duration($secs);
21
22 print " <li".(!$online?" class=\"offline\"":"")."><a".
23 (!$online?" class=\"offline\"":"").
24 " href=\"playerview.php?player=".urlencode($user).
25 "\">".htmlentities($user).
26 "</a>, le $class de niveau $level. Prochain niveau dans $next_level.</li>\n";
27
28 }
29?>
30 </ol>
31
32 <p>La liste des joueurs dans un <a href="db.php">tableau</a>.</p>
33
34<?include("footer.php")?>
Note: See TracBrowser for help on using the repository browser.