Changeset 738 for trunk/Common/Setup/Setup.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Setup.php
r737 r738 69 69 function Show() 70 70 { 71 72 73 74 75 76 77 78 79 71 global $ConfigDefinition, $DatabaseRevision, $Config, $Updates; 72 73 $this->UpdateManager = $this->System->Setup->UpdateManager; 74 $DefaultConfig = new DefaultConfig(); 75 $this->ConfigDefinition = $DefaultConfig->Get(); 76 $this->DatabaseRevision = $DatabaseRevision; 77 $this->Config = &$Config; 78 79 $Output = ''; 80 80 if(isset($this->Config)) 81 81 { … … 105 105 $Output .= $this->System->Setup->Upgrade(); 106 106 } catch (Exception $E) { 107 108 109 107 $Output .= $this->SystemMessage('Chyba aktualizace', 'Došlo k chybě v SQL dotazu při aktualizaci: <br/>'.$E->getMessage()); 108 } 109 $Output .= $this->ControlPanel(); 110 110 } else 111 111 if($Action == 'install') … … 353 353 class PageSetupRedirect extends Page 354 354 { 355 356 357 358 359 360 361 362 363 364 365 366 367 368 355 function Show() 356 { 357 $Output = ''; 358 if(!$this->Database->Connected()) $Output .= 'Nelze se připojit k databázi.<br>'; 359 else { 360 if(!$this->System->Setup->UpdateManager->IsInstalled()) 361 $Output .= 'Systém vyžaduje instalaci databáze.<br>'; 362 else 363 if(!$this->System->Setup->UpdateManager->IsUpToDate()) 364 $Output .= 'Systém vyžaduje aktualizaci databáze.<br>'; 365 } 366 $Output .= 'Pokračujte <a href="'.$this->System->Link('/setup/').'">zde</a>'; 367 return($Output); 368 } 369 369 } 370 370 … … 404 404 function Install() 405 405 { 406 406 global $DatabaseRevision; 407 407 408 408 $this->Database->query('CREATE TABLE IF NOT EXISTS `SystemVersion` (
Note:
See TracChangeset
for help on using the changeset viewer.