1 | <?php
|
---|
2 |
|
---|
3 | include('global.php');
|
---|
4 | ShowHeader();
|
---|
5 | include('download_soubory/files.php');
|
---|
6 |
|
---|
7 | $Role = array('Hráč', 'Moderátor', 'Game master', 'Kontrolor chyb', 'Administrátor', 'Správce systému');
|
---|
8 |
|
---|
9 | echo('<h3>GM tým</h3>');
|
---|
10 |
|
---|
11 | $ChronosId = 11432;
|
---|
12 | $Database->select_db($Config['Mangos']['DatabaseRealmd']);
|
---|
13 | $Result = $Database->query('SELECT * FROM account WHERE (locked = 0) AND (id != '.$ChronosId.') AND (gmlevel > 0) ORDER BY gmlevel DESC');
|
---|
14 | echo('<table border="0">');
|
---|
15 | while($Line = $Result->fetch_array())
|
---|
16 | {
|
---|
17 | $Line['username'] = strtoupper($Line['username'][0]).strtolower(substr($Line['username'], 1));
|
---|
18 | if(substr($Line['username'], -2, 2) == 'gm') $Line['username'] = substr($Line['username'], 0, -2);
|
---|
19 |
|
---|
20 | echo '<tr><td><p>Přezdívka:</p></td>';
|
---|
21 | echo '<td><p><b>'.$Line['username'].'</b></p></td>';
|
---|
22 | echo '</tr>';
|
---|
23 | echo '<tr><td><p>Funkce:</p></td>';
|
---|
24 | echo '<td><p><b>'.$Role[$Line['gmlevel']].'</b></p></td>';
|
---|
25 | echo '</tr>';
|
---|
26 | /*
|
---|
27 | if ($Line['Email'] <> '')
|
---|
28 | {
|
---|
29 | echo '<tr><td><p>Email:</p></td>';
|
---|
30 | echo '<td><p><b>'.$Line['Email'].'</b></p></td>';
|
---|
31 | echo '</tr>';
|
---|
32 | }
|
---|
33 | $Acc = $Line['AccID'];
|
---|
34 | */
|
---|
35 | $Database->select_db($Config['Mangos']['DatabaseCharacters']);
|
---|
36 | echo('<tr><td><p>GM Postavy ve hře:</p></td>');
|
---|
37 | echo('<td><p><b>');
|
---|
38 | $ResultMangos = $Database->query('SELECT * FROM `characters` WHERE account = "'.$Line['id'].'"');
|
---|
39 | while($LineMangos = $ResultMangos->fetch_array())
|
---|
40 | {
|
---|
41 | if($LineMangos['online'] == 1)
|
---|
42 | echo($LineMangos['name'].'(online) ');
|
---|
43 | else
|
---|
44 | echo($LineMangos['name'].' ');
|
---|
45 | }
|
---|
46 | echo('</b></p></td></tr>');
|
---|
47 |
|
---|
48 | // $Database->select_db($Config['Mangos']['DatabaseRealmd']);
|
---|
49 | if($Line['ForumId'] != 0)
|
---|
50 | {
|
---|
51 | echo('<tr><td><p>Profil na foru:</p></td>');
|
---|
52 | echo('<td><p><b><a href="http://wow.zdechov.net/forum/profile.php?mode=viewprofile&u='.$Line['ForumId'].'">Profil</a></b></p></td>');
|
---|
53 | echo '</tr>';
|
---|
54 | }
|
---|
55 | echo('<tr><td colspan="2"><hr></td></tr>');
|
---|
56 | }
|
---|
57 | echo('</table>');
|
---|
58 | ShowFooter();
|
---|
59 |
|
---|
60 | ?>
|
---|