Changeset 613 for trunk/Common/Setup/Setup.php
- Timestamp:
- Dec 20, 2013, 9:04:09 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Setup.php
r595 r613 55 55 $Output .= '<a href="?action=upgrade">Povýšit</a> '; 56 56 $Output .= '<a href="?action=insert_sample_data">Vložit vzorová data</a> '; 57 $Output .= '<a href="?action=reload_modules">Obnovit seznam modulů</a> '; 57 58 $Output .= '<a href="?action=uninstall">Odinstalovat</a> '; 58 59 $Output .= '<a href="?action=modules">Správa modulů</a> '; … … 103 104 $Output .= '<h3>Instalace</h3>'; 104 105 $this->System->Setup->Install(); 105 $Output .= $this->System->Setup->Upgrade(); 106 $this->System->ModuleManager->LoadModules(); 107 $this->System->ModuleManager->SaveState(); 108 //$Output .= $this->System->Setup->Upgrade(); 106 109 $Output .= $this->ControlPanel(); 107 110 } else … … 110 113 $Output .= '<h3>Odinstalace</h3>'; 111 114 $this->System->Setup->Uninstall(); 115 $Output .= $this->ControlPanel(); 116 } else 117 if($Action == 'reload_modules') 118 { 119 $Output .= '<h3>Znovunačtení seznamu modulů</h3>'; 120 $this->System->ModuleManager->LoadModules(); 121 $this->System->ModuleManager->SaveState(); 112 122 $Output .= $this->ControlPanel(); 113 123 } else … … 392 402 function Install() 393 403 { 404 global $DatabaseRevision; 405 394 406 $this->Database->query('CREATE TABLE IF NOT EXISTS `SystemVersion` ( 395 407 `Id` int(11) NOT NULL AUTO_INCREMENT, … … 398 410 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;'); 399 411 $this->Database->query("INSERT INTO `SystemVersion` (`Id`, `Revision`) VALUES 400 (1, 591);");412 (1, '.$DatabaseRevision.');"); 401 413 $this->Database->query("CREATE TABLE IF NOT EXISTS `Module` ( 402 414 `Id` int(11) NOT NULL AUTO_INCREMENT,
Note:
See TracChangeset
for help on using the changeset viewer.