Changeset 888 for trunk/Modules/NetworkConfigRouterOS/Routerboard.php
- Timestamp:
- Nov 24, 2020, 10:58:56 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/Routerboard.php
r887 r888 3 3 class Routerboard 4 4 { 5 var$SSHPath = '/usr/bin/ssh';6 var$Timeout = 3;7 var$HostName;8 var$UserName;9 var$Password;10 var$PrivateKey = '~/.ssh/id_rsa';11 var$MaxBurstLineCount = 100;12 var$Debug = false;5 public string $SSHPath = '/usr/bin/ssh'; 6 public int $Timeout = 3; 7 public string $HostName; 8 public string $UserName; 9 public string $Password; 10 public string $PrivateKey = '~/.ssh/id_rsa'; 11 public int $MaxBurstLineCount = 100; 12 public bool $Debug = false; 13 13 14 14 function __construct($HostName = 'localhost', $UserName = 'admin', $Password = '') … … 19 19 } 20 20 21 function Execute( array$Commands): array21 function Execute($Commands): array 22 22 { 23 23 $Output = array(); … … 75 75 if (count($ResultLineParts) > 1) 76 76 { 77 if ($ResultLineParts[1] {0}== '"') $ResultLineParts[1] = substr($ResultLineParts[1], 1, -1); // Remove quotes77 if ($ResultLineParts[1][0] == '"') $ResultLineParts[1] = substr($ResultLineParts[1], 1, -1); // Remove quotes 78 78 $List[substr($ResultLineParts[0], 0, -1)] = $ResultLineParts[1]; 79 79 } else $List[substr($ResultLineParts[0], 0, -1)] = ''; … … 116 116 } 117 117 118 function ListGetPrint( $Path, $Properties,$Conditions = array()): array118 function ListGetPrint(array $Path, array $Properties, array $Conditions = array()): array 119 119 { 120 120 $ConditionList = '';
Note:
See TracChangeset
for help on using the changeset viewer.