- Timestamp:
- May 11, 2022, 12:06:31 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/BaseView.php
r915 r928 49 49 $Output = ' > <a href="'.$this->System->Link($ScriptName).'/">'.$Page->Title.'</a>'.$Output; 50 50 51 if ( class_exists($Page->ParentClass))51 if (($Page->ParentClass != null) and class_exists($Page->ParentClass)) 52 52 { 53 53 $PageClass = $Page->ParentClass; -
trunk/Modules/FinanceBankAPI/FileImport.php
r912 r928 7 7 public System $System; 8 8 public Database $Database; 9 public int$BankAccount;9 public array $BankAccount; 10 10 11 11 function __construct(System $System) -
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.