Changeset 401 for branches/Modular/Install.php
- Timestamp:
- Mar 30, 2012, 2:02:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Modular/Install.php
r377 r401 2 2 3 3 include_once('Common/Global.php'); 4 GlobalInit(); 4 5 6 function ShowDefault() 7 { 8 global $System; 9 10 if($System->IsInstalled()) 11 { 12 echo('System je již nainstalován.<br/>'); 13 echo('<a href="?a=uninstall">Odinstalovat systém</a>'); 14 } else 15 { 16 echo('System ještě není instalován.<br/>'); 17 echo('<a href="?a=install">Instalovat systém</a>'); 18 } 19 } 20 21 if(array_key_exists('a', $_GET)) 22 { 23 if($_GET['a'] == 'install') 24 { 25 $System->Install(); 26 $System->Init(); 27 ShowDefault(); 28 } 29 else if($_GET['a'] == 'uninstall') 30 { 31 $System->Init(); 32 $System->Uninstall(); 33 ShowDefault(); 34 } 35 else ShowDefault(); 36 } else ShowDefault(); 5 37 6 38 ?>
Note:
See TracChangeset
for help on using the changeset viewer.