Changeset 826 for trunk/admin
- Timestamp:
- Mar 1, 2015, 3:38:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/index.php
r817 r826 3 3 $InitSystem = true; 4 4 include_once('../includes/global.php'); 5 include_once('../img_level.php');6 5 7 6 class PageAdmin extends Page … … 267 266 } 268 267 268 function ImgLevelShow() 269 { 270 global $System; 271 272 // Do update for all users 273 $System->Database->query('UPDATE `User` SET `NeedUpdate` = 1'); 274 ImgLevelUpdate(); 275 276 $Output = '<strong>Uživatelé</strong><br/>'; 277 $ID = $System->Database->query('SELECT `ID`, `Name` FROM `User`'); 278 while($LineUser = $ID->fetch_array()) 279 { 280 $Output .= '<img src="'.$System->Link('/tmp/user/'.$LineUser['Name'].'/level.png').'"/> '.$LineUser['Name'].'<br />'; 281 } 282 283 $Output .= '<br/><strong>Týmy</strong><br/>'; 284 $ID = $System->Database->query('SELECT `ID`, `Name` FROM `Team`'); 285 while($LineTeam = $ID->fetch_array()) 286 { 287 $Output .= '<img src="'.$System->Link('/tmp/team/'.$LineTeam['Name'].'/level.png').'"/> '.$LineTeam['Name'].'<br />'; 288 } 289 WriteLog('Přegenerovány obrázky úrovní překladatelů a týmů', LOG_TYPE_ADMINISTRATION); 290 return($Output); 291 } 292 293 269 294 function ShowLocale() 270 295 { … … 289 314 if(array_key_exists('action', $_GET)) 290 315 { 291 if($_GET['action'] == 'img_level') $Output .= ImgLevelShow();316 if($_GET['action'] == 'img_level') $Output .= $this->ImgLevelShow(); 292 317 else if($_GET['action'] == 'error') $Output .= $this->TestError(12, 'test'); 293 318 else if($_GET['action'] == 'exception') $Output .= $this->TestException(12, 'test');
Note:
See TracChangeset
for help on using the changeset viewer.