Ignore:
Timestamp:
Jan 18, 2012, 2:03:43 PM (13 years ago)
Author:
chronos
Message:
  • Opraveno: Zobrazování některých stránek modulu sítě.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Network/Network.php

    r360 r361  
    11<?php
     2
     3include('dostupnost.php');
     4include('administration.php');
     5include('hosting.php');
     6include('restart.php');
     7include('subnet.php');
     8include('user_hosts.php');
     9include('NetworkInformation.php');
     10
     11class NetworkPage extends Page
     12{
     13var $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}
    240
    341class NetworkPoint extends Model
     
    123161    $this->License = 'GNU/GPL';
    124162    $this->Description = 'Network device, interface and interconnection management';
    125     $this->Dependencies = array('Member');
     163    $this->Dependencies = array('User', 'Member');
    126164    $this->Models = array('NetworkDevice', 'NetworkDeviceType', 'NetworkInterface',
    127165      'NetworkInterfaceType', 'NetworkPoint', 'NetworkLink', 'NetworkSubnet');
     
    130168  function Init()
    131169  {
    132     $this->System->Pages['tv'] = 'TVChannelsPage';
     170    $this->System->Pages['sit'] = 'NetworkPage';
    133171  }
    134172 
Note: See TracChangeset for help on using the changeset viewer.