diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2019-09-25 10:38:08 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-10-01 12:56:10 +0200 |
commit | b636e61b6e923326ba125b8ae695b1cfc09444a5 (patch) | |
tree | 94322285d35291f56b2bcd38c1a85f4cda098eba /admin/WebConsole/comandos/gestores/gestor_Comandos.php | |
parent | 70b1e5804582c8506546313352387c98286f5351 (diff) |
#915: Adapt web to use new image/create cmd in REST API
SocketHidra crear imagen has been replaced by POST /imagen/create.
Diffstat (limited to 'admin/WebConsole/comandos/gestores/gestor_Comandos.php')
-rw-r--r-- | admin/WebConsole/comandos/gestores/gestor_Comandos.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/WebConsole/comandos/gestores/gestor_Comandos.php b/admin/WebConsole/comandos/gestores/gestor_Comandos.php index 943fdac7..eaf4a258 100644 --- a/admin/WebConsole/comandos/gestores/gestor_Comandos.php +++ b/admin/WebConsole/comandos/gestores/gestor_Comandos.php @@ -23,6 +23,7 @@ include_once("../includes/capturaacciones.php"); define('OG_CMD_ID_WAKEUP', 1); define('OG_CMD_ID_POWEROFF', 2); +define('OG_CMD_ID_CREATE_IMAGE', 4); define('OG_CMD_ID_REBOOT', 5); define('OG_CMD_ID_HARDWARE', 6); define('OG_CMD_ID_SOFTWARE', 7); @@ -135,6 +136,9 @@ switch ($idcomando) { case OG_CMD_ID_POWEROFF: poweroff($cadenaip); break; + case OG_CMD_ID_CREATE_IMAGE: + create_image($cadenaip, $atributos); + break; case OG_CMD_ID_REBOOT: reboot($cadenaip); break; @@ -201,6 +205,7 @@ if($sw_ejya=='on' || $sw_ejprg=="on" ){ if($sw_ejya=='on'){ if ($idcomando != OG_CMD_ID_SENDMESSAGE && $idcomando != OG_CMD_ID_WAKEUP && + $idcomando != OG_CMD_ID_CREATE_IMAGE && $idcomando != OG_CMD_ID_SESSION && $idcomando != OG_CMD_ID_POWEROFF && $idcomando != OG_CMD_ID_HARDWARE && |