summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest/ogagent.php
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2017-06-02 10:50:55 +0000
committerramon <ramongomez@us.es>2017-06-02 10:50:55 +0000
commit5d28f39e946acc4db676b2c72bfb9b468921cfa7 (patch)
tree50aaedb24a020b7c4bae86c9d929687afdd7c1d5 /admin/WebConsole/rest/ogagent.php
parent2e538275a4ab51ba5c760b5ab1b5410f0ab139a3 (diff)
#768: Nuevos scripts {{{listclientlive}}} y {{{setclientlive}}} para listar y asignar clientes ogLive.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5336 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/rest/ogagent.php')
-rw-r--r--admin/WebConsole/rest/ogagent.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/admin/WebConsole/rest/ogagent.php b/admin/WebConsole/rest/ogagent.php
index 30d0895d..e2a59aee 100644
--- a/admin/WebConsole/rest/ogagent.php
+++ b/admin/WebConsole/rest/ogagent.php
@@ -19,6 +19,20 @@ function writeLog($message = "") {
file_put_contents(LOG_FILE, date(DATE_ISO8601).": $message\n", FILE_APPEND);
}
+// Look for "show popup" pending operations into client's actions queue.
+function checkPendingPopup($clntid) {
+ global $cmd;
+
+ // Look for commands available to launch on the client.
+ $cmd->CreaParametro("@clntid", $clntid, 1);
+ $cmd->texto = <<<EOD
+SELECT parametros
+ FROM acciones
+ WHERE idordenador=@clntid AND estado=$ACCION_INICIADA AND idcomando=16;";
+EOD
+// ...
+}
+
/**
* @brief OGAgent notifies that its service is started on a client.
* @note Route: /ogagent/started, Method: POST, Format: JSON