Changeset 824
- Timestamp:
- Apr 4, 2016, 8:41:19 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UpdateTrace.php
r818 r824 2005 2005 $Manager->Execute('ALTER TABLE `NetworkPortUpDown` 2006 2006 ADD CONSTRAINT `NetworkPortUpDown_ibfk_1` FOREIGN KEY (`Port`) REFERENCES `NetworkPort` (`Id`);'); 2007 } 2008 2009 function UpdateTo824($Manager) 2010 { 2011 $Manager->Execute('CREATE TABLE IF NOT EXISTS `NetworkInterfaceLatency` ( 2012 `Id` int(11) NOT NULL AUTO_INCREMENT, 2013 `Time` datetime NOT NULL, 2014 `Interface` int(11) NOT NULL, 2015 `Value` float NOT NULL, 2016 PRIMARY KEY (`Id`), 2017 KEY `Interface` (`Interface`) 2018 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;'); 2019 $Manager->Execute('ALTER TABLE `NetworkInterfaceLatency` 2020 ADD CONSTRAINT `NetworkInterfaceLatency_ibfk_1` FOREIGN KEY (`Interface`) REFERENCES `NetworkInterface` (`Id`);'); 2007 2021 } 2008 2022 … … 2098 2112 814 => array('Revision' => 817, 'Function' => 'UpdateTo817'), 2099 2113 817 => array('Revision' => 818, 'Function' => 'UpdateTo818'), 2114 818 => array('Revision' => 824, 'Function' => 'UpdateTo824'), 2100 2115 )); 2101 2116 } -
trunk/Application/Version.php
r820 r824 1 1 <?php 2 2 3 $Revision = 82 0; // Subversion revision4 $DatabaseRevision = 8 18; // SQL structure revision5 $ReleaseTime = strtotime('2016-0 3-20');3 $Revision = 824; // Subversion revision 4 $DatabaseRevision = 824; // SQL structure revision 5 $ReleaseTime = strtotime('2016-04-04'); -
trunk/Common/Global.php
r803 r824 365 365 if($Delay < 0) $Delay = 0; 366 366 367 echo('Waiting '.$Delay.' seconds...'."\n");367 echo('Waiting remaining '.$Delay.' of '.$Period.' seconds...'."\n"); 368 368 sleep($Delay); 369 369 } -
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.