Changeset 498 for trunk/includes/global.php
- Timestamp:
- Jan 30, 2013, 10:33:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global.php
r497 r498 17 17 if(file_exists(dirname(__FILE__).'/config.php')) include_once(dirname(__FILE__).'/config.php'); 18 18 else die('Nenalezen konfigurační soubor config.php ve složce includes. Vytvořte jej zkopírováním vzoru config.sample.php.'); 19 date_default_timezone_set($Config['Web']['Timezone']); 19 20 include_once(dirname(__FILE__).'/Database.php'); 20 21 include_once(dirname(__FILE__).'/rss.php'); … … 62 63 if($User->Licence(LICENCE_USER)) 63 64 { 64 $DbResult = $System->Database->query('SELECT `Id`, `Name` FROM `Team` WHERE `Id`='.$User->Team); 65 $Team = $DbResult->fetch_assoc(); 66 65 //$DbResult = $System->Database->query('SELECT `Id`, `Name` FROM `Team` WHERE `Id`='.$User->Team); 66 //$Team = $DbResult->fetch_assoc(); 67 67 //echo('<span class="MenuItem">Moje překlady: <a href="">Dokončené</a> <a href="">Rozpracované</a> <a href="">Exporty</a> Tým: <a href="">'.$Team['name'].'</a></span>'); 68 68 echo('<span class="MenuItem2">'.$User->Name.' <a href="'.$System->Link('/?action=logout').'">Odhlášení</a> <a href="'.$System->Link('/Options.php').'">Nastavení</a>'); … … 250 250 if($User->Role != LICENCE_ANONYMOUS) 251 251 { 252 WriteLog('Odhlášení', LOG_TYPE_USER); 252 253 $User->Logout(); 253 254 $Message = 'Byl jsi odhlášen.'; 254 255 $MessageType = MESSAGE_INFORMATION; 255 WriteLog('Odhlášení', LOG_TYPE_USER);256 256 } 257 257 }
Note:
See TracChangeset
for help on using the changeset viewer.