Changeset 873 for trunk/Modules/NetworkConfigAirOS/Generators
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- Location:
- trunk/Modules/NetworkConfigAirOS/Generators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigAirOS/Generators/SSHClient.php
r856 r873 25 25 { 26 26 $Commands = trim($Commands); 27 if ($Commands != '')27 if ($Commands != '') 28 28 { 29 29 $Commands = addslashes($Commands); … … 34 34 $Command = $this->SSHPath.' -oBatchMode=yes -o ConnectTimeout='.$this->Timeout.' -l '. 35 35 $this->UserName.$PrivKey.' '.$this->HostName.' "'.$Commands.'"'; 36 if ($this->Debug) echo($Command);36 if ($this->Debug) echo($Command); 37 37 $Output = array(); 38 38 exec($Command, $Output); 39 39 } else $Output = ''; 40 if ($this->Debug) print_r($Output);41 return ($Output);40 if ($this->Debug) print_r($Output); 41 return ($Output); 42 42 } 43 43 } -
trunk/Modules/NetworkConfigAirOS/Generators/Signal.php
r856 r873 13 13 '(SELECT `LocalIP` FROM `NetworkInterface` WHERE `NetworkInterface`.`Device` = `NetworkDevice`.`Id` LIMIT 1) AS `LocalIP` '. 14 14 'FROM `NetworkDevice` WHERE (`API` = 2) AND (`Used` = 1)'); 15 while ($Device = $DbResult3->fetch_assoc())15 while ($Device = $DbResult3->fetch_assoc()) 16 16 { 17 17 echo($Device['LocalIP'].""); … … 25 25 //print_r($Array); 26 26 echo('-'); 27 foreach ($Array as $Properties)27 foreach ($Array as $Properties) 28 28 { 29 29 $DbResult = $this->Database->select('NetworkInterface', 'Id', '`MAC`="'.$Properties['mac'].'"'); 30 if ($DbResult->num_rows > 0)30 if ($DbResult->num_rows > 0) 31 31 { 32 32 $DbRow = $DbResult->fetch_assoc();
Note:
See TracChangeset
for help on using the changeset viewer.