Changeset 521 for trunk/Modules/Network/Network.php
- Timestamp:
- Apr 14, 2013, 9:04:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r519 r521 8 8 include_once(dirname(__FILE__).'/UserHosts.php'); 9 9 10 class Page Networkextends Page10 class PageFrequencyPlan extends Page 11 11 { 12 var $FullTitle = ' Technické informace o síti';13 var $ShortTitle = ' Síť';14 var $ParentClass = 'Page Portal';12 var $FullTitle = 'Výpis obsazení frekvenčních kanálů'; 13 var $ShortTitle = 'Frekvenční plán'; 14 var $ParentClass = 'PageNetwork'; 15 15 16 16 function Show() 17 17 { 18 if(count($this->System->PathItems) > 1)19 {20 $this->ClearPage = true;21 if($this->System->PathItems[1] == 'administration') $Output = $this->NewPage('PageNetworkAdministration')->GetOutput();22 else if($this->System->PathItems[1] == 'availability') $Output = $this->NewPage('PageAvailability')->GetOutput();23 else if($this->System->PathItems[1] == 'subnet') $Output = $this->NewPage('PageSubnet')->GetOutput();24 else if($this->System->PathItems[1] == 'user_hosts') $Output = $this->NewPage('PageNetworkHostList')->GetOutput();25 else if($this->System->PathItems[1] == 'hosting') $Output = $this->NewPage('PageHosting')->GetOutput();26 else if($this->System->PathItems[1] == 'hosts') $Output = $this->NewPage('PageHostList')->GetOutput();27 else {28 $this->ClearPage = false;29 $Output = $this->ShowInformation();30 }31 } else $Output = $this->ShowInformation();32 return($Output);33 }34 35 function ShowInformation()36 {37 $Output = '';38 if(!array_key_exists('section', $_GET)) $_GET['section'] = '';39 switch($_GET['section'])40 {41 case 'obsazeni_wifi_kanalu':42 18 // http://en.wikipedia.org/wiki/List_of_WLAN_channels 43 19 //$ChannelList = array(2412 => 1, 2417 => 2, 2422 => 3, 2427 => 4, 2432 => 5, 2437 => 6, 2442 => 7, 2447 => 8, 2452 => 9, 2457 => 10, 2462 => 11, 2467 => 12, 2472 => 13, 5200 => 40, 5205 => 41, 5210 => 42, 5215 => 43, 5220 => 44, 5225 => 45, 5230 => 46, 5235 => 47, 5240 => 48, 5245 => 49, 5250 => 50, 5255 => 51, 5260 => 52, 5265 => 53, 5270 => 54, 5275 => 55, 5280 => 56, 5285 => 57, 5290 => 58, 5295 => 59, 5300 => 60, 5500 => 100, 5520 => 104, 5540 => 108, 5560 => 112, 5580 => 116, 5600 => 120, 5620 => 124, 5640 => 128, 5660 => 132, 5700 => 140, 5720 => 144); 44 $Output .= '<div align="center">'.20 $Output = '<div align="center">'. 45 21 '<a href="?section=obsazeni_wifi_kanalu&range=a">Pásmo 2,4 GHz (a)</a> '. 46 22 '<a href="?section=obsazeni_wifi_kanalu&range=bc">Pásmo 5 GHz dolní (b, c)</a> '. … … 94 70 } 95 71 $Output .= '</table>'; 96 break; 97 default: 98 $Output .= '<a href="?section=obsazeni_wifi_kanalu">Obsazení Wi-Fi kanálů</a><br />'; 99 $Output .= '<a href="'.$this->System->Link('/network/availability/').'">Měření dostupnosti zařízení</a><br />'; 100 $Output .= '<a href="'.$this->System->Link('/network/subnet/').'">Výpis registrovaných podsítí</a><br />'; 101 //$Output .= '<a href="tkr.php">Kanály kabelové televize</a>'; 102 } 72 return($Output); 73 } 74 } 75 76 class PageNetwork extends Page 77 { 78 var $FullTitle = 'Technické informace o síti'; 79 var $ShortTitle = 'Síť'; 80 var $ParentClass = 'PagePortal'; 81 82 function Show() 83 { 84 if(count($this->System->PathItems) > 1) 85 { 86 $Output = $this->PageNotFound(); 87 } else $Output = $this->ShowInformation(); 88 return($Output); 89 } 90 91 function ShowInformation() 92 { 93 $Output = '<a href="'.$this->System->Link('/network/frequency-plan/').'">Frekvenční plán</a><br />'; 94 $Output .= '<a href="'.$this->System->Link('/network/availability/').'">Měření dostupnosti zařízení</a><br />'; 95 $Output .= '<a href="'.$this->System->Link('/network/subnet/').'">Výpis registrovaných podsítí</a><br />'; 96 $Output .= '<a href="'.$this->System->Link('/network/hosts/').'">Registrované zařízení</a><br />'; 103 97 return($Output); 104 98 } … … 130 124 parent::Start(); 131 125 $this->System->RegisterPage('network', 'PageNetwork'); 126 $this->System->RegisterPage(array('network', 'administration'), 'PageNetworkAdministration'); 127 $this->System->RegisterPage(array('network', 'availability'), 'PageAvailability'); 128 $this->System->RegisterPage(array('network', 'subnet'), 'PageSubnet'); 129 $this->System->RegisterPage(array('network', 'user-hosts'), 'PageNetworkHostList'); 130 $this->System->RegisterPage(array('network', 'hosting'),'PageHosting'); 131 $this->System->RegisterPage(array('network', 'hosts'), 'PageHostList'); 132 $this->System->RegisterPage(array('network', 'frequency-plan'), 'PageFrequencyPlan'); 132 133 } 133 134
Note:
See TracChangeset
for help on using the changeset viewer.