Changeset 928 for trunk/Modules/Network/Network.php
- Timestamp:
- May 11, 2022, 12:06:31 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r925 r928 785 785 } 786 786 787 function AfterInsertNetworkDevice(Form $Form ): void787 function AfterInsertNetworkDevice(Form $Form, string $Id): array 788 788 { 789 789 $this->System->Models['NetworkDevice']->DoOnChange(); 790 } 791 792 function AfterModifyNetworkDevice(Form $Form, string $Id): void 790 return $Form->Values; 791 } 792 793 function AfterModifyNetworkDevice(Form $Form, string $Id): array 793 794 { 794 795 $this->System->Models['NetworkDevice']->DoOnChange(); 795 } 796 797 function AfterInsertNetworkInterface(Form $Form): void 796 return $Form->Values; 797 } 798 799 function AfterInsertNetworkInterface(Form $Form, string $Id): array 798 800 { 799 801 $this->System->Models['NetworkInterface']->DoOnChange(); 800 } 801 802 function AfterModifyNetworkInterface(Form $Form, string $Id): void 802 return $Form->Values; 803 } 804 805 function AfterModifyNetworkInterface(Form $Form, string $Id): array 803 806 { 804 807 $this->System->Models['NetworkInterface']->DoOnChange(); 808 return $Form->Values; 805 809 } 806 810 … … 877 881 $Output = ''; 878 882 $Condition = 'WHERE (`NetworkInterface`.`LastOnline` <= "'.TimeToMysqlDateTime($Time - $MinDuration).'")'; 879 echo($OnlineNow);880 883 if ($OnlineNow >= 0) $Condition .= ' AND (`NetworkInterface`.`Online` = '.$OnlineNow.')'; 881 echo($OnlinePrevious);882 884 if ($OnlinePrevious >= 0) $Condition .= ' AND (`NetworkInterface`.`OnlineNotify` = '.$OnlinePrevious.')'; 883 echo($Condition."\n");884 885 $DbResult3 = $this->Database->query('SELECT CONCAT_WS("-", `NetworkDevice`.`Name`, NULLIF(`NetworkInterface`.`Name`, "")) AS `Name`, '. 885 886 '`NetworkInterface`.`Online`, `NetworkInterface`.`LastOnline` FROM `NetworkInterface` '. … … 918 919 $NewOffline = $this->OnlineList('Nově offline', 0, 1, $this->MinNotifyTime); 919 920 $Output .= $NewOffline['Report']; 920 $StillOffline = $this->OnlineList('Stále offline', 0, 0, 0); 921 $Output .= $StillOffline['Report']; 921 if ($Output != '') 922 { 923 $StillOffline = $this->OnlineList('Stále offline', 0, 0, 0); 924 $Output .= $StillOffline['Report']; 925 } 922 926 $Offline = $this->OnlineList('Offline', 0, -1, 0); 923 927 return array('Report' => $Output, 'Count' => $Offline['Count'], 'Title' => 'Odezva'); … … 970 974 $NewOffline = $this->PortCheckList('Nově offline', 0, 1, $this->MinNotifyTime); 971 975 $Output .= $NewOffline['Report']; 972 $StillOffline = $this->PortCheckList('Stále offline', 0, 0, 0); 973 $Output .= $StillOffline['Report']; 976 if ($Output != '') 977 { 978 $StillOffline = $this->PortCheckList('Stále offline', 0, 0, 0); 979 $Output .= $StillOffline['Report']; 980 } 974 981 $Offline = $this->PortCheckList('Offline', 0, -1, 0); 975 982 return array('Report' => $Output, 'Count' => $Offline['Count'], 'Title' => 'Port');
Note:
See TracChangeset
for help on using the changeset viewer.