diff options
author | ramon <ramongomez@us.es> | 2017-02-10 13:30:31 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2017-02-10 13:30:31 +0000 |
commit | 357352b27302b3fef93367cc617647def09b04a0 (patch) | |
tree | 84caa009870e9796f417f7ecba1f069271719728 /admin/WebConsole/rest/remotepc.php | |
parent | f784f182cdda7f91f9e4b35157fe6bf55ba4b5af (diff) |
#708: Obtener datos y código HTTP en llamadas {{{curl_multi}}} de PHP; usar fecha en formato ISO 8601 y quitar líneas en blanco al final de ficheros.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5185 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/rest/remotepc.php')
-rw-r--r-- | admin/WebConsole/rest/remotepc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/admin/WebConsole/rest/remotepc.php b/admin/WebConsole/rest/remotepc.php index 35513eee..60ea8751 100644 --- a/admin/WebConsole/rest/remotepc.php +++ b/admin/WebConsole/rest/remotepc.php @@ -77,7 +77,7 @@ EOD; // Check client's status. $ogagent[$clntip]['url'] = "https://$clntip:8000/opengnsys/status"; $result = multiRequest($ogagent); - if (empty($result[$clntip])) { + if (empty($result[$clntip]['data'])) { // Client is off, send a boot command to ogAdmServer. $reqframe = "nfn=Arrancar\r". "ido=$clntid\r". @@ -91,6 +91,7 @@ EOD; $ogagent[$clntip]['header'] = Array("Authorization: ".$agentkey); $result = multiRequest($ogagent); // ... (check response) + //if ($result[$clntip]['code'] != 200) { // ... } // DB Transaction: mark choosed client as reserved and @@ -300,6 +301,7 @@ EOD; $ogagent[$clntip]['header'] = Array("Authorization: ".$agentkey); $result = multiRequest($ogagent); // ... (check response) + //if ($result[$clntip]['code'] != 200) { // ... // Confirm operation. jsonResponse(200, ""); |