Legend:
- Unmodified
- Added
- Removed
-
gm.php
r346 r375 1 1 <?php 2 include('global.php'); 3 ShowHeader(); 4 include('download_soubory/files.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'); 5 8 6 9 echo('<h3>GM tým</h3>'); 7 10 8 $Database->select_db('wow');9 $Result = $Database->query('SELECT * FROM user WHERE ban = 0');10 echo '<table border="0">';11 while ($Line = $Result->fetch_array()) 12 { 13 echo '<tr><td><p>Pøezdívka:</p></td>'; 14 echo '<td><p><b>'.$Line['User'].'</b></p></td>';15 echo '</tr>';16 echo '<tr><td><p>Funkce:</p></td>';17 echo '<td><p><b>'.$Line['Function'].'</b></p></td>';18 echo '</tr>';19 if ($Line['Email'] <> '') {20 echo '<tr><td><p>Email:</p></td>'; 21 echo '<td><p><b>'.$Line['Email'].'</b></p></td>';22 echo '</tr>';23 }24 $Acc = $Line['AccID'];25 $Database->select_db('characters');26 if ($Acc <> '0') {27 echo '<tr><td><p>GM Postavy ve høe:</p></td>';28 echo '<td><p><b>'; 29 $ResultMangos = $Database->query('SELECT * FROM `characters` WHERE account = "'.$Acc.'"');30 while ($LineMangos = $ResultMangos->fetch_array())31 {32 if ($LineMangos['online'] == 1)33 echo $LineMangos['name'].'(online) ';34 else35 echo $LineMangos['name'].' ';36 }37 echo '</b></p></td></tr>';38 }39 // todo: forum40 // $Database->SelectDatabase('forum');11 $ChronosId = 11432; 12 $Database->select_db('realmd'); 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 echo '<tr><td><p>Pøezdívka:</p></td>'; 18 echo '<td><p><b>'.$Line['username'].'</b></p></td>'; 19 echo '</tr>'; 20 echo '<tr><td><p>Funkce:</p></td>'; 21 echo '<td><p><b>'.$Role[$Line['gmlevel']].'</b></p></td>'; 22 echo '</tr>'; 23 /* 24 if ($Line['Email'] <> '') 25 { 26 echo '<tr><td><p>Email:</p></td>'; 27 echo '<td><p><b>'.$Line['Email'].'</b></p></td>'; 28 echo '</tr>'; 29 } 30 $Acc = $Line['AccID']; 31 */ 32 $Database->select_db('characters'); 33 echo('<tr><td><p>GM Postavy ve høe:</p></td>'); 34 echo('<td><p><b>'); 35 $ResultMangos = $Database->query('SELECT * FROM `characters` WHERE account = "'.$Line['id'].'"'); 36 while($LineMangos = $ResultMangos->fetch_array()) 37 { 38 if($LineMangos['online'] == 1) 39 echo($LineMangos['name'].'(online) '); 40 else 41 echo($LineMangos['name'].' '); 42 } 43 echo('</b></p></td></tr>'); 41 44 42 echo '<tr><td><p>Profil na foru:</p></td>'; 43 echo '<td><p><b><a href="http://wow.zdechov.net/forum/profile.php?mode=viewprofile&u='.$Line['ForumID'].'">Profil</a></b></p></td>'; 44 echo '</tr>'; 45 echo('<tr><td colspan="2"><hr></td></tr>'); 45 $Database->select_db('realmd'); 46 if($Line['ForumId'] != 0) 47 { 48 echo('<tr><td><p>Profil na foru:</p></td>'); 49 echo('<td><p><b><a href="http://wow.zdechov.net/forum/profile.php?mode=viewprofile&u='.$Line['ForumId'].'">Profil</a></b></p></td>'); 50 echo '</tr>'; 51 } 52 echo('<tr><td colspan="2"><hr></td></tr>'); 53 } 54 echo('</table>'); 55 ShowFooter(); 46 56 47 }48 echo '</table>';49 ShowFooter();50 57 ?>
Note:
See TracChangeset
for help on using the changeset viewer.