summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/includes/restfunctions.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/includes/restfunctions.php')
-rw-r--r--admin/WebConsole/includes/restfunctions.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php
index 717985dc..d27fdad0 100644
--- a/admin/WebConsole/includes/restfunctions.php
+++ b/admin/WebConsole/includes/restfunctions.php
@@ -472,11 +472,17 @@ function hardware($string_ips) {
common_request(OG_REST_CMD_HARDWARE, POST, $data);
}
-function software($string_ips) {
+function software($string_ips, $params) {
+
+ preg_match_all('/(?<=\=)(.*?)(?=\r)/', $params, $matches);
$ips = explode(';',$string_ips);
+ $disk = $matches[0][0];
+ $part = $matches[0][1];
- $data = array(OG_REST_PARAM_CLIENTS => $ips);
+ $data = array(OG_REST_PARAM_CLIENTS => $ips,
+ OG_REST_PARAM_DISK => $disk,
+ OG_REST_PARAM_PART => $part);
common_request(OG_REST_CMD_SOFTWARE, POST, $data);
}