Changeset 73 for trunk/www/Application/Controller
- Timestamp:
- Aug 23, 2009, 7:02:12 PM (15 years ago)
- Location:
- trunk/www/Application/Controller
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/Controller/HomePage.php
r72 r73 23 23 return($Page->GetOutput($View->State())); 24 24 } 25 26 /*27 class Index extends Page28 {29 var $FullTitle = 'Seznam serverů';30 var $ShortTitle = 'Seznam serverů';31 32 function Show()33 {34 global $Config;35 36 $Output = '';37 if(array_key_exists('Action', $_GET))38 {39 if($_GET['Action'] == 'BackupList')40 {41 $BackupView = new BackupView($this->Database, $this->System);42 $Output .= $BackupView->ItemList();43 } else44 if($_GET['Action'] == 'UpdateList')45 {46 $UpdateView = new UpdateView($this->Database, $this->System);47 $Output .= $UpdateView->ItemList();48 } else49 if($_GET['Action'] == 'BackupAdd')50 {51 $BackupView = new BackupView($this->Database, $this->System);52 $Output .= $BackupView->Add();53 } else54 if($_GET['Action'] == 'BackupRestore')55 {56 $BackupView = new BackupView($this->Database, $this->System);57 $Output .= $BackupView->Restore();58 } else59 if($_GET['Action'] == 'BackupDownload')60 {61 $BackupView = new BackupView($this->Database, $this->System);62 $Output .= $BackupView->Download();63 } else64 if($_GET['Action'] == 'Update')65 {66 $UpdateView = new UpdateView($this->Database, $this->System);67 $Output .= $UpdateView->Update();68 } else69 70 $BaseView = new BaseView($this->Database, $this->System);71 $Content = $Output;72 $Output = '<table class="BasicTable"><tr>';73 if($this->System->Modules['User']->User['Id'] != $this->System->Modules['User']->AnonymousUserId)74 $Output .= '<td class="UserMenu">'.$BaseView->UserMenu().'</td>';75 $Output .= '<td class="Content">'.$Content.'</td>';76 if(!array_key_exists('Action', $_GET))77 {78 $NewsView = new NewsView($this->Database, $this->System);79 $Output .= $NewsView->View();80 }81 $Output .= '</tr></table>';82 return($Output);83 }84 }85 86 $System->AddModule(new Index($Database, $System));87 $System->Modules['Index']->GetOutput();88 */89 90 25 } 91 26 -
trunk/www/Application/Controller/Include.php
r72 r73 10 10 include('Application/Controller/News.php'); 11 11 include('Application/Controller/Debug.php'); 12 include('Application/Controller/Backup.php'); 12 13 13 14 ?> -
trunk/www/Application/Controller/Server.php
r71 r73 79 79 return($Page->GetOutput($View->AccountCreateFinish())); 80 80 } 81 82 function RealmList() 83 { 84 $View = new ServerView($this->System); 85 $View->RealmListfile(); 86 } 87 88 function PatchList() 89 { 90 $View = new ServerView($this->System); 91 $View->PatchList(); 92 } 93 94 function XMLExport() 95 { 96 $View = new ServerView($this->System); 97 $View->XMLExport(); 98 } 81 99 } 82 100
Note:
See TracChangeset
for help on using the changeset viewer.