Ignore:
Timestamp:
Apr 6, 2020, 11:17:40 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code format.
Location:
trunk/Modules/NetworkConfigAirOS/Generators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigAirOS/Generators/SSHClient.php

    r856 r873  
    2525  {
    2626    $Commands = trim($Commands);
    27     if($Commands != '')
     27    if ($Commands != '')
    2828    {
    2929      $Commands = addslashes($Commands);
     
    3434      $Command = $this->SSHPath.' -oBatchMode=yes -o ConnectTimeout='.$this->Timeout.' -l '.
    3535        $this->UserName.$PrivKey.' '.$this->HostName.' "'.$Commands.'"';
    36       if($this->Debug) echo($Command);
     36      if ($this->Debug) echo($Command);
    3737      $Output = array();
    3838      exec($Command, $Output);
    3939    } else $Output = '';
    40     if($this->Debug) print_r($Output);
    41     return($Output);
     40    if ($this->Debug) print_r($Output);
     41    return ($Output);
    4242  }
    4343}
  • trunk/Modules/NetworkConfigAirOS/Generators/Signal.php

    r856 r873  
    1313      '(SELECT `LocalIP` FROM `NetworkInterface` WHERE `NetworkInterface`.`Device` = `NetworkDevice`.`Id` LIMIT 1) AS `LocalIP` '.
    1414      'FROM `NetworkDevice` WHERE (`API` = 2) AND (`Used` = 1)');
    15     while($Device = $DbResult3->fetch_assoc())
     15    while ($Device = $DbResult3->fetch_assoc())
    1616    {
    1717      echo($Device['LocalIP']."");
     
    2525      //print_r($Array);
    2626      echo('-');
    27       foreach($Array as $Properties)
     27      foreach ($Array as $Properties)
    2828      {
    2929        $DbResult = $this->Database->select('NetworkInterface', 'Id', '`MAC`="'.$Properties['mac'].'"');
    30         if($DbResult->num_rows > 0)
     30        if ($DbResult->num_rows > 0)
    3131        {
    3232          $DbRow = $DbResult->fetch_assoc();
Note: See TracChangeset for help on using the changeset viewer.