source: beta/pages/gmteam.php@ 419

Last change on this file since 419 was 419, checked in by amun, 16 years ago

Seznam GM, script zkopírován z momentálního webu...

File size: 1.8 KB
Line 
1<?
2$Role = array('Hrác', 'Moderátor', 'Game Master', 'Kontrolor chyb', 'Administrátor', 'Správce Systému');
3
4echo('<h3>GM tým</h3>');
5
6$ChronosId = 11432;
7include("inc/db.php");
8$Database->select_db("$db_realmd");
9$Result = $Database->query('SELECT * FROM account WHERE (locked = 0) AND (id != '.$ChronosId.') AND (gmlevel > 0) ORDER BY gmlevel DESC');
10echo('<table border="0">');
11while($Line = $Result->fetch_array())
12{
13 $Line['username'] = strtoupper($Line['username'][0]).strtolower(substr($Line['username'], 1));
14 if(substr($Line['username'], -2, 2) == 'gm') $Line['username'] = substr($Line['username'], 0, -2);
15
16 echo '<tr><td><p>Prezdívka:</p></td>';
17 echo '<td><p><b>'.$Line['username'].'</b></p></td>';
18 echo '</tr>';
19 echo '<tr><td><p>Funkce:</p></td>';
20 echo '<td><p><b>'.$Role[$Line['gmlevel']].'</b></p></td>';
21 echo '</tr>';
22/*
23 if ($Line['Email'] <> '')
24 {
25 echo '<tr><td><p>Email:</p></td>';
26 echo '<td><p><b>'.$Line['Email'].'</b></p></td>';
27 echo '</tr>';
28 }
29 $Acc = $Line['AccID'];
30*/
31 $Database->select_db("$db_characters");
32 echo('<tr><td><p>GM Postavy ve hre:</p></td>');
33 echo('<td><p><b>');
34 $ResultMangos = $Database->query('SELECT * FROM `characters` WHERE account = "'.$Line['id'].'"');
35 while($LineMangos = $ResultMangos->fetch_array())
36 {
37 if($LineMangos['online'] == 1)
38 echo($LineMangos['name'].'(online) ');
39 else
40 echo($LineMangos['name'].' ');
41 }
42 echo('</b></p></td></tr>');
43
44// $Database->select_db($Config['Mangos']['DatabaseRealmd']);
45 if($Line['ForumId'] != 0)
46 {
47 echo('<tr><td><p>Profil na foru:</p></td>');
48 echo('<td><p><b><a href="http://wow.zdechov.net/forum/profile.php?mode=viewprofile&u='.$Line['ForumId'].'">Profil</a></b></p></td>');
49 echo '</tr>';
50 }
51 echo('<tr><td colspan="2"><hr></td></tr>');
52}
53echo('</table>');
Note: See TracBrowser for help on using the repository browser.