diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2019-10-01 12:01:20 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-10-01 12:56:10 +0200 |
commit | d233fdbaa88ac6473d38c85dddfd663c67020259 (patch) | |
tree | 135d7f11245d8d4b7ad20b85a928542b9efb0520 /admin/WebConsole/comandos | |
parent | fc15dd10ce13f7ea9a4e8fa944ebb857223e77f8 (diff) |
#915: Adapt web to use new image/restore cmd in REST API
SocketHidra restaurar imagen has been replaced by POST image/restore.
Diffstat (limited to 'admin/WebConsole/comandos')
-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 eaf4a258..b320d9cd 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_RESTORE_IMAGE', 3); define('OG_CMD_ID_CREATE_IMAGE', 4); define('OG_CMD_ID_REBOOT', 5); define('OG_CMD_ID_HARDWARE', 6); @@ -139,6 +140,9 @@ switch ($idcomando) { case OG_CMD_ID_CREATE_IMAGE: create_image($cadenaip, $atributos); break; + case OG_CMD_ID_RESTORE_IMAGE: + restore_image($cadenaip, $atributos); + break; case OG_CMD_ID_REBOOT: reboot($cadenaip); break; @@ -206,6 +210,7 @@ if($sw_ejya=='on' || $sw_ejprg=="on" ){ if ($idcomando != OG_CMD_ID_SENDMESSAGE && $idcomando != OG_CMD_ID_WAKEUP && $idcomando != OG_CMD_ID_CREATE_IMAGE && + $idcomando != OG_CMD_ID_RESTORE_IMAGE && $idcomando != OG_CMD_ID_SESSION && $idcomando != OG_CMD_ID_POWEROFF && $idcomando != OG_CMD_ID_HARDWARE && |