Ignore:
Timestamp:
Apr 6, 2020, 11:17:40 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Improved code format.
File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.