Ignore:
Timestamp:
Aug 23, 2009, 6:14:01 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Znovu zprovozněny třídy HomePage, Server a User.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/Application/Controller/HomePage.php

    r69 r71  
    88    $View = new HomePageView($this->System);
    99    return($Page->GetOutput($View->Welcome()));
     10  }
     11 
     12  function Info()
     13  {
     14    $Page = new PageView($this->System);
     15    $View = new HomePageView($this->System);
     16    return($Page->GetOutput($View->Info()));
     17  }
     18
     19  function State()
     20  {
     21    $Page = new PageView($this->System);
     22    $View = new HomePageView($this->System);
     23    return($Page->GetOutput($View->State()));
    1024  }
    1125 
     
    2337    if(array_key_exists('Action', $_GET))
    2438    {
    25       if($_GET['Action'] == 'LoginForm')
    26       {
    27         $UserView = new UserView($this->Database, $this->System);
    28         $Output .= $UserView->LoginForm();
    29       } else
    30       if($_GET['Action'] == 'Login')
    31       {
    32         $UserView = new UserView($this->Database, $this->System);
    33         $Output .= $UserView->LoginResult();
    34       } else
    35       if($_GET['Action'] == 'Logout')
    36       {
    37         $UserView = new UserView($this->Database, $this->System);
    38         $Output .= $UserView->Logout();
    39       } else
    40       if($_GET['Action'] == 'UserOptions')
    41       {
    42         $UserView = new UserView($this->Database, $this->System);
    43         $Output .= $UserView->Options();
    44       } else
    45       if($_GET['Action'] == 'UserOptionsSave')
    46       {
    47         $UserView = new UserView($this->Database, $this->System);
    48         $Output .= $UserView->OptionsSave();
    49       } else
    50       if($_GET['Action'] == 'UserRegister')
    51       {
    52         $UserView = new UserView($this->Database, $this->System);
    53         $Output .= $UserView->Register();
    54       } else
    55       if($_GET['Action'] == 'UserRegisterConfirm')
    56       {
    57         $UserView = new UserView($this->Database, $this->System);
    58         $Output .= $UserView->RegisterConfirm();
    59       } else
    60       if($_GET['Action'] == 'PasswordRecovery')
    61       {
    62         $UserView = new UserView($this->Database, $this->System);
    63         $Output .= $UserView->PasswordRecovery();
    64       } else
    65       if($_GET['Action'] == 'PasswordRecoveryFinish')
    66       {
    67         $UserView = new UserView($this->Database, $this->System);
    68         $Output .= $UserView->PasswordRecoveryFinish();
    69       } else
    70       if($_GET['Action'] == 'PasswordRecoveryConfirm')
    71       {
    72         $UserView = new UserView($this->Database, $this->System);
    73         $Output .= $UserView->PasswordRecoveryConfirm();
    74       } else
    75       if($_GET['Action'] == 'UserRegisterSave')
    76       {
    77         $UserView = new UserView($this->Database, $this->System);
    78         $Output .= $UserView->RegisterSave();
    79       } else
    80       if($_GET['Action'] == 'ServerAdd')
    81       {
    82         $ServerView = new ServerView($this->Database, $this->System);
    83         $Output .= $ServerView->Add();
    84       } else
    85       if($_GET['Action'] == 'ServerCreate')
    86       {
    87         $ServerView = new ServerView($this->Database, $this->System);
    88         $Output .= $ServerView->Create();
    89       } else
    90       if($_GET['Action'] == 'ServerShow')
    91       {
    92         $ServerView = new ServerView($this->Database, $this->System);
    93         $Output .= $ServerView->Item();
    94         //if(array_key_exists('Id', $_GET)) $Output .= $this->ShowServer($_GET['Id']);
    95         //else $this->SystemMessage('Zobrazení serveru', 'Nebylo zadáno Id');
    96       } else
    97       if($_GET['Action'] == 'ServerEdit')
    98       {
    99         $ServerView = new ServerView($this->Database, $this->System);
    100         $Output .= $ServerView->Edit();
    101       } else
    102       if($_GET['Action'] == 'ServerSave')
    103       {
    104         $ServerView = new ServerView($this->Database, $this->System);
    105         $Output .= $ServerView->Save();
    106       } else
    107       if($_GET['Action'] == 'ServerStart')
    108       {
    109         $ServerView = new ServerView($this->Database, $this->System);
    110         $Output .= $ServerView->Start();
    111       } else
    112       if($_GET['Action'] == 'ServerStop')
    113       {
    114         $ServerView = new ServerView($this->Database, $this->System);
    115         $Output .= $ServerView->Stop();
    116       } else
    117       if($_GET['Action'] == 'ServerDatabaseImport')
    118       {
    119         $DatabaseView = new DatabaseView($this->Database, $this->System);
    120         $Output .= $DatabaseView->Import();
    121       } else
    12239      if($_GET['Action'] == 'EmulatorShow')
    12340      {
     
    17592        $Output .= $UpdateView->ItemList();
    17693      } else     
    177       if($_GET['Action'] == 'GameAccountRegister')
    178       {
    179         $ServerView = new ServerView($this->Database, $this->System);
    180         $Output .= $ServerView->AccountCreate();
    181       } else
    182       if($_GET['Action'] == 'GameAccountRegister2')
    183       {
    184         $ServerView = new ServerView($this->Database, $this->System);
    185         $Output .= $ServerView->AccountCreateFinish();
    186       } else     
    187       if($_GET['Action'] == 'Info')
    188       {
    189         $BaseView = new BaseView($this->Database, $this->System);
    190         $Output .= $BaseView->Info();
    191       } else     
    19294      if($_GET['Action'] == 'BackupAdd')
    19395      {
     
    244146        $BaseView = new BaseView($this->Database, $this->System);
    245147        $Output .= $BaseView->State();
    246       } else
    247       if($_GET['Action'] == 'ServerList')
    248       {
    249         $ServerView = new ServerView($this->Database, $this->System);
    250         $Output .= $ServerView->ItemList();
    251148      } else
    252149      if($_GET['Action'] == 'RealmList')
Note: See TracChangeset for help on using the changeset viewer.