|
@@ -1,6 +1,6 @@
|
|
|
<?php
|
|
<?php
|
|
|
/**
|
|
/**
|
|
|
- * HSDN PHP Looking Glass version 1.2.19b
|
|
|
|
|
|
|
+ * HSDN PHP Looking Glass version 1.2.20b
|
|
|
*
|
|
*
|
|
|
* General Features:
|
|
* General Features:
|
|
|
* - Supports the Telnet and SSH (through Putty/plink or sshpass)
|
|
* - Supports the Telnet and SSH (through Putty/plink or sshpass)
|
|
@@ -620,6 +620,8 @@ function process($url, $exec, $return_buffer = FALSE)
|
|
|
|
|
|
|
|
$params[] = $url['host'];
|
|
$params[] = $url['host'];
|
|
|
|
|
|
|
|
|
|
+ $exec = escapeshellcmd($exec)."\n";
|
|
|
|
|
+
|
|
|
// Get MikroTik additional summary information
|
|
// Get MikroTik additional summary information
|
|
|
if (preg_match('/^\/routing bgp peer print status/i', $exec) AND $os == 'mikrotik' AND $return_buffer != TRUE)
|
|
if (preg_match('/^\/routing bgp peer print status/i', $exec) AND $os == 'mikrotik' AND $return_buffer != TRUE)
|
|
|
{
|
|
{
|
|
@@ -651,8 +653,6 @@ function process($url, $exec, $return_buffer = FALSE)
|
|
|
$exec .= "\n";
|
|
$exec .= "\n";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $exec = escapeshellcmd($exec)."\n";
|
|
|
|
|
-
|
|
|
|
|
if ($fp = @popen('echo n | '.$ssh_path.' '.implode(' ', $params).' '.$exec, 'r'))
|
|
if ($fp = @popen('echo n | '.$ssh_path.' '.implode(' ', $params).' '.$exec, 'r'))
|
|
|
{
|
|
{
|
|
|
while (!feof($fp))
|
|
while (!feof($fp))
|