- Timestamp:
- Jan 18, 2012, 2:03:43 PM (13 years ago)
- Location:
- trunk/Modules/Network
- Files:
-
- 7 edited
- 1 moved
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 -
trunk/Modules/Network/NetworkInformation.php
r358 r361 1 1 <?php 2 include_once('global.php');3 2 4 3 class NetworkInformationPage extends Page … … 71 70 default: 72 71 $Output .= '<a href="?section=obsazeni_wifi_kanalu">Obsazení Wi-Fi kanálů</a><br />'; 73 $Output .= '<a href=" network/dostupnost.php">Měření dostupnosti zařízení</a><br />';74 $Output .= '<a href=" network/subnet.php">Výpis registrovaných podsítí</a><br />';72 $Output .= '<a href="dostupnost/">Měření dostupnosti zařízení</a><br />'; 73 $Output .= '<a href="podsite/">Výpis registrovaných podsítí</a><br />'; 75 74 //$Output .= '<a href="tkr.php">Kanály kabelové televize</a>'; 76 75 } … … 79 78 } 80 79 81 $System->AddModule(new NetworkInformationPage());82 $System->Modules['NetworkInformationPage']->GetOutput();83 84 80 ?> -
trunk/Modules/Network/administration.php
r343 r361 1 1 <?php 2 include_once('../global.php');3 2 4 3 class NetworkAdministrationPage extends Page … … 9 8 function Show() 10 9 { 11 if(!$this->System->Models['User']->CheckPermission('Network', 'Administration')) return('Nemáte oprávnění'); 10 if(!$this->System->Models['User']->CheckPermission('Network', 'Administration')) 11 return('Nemáte oprávnění'); 12 12 $Output = ''; 13 13 if(array_key_exists('Action', $_GET)) … … 37 37 //'<a href="'.$this->System->Config['Web']['RootFolder'].'/statistic/bandwidth.php">Zatížení linky do internetu</a><br />'. 38 38 //'<a href="'.$this->System->Config['Web']['RootFolder'].'/statistic/bandwidth_full.php">Zatížení linky do internetu všechny počítače</a><br />'. 39 '<a href="'.$this->System->Config['Web']['RootFolder'].'/ network/dostupnost.php">Dostupnost sítě</a><br />'.39 '<a href="'.$this->System->Config['Web']['RootFolder'].'/sit/dostupnost/">Dostupnost sítě</a><br />'. 40 40 //'<a href="'.$this->System->Config['Web']['RootFolder'].'/is/wlan.php">Bezdrátové sítě v okolí</a><br />'. 41 '<a href="'.$this->System->Config['Web']['RootFolder'].'/ network/restart.php">Ruční restart konfigurace sítě</a><br />'.41 '<a href="'.$this->System->Config['Web']['RootFolder'].'/sit/restart-sluzeb/">Ruční restart konfigurace sítě</a><br />'. 42 42 //'<a href="'.$this->System->Config['Web']['RootFolder'].'/backup/index.php">Nastavení zálohování</a><br />'. 43 '<a href="'.$this->System->Config['Web']['RootFolder'].'/ LogShow.php">Záznamy operací</a><br />'.43 '<a href="'.$this->System->Config['Web']['RootFolder'].'/log/">Záznamy operací</a><br />'. 44 44 '<a href="?Action=SendEmail">Zaslat email</a><br />'. 45 45 '<a href="?Action=ProcessEmailQueue">Zpracovat frontu emailů</a><br />'; … … 51 51 } 52 52 53 $System->AddModule(new NetworkAdministrationPage());54 $System->Modules['NetworkAdministrationPage']->GetOutput();55 56 53 ?> -
trunk/Modules/Network/dostupnost.php
r315 r361 1 1 <?php 2 2 3 include_once('../global.php'); 4 5 class Availability extends Page 3 class AvailabilityPage extends Page 6 4 { 7 5 var $FullTitle = 'Dostupnost aktivních prvků sítě'; … … 113 111 } 114 112 115 $System->AddModule(new Availability());116 $System->Modules['Availability']->GetOutput();117 118 113 ?> -
trunk/Modules/Network/hosting.php
r230 r361 1 1 <?php 2 include_once('../global.php');3 2 4 3 class HostingPage extends Page … … 20 19 } 21 20 22 $System->AddModule(new HostingPage());23 $System->Modules['HostingPage']->GetOutput();24 25 21 ?> -
trunk/Modules/Network/restart.php
r343 r361 1 1 <?php 2 include_once('../global.php');3 2 4 3 class ServiceRestartPage extends Page … … 61 60 } 62 61 63 $System->AddModule(new ServiceRestartPage());64 $System->Modules['ServiceRestartPage']->GetOutput();65 66 62 ?> -
trunk/Modules/Network/subnet.php
r311 r361 1 1 <?php 2 include_once('../global.php');3 2 4 class HostingPage extends Page3 class SubnetPage extends Page 5 4 { 6 5 var $FullTitle = 'Informace o podsítích'; … … 54 53 } 55 54 56 $System->AddModule(new HostingPage());57 $System->Modules['HostingPage']->GetOutput();58 59 55 ?> -
trunk/Modules/Network/user_hosts.php
r343 r361 1 1 <?php 2 3 include_once('../global.php');4 2 5 3 class NetworkHostList extends Page … … 33 31 } 34 32 35 $System->AddModule(new NetworkHostList());36 $System->Modules['NetworkHostList']->GetOutput();37 38 33 ?>
Note:
See TracChangeset
for help on using the changeset viewer.