Changeset 71 for trunk/www/Application/Controller/HomePage.php
- Timestamp:
- Aug 23, 2009, 6:14:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/Controller/HomePage.php
r69 r71 8 8 $View = new HomePageView($this->System); 9 9 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())); 10 24 } 11 25 … … 23 37 if(array_key_exists('Action', $_GET)) 24 38 { 25 if($_GET['Action'] == 'LoginForm')26 {27 $UserView = new UserView($this->Database, $this->System);28 $Output .= $UserView->LoginForm();29 } else30 if($_GET['Action'] == 'Login')31 {32 $UserView = new UserView($this->Database, $this->System);33 $Output .= $UserView->LoginResult();34 } else35 if($_GET['Action'] == 'Logout')36 {37 $UserView = new UserView($this->Database, $this->System);38 $Output .= $UserView->Logout();39 } else40 if($_GET['Action'] == 'UserOptions')41 {42 $UserView = new UserView($this->Database, $this->System);43 $Output .= $UserView->Options();44 } else45 if($_GET['Action'] == 'UserOptionsSave')46 {47 $UserView = new UserView($this->Database, $this->System);48 $Output .= $UserView->OptionsSave();49 } else50 if($_GET['Action'] == 'UserRegister')51 {52 $UserView = new UserView($this->Database, $this->System);53 $Output .= $UserView->Register();54 } else55 if($_GET['Action'] == 'UserRegisterConfirm')56 {57 $UserView = new UserView($this->Database, $this->System);58 $Output .= $UserView->RegisterConfirm();59 } else60 if($_GET['Action'] == 'PasswordRecovery')61 {62 $UserView = new UserView($this->Database, $this->System);63 $Output .= $UserView->PasswordRecovery();64 } else65 if($_GET['Action'] == 'PasswordRecoveryFinish')66 {67 $UserView = new UserView($this->Database, $this->System);68 $Output .= $UserView->PasswordRecoveryFinish();69 } else70 if($_GET['Action'] == 'PasswordRecoveryConfirm')71 {72 $UserView = new UserView($this->Database, $this->System);73 $Output .= $UserView->PasswordRecoveryConfirm();74 } else75 if($_GET['Action'] == 'UserRegisterSave')76 {77 $UserView = new UserView($this->Database, $this->System);78 $Output .= $UserView->RegisterSave();79 } else80 if($_GET['Action'] == 'ServerAdd')81 {82 $ServerView = new ServerView($this->Database, $this->System);83 $Output .= $ServerView->Add();84 } else85 if($_GET['Action'] == 'ServerCreate')86 {87 $ServerView = new ServerView($this->Database, $this->System);88 $Output .= $ServerView->Create();89 } else90 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 } else97 if($_GET['Action'] == 'ServerEdit')98 {99 $ServerView = new ServerView($this->Database, $this->System);100 $Output .= $ServerView->Edit();101 } else102 if($_GET['Action'] == 'ServerSave')103 {104 $ServerView = new ServerView($this->Database, $this->System);105 $Output .= $ServerView->Save();106 } else107 if($_GET['Action'] == 'ServerStart')108 {109 $ServerView = new ServerView($this->Database, $this->System);110 $Output .= $ServerView->Start();111 } else112 if($_GET['Action'] == 'ServerStop')113 {114 $ServerView = new ServerView($this->Database, $this->System);115 $Output .= $ServerView->Stop();116 } else117 if($_GET['Action'] == 'ServerDatabaseImport')118 {119 $DatabaseView = new DatabaseView($this->Database, $this->System);120 $Output .= $DatabaseView->Import();121 } else122 39 if($_GET['Action'] == 'EmulatorShow') 123 40 { … … 175 92 $Output .= $UpdateView->ItemList(); 176 93 } else 177 if($_GET['Action'] == 'GameAccountRegister')178 {179 $ServerView = new ServerView($this->Database, $this->System);180 $Output .= $ServerView->AccountCreate();181 } else182 if($_GET['Action'] == 'GameAccountRegister2')183 {184 $ServerView = new ServerView($this->Database, $this->System);185 $Output .= $ServerView->AccountCreateFinish();186 } else187 if($_GET['Action'] == 'Info')188 {189 $BaseView = new BaseView($this->Database, $this->System);190 $Output .= $BaseView->Info();191 } else192 94 if($_GET['Action'] == 'BackupAdd') 193 95 { … … 244 146 $BaseView = new BaseView($this->Database, $this->System); 245 147 $Output .= $BaseView->State(); 246 } else247 if($_GET['Action'] == 'ServerList')248 {249 $ServerView = new ServerView($this->Database, $this->System);250 $Output .= $ServerView->ItemList();251 148 } else 252 149 if($_GET['Action'] == 'RealmList')
Note:
See TracChangeset
for help on using the changeset viewer.