Changeset 361 for trunk/Modules/Network/Network.php
- Timestamp:
- Jan 18, 2012, 2:03:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r360 r361 1 1 <?php 2 3 include('dostupnost.php'); 4 include('administration.php'); 5 include('hosting.php'); 6 include('restart.php'); 7 include('subnet.php'); 8 include('user_hosts.php'); 9 include('NetworkInformation.php'); 10 11 class NetworkPage extends Page 12 { 13 var $FullTitle = 'Síť'; 14 var $ShortTitle = 'Síť'; 15 var $RowPerPage = 20; 16 17 function Show() 18 { 19 $PageClass = ''; 20 if(count($this->System->PathItems) > 1) 21 { 22 if($this->System->PathItems[1] == 'dostupnost') $PageClass = 'AvailabilityPage'; 23 else if($this->System->PathItems[1] == 'hosting') $PageClass = 'HostingPage'; 24 else if($this->System->PathItems[1] == 'sprava') $PageClass = 'NetworkAdministrationPage'; 25 else if($this->System->PathItems[1] == 'restart-sluzeb') $PageClass = 'ServiceRestartPage'; 26 else if($this->System->PathItems[1] == 'pocitace') $PageClass = 'HostListPage'; 27 else if($this->System->PathItems[1] == 'podsite') $PageClass = 'SubnetPage'; 28 else return(PAGE_NOT_FOUND); 29 } else $PageClass = 'NetworkInformationPage'; 30 if($PageClass != '') 31 { 32 $Page = new $PageClass(); 33 $Page->Database = &$this->Database; 34 $Page->Config = &$this->Config; 35 $Page->System = &$this->System; 36 return($Page->Show()); 37 } 38 } 39 } 2 40 3 41 class NetworkPoint extends Model … … 123 161 $this->License = 'GNU/GPL'; 124 162 $this->Description = 'Network device, interface and interconnection management'; 125 $this->Dependencies = array(' Member');163 $this->Dependencies = array('User', 'Member'); 126 164 $this->Models = array('NetworkDevice', 'NetworkDeviceType', 'NetworkInterface', 127 165 'NetworkInterfaceType', 'NetworkPoint', 'NetworkLink', 'NetworkSubnet'); … … 130 168 function Init() 131 169 { 132 $this->System->Pages[' tv'] = 'TVChannelsPage';170 $this->System->Pages['sit'] = 'NetworkPage'; 133 171 } 134 172
Note:
See TracChangeset
for help on using the changeset viewer.