summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/comandos
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2019-10-09 11:07:04 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-10-09 15:27:59 +0200
commit8068b8239f4557e68a3d8d4d0c3bed07eaabb71c (patch)
tree945483aa6856c9b95fc849a372cfe3685dd8175a /admin/WebConsole/comandos
parent4d4ec5935a41e8190e80e2eaab1ae0cd023cdfdd (diff)
#915 Adapt web to use new image/restore/basic cmd in REST API
SocketHidra command has been replaced by POST image/restore/basic.
Diffstat (limited to 'admin/WebConsole/comandos')
-rw-r--r--admin/WebConsole/comandos/gestores/gestor_Comandos.php5
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 ffbea5ff..5b951735 100644
--- a/admin/WebConsole/comandos/gestores/gestor_Comandos.php
+++ b/admin/WebConsole/comandos/gestores/gestor_Comandos.php
@@ -32,6 +32,7 @@ define("OG_CMD_ID_SCRIPT", 8);
define('OG_CMD_ID_SESSION', 9);
define('OG_CMD_ID_SETUP', 10);
define('OG_CMD_ID_CREATE_BASIC_IMAGE', 12);
+define('OG_CMD_ID_RESTORE_BASIC_IMAGE', 13);
define('OG_CMD_ID_SENDMESSAGE', 16);
// Recoge parametros de seguimiento
@@ -142,6 +143,9 @@ switch ($idcomando) {
case OG_CMD_ID_CREATE_BASIC_IMAGE:
create_basic_image($cadenaip, $atributos);
break;
+ case OG_CMD_ID_RESTORE_BASIC_IMAGE:
+ restore_basic_image($cadenaip, $atributos);
+ break;
case OG_CMD_ID_POWEROFF:
poweroff($cadenaip);
break;
@@ -222,6 +226,7 @@ if($sw_ejya=='on' || $sw_ejprg=="on" ){
$idcomando != OG_CMD_ID_SETUP &&
$idcomando != OG_CMD_ID_SESSION &&
$idcomando != OG_CMD_ID_CREATE_BASIC_IMAGE &&
+ $idcomando != OG_CMD_ID_RESTORE_BASIC_IMAGE &&
$idcomando != OG_CMD_ID_POWEROFF &&
$idcomando != OG_CMD_ID_HARDWARE &&
$idcomando != OG_CMD_ID_SOFTWARE &&