Changeset 244 for quests/includes
- Timestamp:
- Jan 17, 2008, 7:24:33 PM (17 years ago)
- Location:
- quests/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/includes/global.php
r240 r244 78 78 } 79 79 80 if (Licence( 1)) {80 if (Licence(2)) { 81 81 // echo 'Administrace:'; 82 echo '<a href="priorite.php" Title="Naètení priority questù ( Moderatoronly)">Priorita</a><br />';83 echo '<a href="log.php" Title="Log dìní ( Moderatoronly)">Log</a><br />82 echo '<a href="priorite.php" Title="Naètení priority questù (Admin only)">Priorita</a><br />'; 83 echo '<a href="log.php" Title="Log dìní (Admin only)">Log</a><br /> 84 84 <br />'; 85 85 } … … 107 107 } 108 108 echo 'Online u¾ivatelé:<br />'; 109 $ID = $Database->SQLCommand("SELECT user FROM `user` WHERE LastLogin >= Now()-300"); 110 while ($Line = mysql_fetch_array($ID)) 111 echo '<b>'.$Line['user'].'</b><br />'; 109 $ID = $Database->SQLCommand("SELECT user,GM FROM `user` WHERE LastLogin >= Now()-300"); 110 while ($Line = mysql_fetch_array($ID)) { 111 $TextGM = ' ('.$Moderators[$Line['GM']].')'; 112 echo '<b>'.$Line['user'].'</b>'.$TextGM.'<br />'; 113 } 112 114 113 115 -
quests/includes/global_function.php
r240 r244 12 12 return false; 13 13 } else { 14 if ($Licence == 1) { 15 if ($Line['gm'] == 1) { 14 if ($Licence <= $Line['gm']) { 16 15 return true; 17 } else return false; 18 } 16 } else return false; 19 17 If ($Line['pass'] == $Pass) { 20 18 … … 58 56 ); 59 57 58 $Moderators = array( 59 '0' => 'pøekladatel', 60 '1' => 'moderátor', 61 '2' => 'administrátor', 62 ); 63 60 64 function WriteLog($Text, $Type) 61 65 { // BEGIN function Log
Note:
See TracChangeset
for help on using the changeset viewer.