diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2019-06-28 12:17:14 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-07-03 02:56:07 +0200 |
commit | db537e76582d86856f3eb080287aeb324338e52f (patch) | |
tree | cc87d83699052ce06820d1483b5a0983cd0f3426 /admin/WebConsole/comandos/gestores | |
parent | a0f41fca6e0f505e2bc21d8868629fecc363d0fa (diff) |
#915 adapt web to use new hardware cmd in REST API
SocketHidra hardware (inventario hardware) has been replaced by
POST /hardware.
Diffstat (limited to 'admin/WebConsole/comandos/gestores')
-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 49ccb141..20c262af 100644 --- a/admin/WebConsole/comandos/gestores/gestor_Comandos.php +++ b/admin/WebConsole/comandos/gestores/gestor_Comandos.php @@ -24,6 +24,7 @@ include_once("../includes/capturaacciones.php"); define('OG_CMD_ID_WAKEUP', 1); define('OG_CMD_ID_POWEROFF', 2); define('OG_CMD_ID_REBOOT', 5); +define('OG_CMD_ID_HARDWARE', 6); define("OG_CMD_ID_SCRIPT", 8); define('OG_CMD_ID_SESSION', 9); define('OG_CMD_ID_SENDMESSAGE', 16); @@ -135,6 +136,9 @@ switch ($idcomando) { break; case OG_CMD_ID_REBOOT: reboot($cadenaip); + break; + case OG_CMD_ID_HARDWARE: + hardware($cadenaip); } if($ambito==0){ // Ambito restringido a un subconjuto de ordenadores con formato (idordenador1,idordenador2,etc) @@ -195,6 +199,7 @@ if($sw_ejya=='on' || $sw_ejprg=="on" ){ $idcomando != OG_CMD_ID_WAKEUP && $idcomando != OG_CMD_ID_SESSION && $idcomando != OG_CMD_ID_POWEROFF && + $idcomando != OG_CMD_ID_HARDWARE && $idcomando != OG_CMD_ID_REBOOT) { // Envío al servidor $shidra=new SockHidra($servidorhidra,$hidraport); |