Changeset 677


Ignore:
Timestamp:
Jul 25, 2014, 9:12:10 PM (10 years ago)
Author:
chronos
Message:
  • Upraveno: Zobrazovat online stav zařízení a rozhraní.
  • Přidáno: Zobrazení bezdrátových spojení vztažených k rozhraní.
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/FormClasses.php

    r675 r677  
    457457    'Filter' => '1',
    458458  ),
     459  'TNetworkInterfaceWirelessListInterface' => array(
     460    'Type' => 'ManyToOne',
     461    'Table' => 'NetworkInterfaceWireless',
     462    'Id' => 'Id',
     463    'Ref' => 'NetworkInterface',
     464    'Filter' => '1',
     465  ),
    459466  'TInterfaceList' => array(
    460467    'Type' => 'ManyToOne',
  • trunk/Application/Version.php

    r676 r677  
    11<?php
    22
    3 $Revision = 676; // Subversion revision
     3$Revision = 677; // Subversion revision
    44$DatabaseRevision = 676; // SQL structure revision
    5 $ReleaseTime = strtotime('2014-07-22');
     5$ReleaseTime = strtotime('2014-07-25');
  • trunk/Common/Setup/Updates.php

    r676 r677  
    844844  $Manager->Execute('ALTER TABLE `NetworkSignal` ADD `Device` INT NULL ,
    845845ADD INDEX ( `Device` ) ;');
    846   $Manager->Execute('ALTER TABLE `NetworkSignal` ADD FOREIGN KEY ( `Device` ) REFERENCES `centrala_big`.`NetworkDevice` (
     846  $Manager->Execute('ALTER TABLE `NetworkSignal` ADD FOREIGN KEY ( `Device` ) REFERENCES `NetworkDevice` (
    847847`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;');
    848848}
  • trunk/Modules/Network/Network.php

    r676 r677  
    151151        'Service' => array('Type' => 'TServiceCustomerRel', 'Caption' => 'Služba', 'Default' => '', 'Null' => true),
    152152        'Used' => array('Type' => 'Boolean', 'Caption' => 'Použito', 'Default' => '1'),
    153         'Online' => array('Type' => 'Boolean', 'Caption' => 'Běží', 'Default' => '0', 'ReadOnly' => true),
     153        'Online' => array('Type' => 'TOnlineState', 'Caption' => 'Běží', 'Default' => '0', 'ReadOnly' => true),
    154154        'LastOnline' => array('Type' => 'DateTime', 'Caption' => 'Naposledy běželo', 'Default' => '', 'ReadOnly' => true),
    155155        'PermanentOnline' => array('Type' => 'Boolean', 'Caption' => 'Běží stále', 'Default' => '0'),
     
    184184        'ExternalIP' => array('Type' => 'IPv4Address', 'Caption' => 'Veřejná IPv4', 'Default' => '', 'Null' => true),
    185185        'Device' => array('Type' => 'TNetworkDevice', 'Caption' => 'Zařízení', 'Default' => ''),
    186         'Online' => array('Type' => 'Boolean', 'Caption' => 'Běží', 'Default' => '0', 'ReadOnly' => true),
     186        'Online' => array('Type' => 'TOnlineState', 'Caption' => 'Běží', 'Default' => '0', 'ReadOnly' => true),
    187187        'LastOnline' => array('Type' => 'DateTime', 'Caption' => 'Naposledy běželo', 'Default' => '', 'ReadOnly' => true),
    188188        'Links1' => array('Type' => 'TNetworkLinkListInterface1', 'Caption' => 'Propojení 1', 'Default' => ''),
     
    190190        'UpDown' => array('Type' => 'TNetworkInterfaceUpDown', 'Caption' => 'Změny stavu', 'Default' => ''),
    191191        'Signal' => array('Type' => 'TNetworkSignalListInterface', 'Caption' => 'Signál', 'Default' => ''),
     192        'Wireless' => array('Type' => 'TNetworkInterfaceWirelessListInterface', 'Caption' => 'Bezdrátové spoje', 'Default' => ''),
     193
    192194      ),
    193195    ));
     
    235237      'Title' => 'Signál rozhraní',
    236238      'Table' => 'NetworkSignal',
     239      'DefaultSortColumn' => 'Time',
     240      'DefaultSortOrder' => 1,
    237241      'Items' => array(
    238242        'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => ''),
     
    240244        'Interface' => array('Type' => 'TNetworkInterface', 'Caption' => 'Rozhraní', 'Default' => '', 'Null' => true),
    241245        'Value' => array('Type' => 'Integer', 'Caption' => 'Signál', 'Default' => '0', 'Suffix' => 'dBm'),
    242         'RateRx' => array('Type' => 'Integer', 'Caption' => 'Rychlost', 'Default' => '0', 'Suffix' => 'MHz'),
    243         'RateTx' => array('Type' => 'Integer', 'Caption' => 'Rychlost', 'Default' => '0', 'Suffix' => 'MHz'),
     246        'RateRx' => array('Type' => 'Integer', 'Caption' => 'Rychlost Rx', 'Default' => '0', 'Suffix' => 'MHz'),
     247        'RateTx' => array('Type' => 'Integer', 'Caption' => 'Rychlost Tx', 'Default' => '0', 'Suffix' => 'MHz'),
    244248        'Device' => array('Type' => 'TNetworkDevice', 'Caption' => 'Měřeno z', 'Default' => '0'),
    245249      ),
  • trunk/Modules/NetworkConfigRouterOS/RouterboardAPI.php

    r674 r677  
    1212  var $Socket;             // Variable for storing socket resource
    1313  var $Debug;
     14  var $SSL; // If SSL API connection is used. You need also change port to 8729
    1415
    1516  function __construct()
     
    2122    $this->Timeout = 3;
    2223    $this->Debug = false;
     24    $this->SSL = false;
    2325  }
    2426
     
    4446  {
    4547    if($this->Connected) $this->Disconnect();
     48    if($this->SSL)
     49    {
     50        $IP = 'ssl://'.$IP;
     51    }
     52
    4653    $this->Socket = @fsockopen($IP, $this->Port, $this->ErrorNo, $this->ErrorStr, $this->Timeout);
    4754    if($this->Socket)
Note: See TracChangeset for help on using the changeset viewer.