Changeset 390
- Timestamp:
- Oct 8, 2008, 1:28:45 PM (16 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gm.php
r389 r390 15 15 while($Line = $Result->fetch_array()) 16 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 17 20 echo '<tr><td><p>Přezdívka:</p></td>'; 18 21 echo '<td><p><b>'.$Line['username'].'</b></p></td>'; -
index.php
r389 r390 74 74 <a href="gm.php">Administrátoři</a> 75 75 <div>'); 76 77 //include('administrace/SubFiles/DatabaseConection.php'); 78 $Database->select_db('wow'); 79 $Result = $Database->select('user', '*', 'ban = 0 ORDER BY id'); 80 while($Row = $Result->fetch_array()) 81 echo($Row['User'].' - '.$Row['Function'].'<br/>'); 76 $ChronosId = 11432; 77 $Database->select_db('realmd'); 78 $Result = $Database->query('SELECT * FROM account WHERE (locked = 0) AND (id != '.$ChronosId.') AND (gmlevel > 0) ORDER BY gmlevel DESC'); 79 while($Row = $Result->fetch_array()) 80 { 81 $Row['username'] = strtoupper($Row['username'][0]).strtolower(substr($Row['username'], 1)); 82 if(substr($Row['username'], -2, 2) == 'gm') $Row['username'] = substr($Row['username'], 0, -2); 83 echo($Row['username'].'<br/>'); 84 } 82 85 83 86 echo('</div>
Note:
See TracChangeset
for help on using the changeset viewer.