diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2019-10-07 10:57:24 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-10-07 11:15:36 +0200 |
commit | c857bed55d2e7a4dad019ccc2d9a21b64fd73e40 (patch) | |
tree | 717d9cd3645778b6e4dadb4ae4ed53f3e9ebe216 /admin/WebConsole/comandos | |
parent | 8b1c92b1acf5b10b5dda9829de4773b4a1590dc7 (diff) |
Adapt web to use new image/setup cmd in REST API
SocketHidra configurar has been replaced by POST image/setup.
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 b320d9cd..8ed77d01 100644 --- a/admin/WebConsole/comandos/gestores/gestor_Comandos.php +++ b/admin/WebConsole/comandos/gestores/gestor_Comandos.php @@ -30,6 +30,7 @@ define('OG_CMD_ID_HARDWARE', 6); define('OG_CMD_ID_SOFTWARE', 7); define("OG_CMD_ID_SCRIPT", 8); define('OG_CMD_ID_SESSION', 9); +define('OG_CMD_ID_SETUP', 10); define('OG_CMD_ID_SENDMESSAGE', 16); // Recoge parametros de seguimiento @@ -131,6 +132,9 @@ switch ($idcomando) { case OG_CMD_ID_WAKEUP: include("wakeonlan_repo.php"); break; + case OG_CMD_ID_SETUP: + setup($cadenaip, $atributos); + break; case OG_CMD_ID_SESSION: session($cadenaip, $atributos); break; @@ -211,6 +215,7 @@ if($sw_ejya=='on' || $sw_ejprg=="on" ){ $idcomando != OG_CMD_ID_WAKEUP && $idcomando != OG_CMD_ID_CREATE_IMAGE && $idcomando != OG_CMD_ID_RESTORE_IMAGE && + $idcomando != OG_CMD_ID_SETUP && $idcomando != OG_CMD_ID_SESSION && $idcomando != OG_CMD_ID_POWEROFF && $idcomando != OG_CMD_ID_HARDWARE && |