Changeset 511 for trunk/includes/global.php
- Timestamp:
- Feb 16, 2013, 4:23:29 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global.php
r510 r511 8 8 include_once(dirname(__FILE__).'/Page.php'); 9 9 include_once(dirname(__FILE__).'/error.php'); 10 if(file_exists(dirname(__FILE__).'/config.php')) 11 include_once(dirname(__FILE__).'/config.php'); 12 include_once(dirname(__FILE__).'/Version.php'); 10 13 11 14 GlobalInit(); … … 13 16 function GlobalInit() 14 17 { 15 16 18 global $System, $ScriptStartTime, $TranslationTree, $User, $StopAfterUpdateManager, 19 $UpdateManager, $Config; 17 20 18 21 $ScriptStartTime = GetMicrotime(); … … 20 23 if(isset($_SERVER['REMOTE_ADDR'])) session_start(); 21 24 22 if(file_exists(dirname(__FILE__).'/config.php')) include_once(dirname(__FILE__).'/config.php'); 23 else die('Nenalezen konfigurační soubor config.php ve složce includes. '. 24 'Vytvořte jej zkopírováním vzoru config.sample.php.'); 25 if(!isset($Config)) die('Systém není nainstalován. Pokračujte v instalaci <a href="admin/install.php">zde</a>.'); 25 26 date_default_timezone_set($Config['Web']['Timezone']); 26 27 $Revision = 510; // Subversion revision28 $ReleaseTime = '2013-02-15';29 27 30 28 $System = new System(); … … 35 33 $UpdateManager->Database = $System->Database; 36 34 $UpdateManager->Revision = $Revision; 37 if(isset($StopAfterUpdateManager)) return;38 35 if(!$UpdateManager->IsInstalled()) die('Systém vyžaduje instalaci databáze.'); 39 36 if(!$UpdateManager->IsUpToDate()) die('Systém vyžaduje aktualizaci databáze.');
Note:
See TracChangeset
for help on using the changeset viewer.