Changeset 76 for trunk/www/Application/Controller
- Timestamp:
- Aug 24, 2009, 8:53:09 PM (15 years ago)
- Location:
- trunk/www/Application/Controller
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/Controller/Cluster.php
r74 r76 6 6 { 7 7 $Page = new PageView($this->System); 8 $View = new ClusterView($this->System); 9 return($Page->GetOutput($View->ItemList())); 8 if($this->System->Modules['Permission']->Check('Cluster', 'ItemList')) 9 { 10 $View = new ClusterView($this->System); 11 return($Page->GetOutput($View->ItemList())); 12 } else return($Page->AccessDenied()); 10 13 } 11 14 … … 13 16 { 14 17 $Page = new PageView($this->System); 15 $View = new ClusterView($this->System); 16 return($Page->GetOutput($View->Add())); 18 if($this->System->Modules['Permission']->Check('Cluster', 'Add')) 19 { 20 $View = new ClusterView($this->System); 21 return($Page->GetOutput($View->Add())); 22 } else return($Page->AccessDenied()); 17 23 } 18 24 … … 20 26 { 21 27 $Page = new PageView($this->System); 22 $View = new ClusterView($this->System); 23 return($Page->GetOutput($View->Restore())); 28 if($this->System->Modules['Permission']->Check('Cluster', 'Remove')) 29 { 30 $View = new ClusterView($this->System); 31 return($Page->GetOutput($View->Restore())); 32 } else return($Page->AccessDenied()); 24 33 } 25 34 … … 27 36 { 28 37 $Page = new PageView($this->System); 29 $View = new ClusterView($this->System); 30 return($Page->GetOutput($View->Show())); 38 if($this->System->Modules['Permission']->Check('Cluster', 'Show')) 39 { 40 $View = new ClusterView($this->System); 41 return($Page->GetOutput($View->Show())); 42 } else return($Page->AccessDenied()); 31 43 } 32 44 … … 34 46 { 35 47 $Page = new PageView($this->System); 36 $View = new ClusterView($this->System); 37 return($Page->GetOutput($View->Edit())); 48 if($this->System->Modules['Permission']->Check('Cluster', 'Edit')) 49 { 50 $View = new ClusterView($this->System); 51 return($Page->GetOutput($View->Edit())); 52 } else return($Page->AccessDenied()); 38 53 } 39 54 } -
trunk/www/Application/Controller/HomePage.php
r73 r76 6 6 { 7 7 $Page = new PageView($this->System); 8 $View = new HomePageView($this->System); 9 return($Page->GetOutput($View->Welcome())); 8 if($this->System->Modules['Permission']->Check('HomePage', 'Show')) 9 { 10 $View = new HomePageView($this->System); 11 return($Page->GetOutput($View->Welcome())); 12 } else return($Page->AccessDenied()); 10 13 } 11 14 … … 13 16 { 14 17 $Page = new PageView($this->System); 15 $View = new HomePageView($this->System); 16 return($Page->GetOutput($View->Info())); 18 if($this->System->Modules['Permission']->Check('HomePage', 'Info')) 19 { 20 $View = new HomePageView($this->System); 21 return($Page->GetOutput($View->Info())); 22 } else return($Page->AccessDenied()); 17 23 } 18 24 … … 20 26 { 21 27 $Page = new PageView($this->System); 22 $View = new HomePageView($this->System); 23 return($Page->GetOutput($View->State())); 28 if($this->System->Modules['Permission']->Check('HomePage', 'State')) 29 { 30 $View = new HomePageView($this->System); 31 return($Page->GetOutput($View->State())); 32 } else return($Page->AccessDenied()); 24 33 } 25 34 } -
trunk/www/Application/Controller/Include.php
r74 r76 1 1 <?php 2 2 3 include( 'Application/Controller/HomePage.php');4 include( 'Application/Controller/Realm.php');5 include( 'Application/Controller/Server.php');6 include( 'Application/Controller/User.php');7 include( 'Application/Controller/Client.php');8 include( 'Application/Controller/Emulator.php');9 include( 'Application/Controller/Task.php');10 include( 'Application/Controller/News.php');11 include( 'Application/Controller/Debug.php');12 include( 'Application/Controller/Backup.php');13 include( 'Application/Controller/Cluster.php');3 include(dirname(__FILE__).'/HomePage.php'); 4 include(dirname(__FILE__).'/Realm.php'); 5 include(dirname(__FILE__).'/Server.php'); 6 include(dirname(__FILE__).'/User.php'); 7 include(dirname(__FILE__).'/Client.php'); 8 include(dirname(__FILE__).'/Emulator.php'); 9 include(dirname(__FILE__).'/Task.php'); 10 include(dirname(__FILE__).'/News.php'); 11 include(dirname(__FILE__).'/Debug.php'); 12 include(dirname(__FILE__).'/Backup.php'); 13 include(dirname(__FILE__).'/Cluster.php'); 14 14 15 15 ?> -
trunk/www/Application/Controller/User.php
r71 r76 14 14 $Page = new PageView($this->System); 15 15 $View = new UserView($this->System); 16 return($Page->GetOutput($View->Login finish()));16 return($Page->GetOutput($View->LoginFinish())); 17 17 } 18 18
Note:
See TracChangeset
for help on using the changeset viewer.