summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/rest')
-rw-r--r--admin/WebConsole/rest/remotepc.php6
-rw-r--r--admin/WebConsole/rest/server.php1
2 files changed, 7 insertions, 0 deletions
diff --git a/admin/WebConsole/rest/remotepc.php b/admin/WebConsole/rest/remotepc.php
index 6a897e0a..6dc5a62d 100644
--- a/admin/WebConsole/rest/remotepc.php
+++ b/admin/WebConsole/rest/remotepc.php
@@ -185,6 +185,9 @@ INSERT INTO acciones
idcentro=$ouid;
EOD;
$t2 = $cmd->Ejecutar();
+ create_schedule_now(strval($timestamp),
+ $EJECUCION_COMANDO,
+ "auto-queue-remotepc-reserve-".$timestamp);
// Create event to remove reservation on timeout (15 min.).
$timeout = "15 MINUTE";
$cmd->texto = <<<EOD
@@ -679,6 +682,9 @@ INSERT INTO acciones
idcentro=$ouid;
EOD;
$cmd->Ejecutar();
+ create_schedule_now(strval($timestamp),
+ $EJECUCION_COMANDO,
+ "auto-queue-remotepc-init-".$timestamp);
// Create event to remove the operation on timeout (15 min.).
$timeout = "15 MINUTE";
$cmd->texto = <<<EOD
diff --git a/admin/WebConsole/rest/server.php b/admin/WebConsole/rest/server.php
index a6256a2e..12b874ed 100644
--- a/admin/WebConsole/rest/server.php
+++ b/admin/WebConsole/rest/server.php
@@ -81,6 +81,7 @@ function getStatus($ouid, $labid, $clntid=0) {
'LNX'=>"linux",
'OSX'=>"macos",
'WIN'=>"windows",
+ 'WOL_SENT'=>"wol_sent",
'UNK'=>"unknown"];
// Parameters.
$ouid = htmlspecialchars($ouid);