summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest/remotepc.php
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2017-11-03 13:32:07 +0000
committerramon <ramongomez@us.es>2017-11-03 13:32:07 +0000
commit1d76269f93c9a930d306685f9c8a580ea6408d43 (patch)
tree80f9673cdbe15dad62c5d14bf94b819d327da048 /admin/WebConsole/rest/remotepc.php
parentdf7fd0b8980d9d2c1e23c609a4cf5611fc67f2bc (diff)
#708 #810: AƱadir depuraciĆ³n en ruta de RemotePC; adaptar mensajes en propiedades de repositorio.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5495 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/rest/remotepc.php')
-rw-r--r--admin/WebConsole/rest/remotepc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/admin/WebConsole/rest/remotepc.php b/admin/WebConsole/rest/remotepc.php
index f1e02e27..bd347d06 100644
--- a/admin/WebConsole/rest/remotepc.php
+++ b/admin/WebConsole/rest/remotepc.php
@@ -498,6 +498,8 @@ EOD;
$agentkey = $rs->campos["agentkey"];
// DB Transaction: set reservation time to the past and
// remove pending boot commands from client's and agent's queues.
+ if ($app->settings['debug'])
+ writeRemotepcLog($app->request()->getResourceUri(). ": Updating database.");
$cmd->texto = "START TRANSACTION;";
$cmd->Ejecutar();
$cmd->texto = <<<EOD
@@ -520,6 +522,8 @@ EOD;
$cmd->texto = "COMMIT;";
$cmd->Ejecutar();
// Send a poweroff command to client's OGAgent.
+ if ($app->settings['debug'])
+ writeRemotepcLog($app->request()->getResourceUri(). ": OGAgent poweroff, url=".$ogagent[$clntip]['url'].".");
$ogagent[$clntip]['url'] = "https://$clntip:8000/opengnsys/poweroff";
$ogagent[$clntip]['header'] = Array("Authorization: ".$agentkey);
$result = multiRequest($ogagent);