Changeset 405 for branches/Modular/Modules/System/System.php
- Timestamp:
- Jun 12, 2012, 7:25:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Modular/Modules/System/System.php
r404 r405 12 12 function Show() 13 13 { 14 $Output = ''; 15 if(array_key_exists('A', $_GET)) 16 { 17 if($_GET['A'] == 'Install') 18 { 19 $this->System->LoadModules(false); 20 $ModuleName = $this->System->SearchModuleById($_GET['Id']); 21 if($ModuleName != '') 22 { 23 $this->System->Modules[$ModuleName]->Install(); 24 $this->System->Init(); 25 } else $Output .= 'Modul id '.$_GET['Id'].' nenalezen'; 26 27 } 28 if($_GET['A'] == 'Uninstall') 29 { 30 $ModuleName = $this->System->SearchModuleById($_GET['Id']); 31 if($ModuleName != '') 32 { 33 $this->System->Modules[$ModuleName]->UnInstall(); 34 $this->System->Init(); 35 } else $Output .= 'Modul id '.$_GET['Id'].' nenalezen'; 36 } 37 } 14 38 $View = new ViewModules($this->System); 15 39 $View->LoadFromDatabase(); 16 return($View->Show()); 40 $Output .= $View->Show(); 41 return($Output); 17 42 } 18 43 } … … 30 55 $this->AddItemBoolean('Installed', 'Instalováno'); 31 56 $this->AddItemText('Description', 'Popis'); 57 $this->AddItemAction('Install', 'System', 'Install', ''); 58 $this->AddItemAction('Uninstall', 'System', 'Uninstall', ''); 32 59 } 33 60 }
Note:
See TracChangeset
for help on using the changeset viewer.