Changeset 615 for trunk/Modules


Ignore:
Timestamp:
Dec 20, 2013, 11:57:02 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Další položky do tabulky "Bezdrátové rozhraní".
  • Přidáno: Příprava tabulky NewsImport pro zobecnění importu aktualit z jiných webů.
Location:
trunk/Modules
Files:
3 edited

Legend:

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

    r605 r615  
    280280      'Items' => array(
    281281        'SSID' => array('Type' => 'String', 'Caption' => 'SSID', 'Default' => ''),
     282        'MAC' => array('Type' => 'MacAddress', 'Caption' => 'MAC', 'Default' => ''),
    282283        'NetworkInterface' => array('Type' => 'TNetworkInterface', 'Caption' => 'Rozhraní', 'Default' => ''),
    283284        'TxPower' => array('Type' => 'Integer', 'Caption' => 'Výstupní výkon', 'Default' => '18', 'Suffix' => 'dBm'),
    284285        'CableAttenuation' => array('Type' => 'Integer', 'Caption' => 'Útlum vedení', 'Default' => '0', 'Suffix' => 'dB'),
     286        'Antenna' => array('Type' => 'TProduct', 'Caption' => 'Anténa', 'Default' => '', 'Null' => true),
    285287        'AntenaGain' => array('Type' => 'Integer', 'Caption' => 'Zisk antény', 'Default' => '', 'Suffix' => 'dBi'),
     288        'AntennaPolarity' => array('Type' => 'TAntennaPolarity', 'Caption' => 'Polarizace antény', 'Default' => '0'),
    286289        'Frequency' => array('Type' => 'Float', 'Caption' => 'Frekvence', 'Default' => '5600', 'Suffix' => 'MHz'),
    287290        'ChannelWidth' => array('Type' => 'Integer', 'Caption' => 'Šírka kanálu', 'Default' => '20', 'Suffix' => 'MHz'),
     
    292295        'UnderLimit' => array('Type' => 'Boolean', 'Caption' => 'V limitu', 'Default' => '', 'Suffix' => '',
    293296          'ReadOnly' => true, 'SQL' => '((`TxPower` - `CableAttenuation` + `AntenaGain`) <= (CASE WHEN `Frequency` >= 5450 AND `Frequency` <= 5725 THEN 27 ELSE 20 END))'),
     297        'Description' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => ''),
    294298      ),
    295299    ));
  • trunk/Modules/NetworkConfigRouterOS/Generators/FirewallNAT.php

    r548 r615  
    4545  $DbResult2 = $System->Database->query('SELECT `NetworkInterface`.*, `NetworkDevice`.`Name` AS `DeviceName`, `NetworkDevice`.`InboundNATPriority` FROM `NetworkInterface`'.
    4646  ' LEFT JOIN `NetworkDevice` ON `NetworkDevice`.`Id` = `NetworkInterface`.`Device` WHERE (`NetworkInterface`.`ExternalIP` <> "")'.
     47  ' AND (`NetworkInterface`.`LocalIP` <> "")'. 
    4748  ' AND (`NetworkDevice`.`Member` = '.$Member['Id'].') AND (`NetworkInterface`.`LocalIP` != `NetworkInterface`.`ExternalIP`) ORDER BY `id` DESC');
    4849  while($Interface = $DbResult2->fetch_assoc())
     
    101102
    102103// Masquerade hosts without public ip
    103 $Items[] = array('chain' => 'inet-out', 'action' => 'src-nat', 'to-addresses' => '77.92.221.106', 'comment' => 'Default_NAT');
     104$Items[] = array('chain' => 'inet-out', 'action' => 'src-nat', 'to-addresses' => '77.92.221.188', 'comment' => 'Default_NAT');
    104105
    105106// Redirect DNS port
  • trunk/Modules/SpeedTest/SpeedTest.php

    r586 r615  
    2828  {
    2929    $this->System->Pages['speedtest'] = 'PageSpeedTest';
    30    
    3130  } 
    3231}
Note: See TracChangeset for help on using the changeset viewer.