Ignore:
Timestamp:
Mar 30, 2012, 2:02:51 PM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Instalace a odinstalace je nyní spravována samostatným skriptem install.php.
  • Upraveno: Částečné řešení odstranění cizích klíčů v průběhu odinstalace před odstraněním samotných tabulek.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Modular/Install.php

    r377 r401  
    22
    33include_once('Common/Global.php');
     4GlobalInit();
    45
     6function 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
     21if(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();
    537
    638?>
Note: See TracChangeset for help on using the changeset viewer.