Changeset 824 for trunk/Modules
- Timestamp:
- Apr 4, 2016, 8:41:19 PM (9 years ago)
- Location:
- trunk/Modules
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r822 r824 208 208 'Wireless' => array('Type' => 'TNetworkInterfaceWirelessListInterface', 'Caption' => 'Bezdrátové spoje', 'Default' => ''), 209 209 'Ports' => array('Type' => 'TDevicePortListInterface', 'Caption' => 'Síťové porty', 'Default' => ''), 210 'Latency' => array('Type' => 'TDeviceInterfaceLatencyListInterface', 'Caption' => 'Odezva sítě', 'Default' => ''), 210 211 ), 211 212 'AfterInsert' => array($this, 'AfterInsertNetworkInterface'), … … 257 258 'LastOnline' => array('Type' => 'DateTime', 'Caption' => 'Naposledy běželo', 'Default' => '', 'ReadOnly' => true), 258 259 'UpDown' => array('Type' => 'TNetworkPortUpDown', 'Caption' => 'Změny stavu', 'Default' => ''), 260 ), 261 )); 262 $this->System->FormManager->RegisterClass('NetworkInterfaceLatency', array( 263 'Title' => 'Sťová odezva', 264 'Table' => 'NetworkInterfaceLatency', 265 'Items' => array( 266 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => ''), 267 'Interface' => array('Type' => 'TNetworkInterface', 'Caption' => 'Rozhraní', 'Default' => ''), 268 'Value' => array('Type' => 'Float', 'Caption' => 'Hodnota', 'Default' => '0', 'Suffix' => 'ms'), 259 269 ), 260 270 )); … … 583 593 'Type' => 'ManyToOne', 584 594 'Table' => 'NetworkPort', 595 'Id' => 'Id', 596 'Ref' => 'Interface', 597 'Filter' => '1', 598 )); 599 $this->System->FormManager->RegisterFormType('TDeviceInterfaceLatencyListInterface', array( 600 'Type' => 'ManyToOne', 601 'Table' => 'NetworkInterfaceLatency', 585 602 'Id' => 'Id', 586 603 'Ref' => 'Interface', -
trunk/Modules/NetworkConfigLinux/NetworkConfigLinux.php
r815 r824 3 3 include_once(dirname(__FILE__).'/Generators/DNS.php'); 4 4 include_once(dirname(__FILE__).'/Generators/CheckPorts.php'); 5 include_once(dirname(__FILE__).'/Generators/Latency.php'); 5 6 6 7 class ModuleNetworkConfigLinux extends AppModule … … 29 30 $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('linux-dns', 'ConfigDNS'); 30 31 $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('linux-checkports', 'ConfigCheckPorts'); 32 $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('linux-latency', 'ConfigLatency'); 31 33 } 32 34 } -
trunk/Modules/Notify/Notify.php
r813 r824 73 73 } 74 74 } 75 75 76 76 // Send content to users 77 77 $DbResult = $this->Database->query('SELECT `NotifyUser`.`Id`, `NotifyUser`.`LastTime`, `User`.`Name`, `Contact`.`Value`, `Contact`.`Category` FROM `NotifyUser` '. … … 82 82 $Time = time(); 83 83 $Output .= 'User '.$User['Name'].'<br/>'; 84 84 85 85 $this->Database->update('NotifyUser', '`Id`='.$User['Id'], array('LastTime' => TimeToMysqlDateTime($Time))); 86 86 … … 89 89 $Mail->Subject = 'Notification'; 90 90 $Mail->AddTo($User['Value'], $User['Name']); 91 //$Mail->AddBody(strip_tags($Content), 'text/plain');91 $Mail->AddBody(strip_tags($Content), 'text/plain'); 92 92 $Mail->AddBody('<style> 93 93 table { border-collapse: collapse; }
Note:
See TracChangeset
for help on using the changeset viewer.