diff options
author | Simon Rettberg | 2020-07-07 16:39:59 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-07-07 16:39:59 +0200 |
commit | 32a8bf87ba38a2a617f69c54a4831faa53221f26 (patch) | |
tree | ea8e0b7b6b152cc30984496acc9b3ace72369396 /modules-available/locationinfo/inc/infopanel.inc.php | |
parent | [statistics] Keep track of client runmode (diff) | |
download | slx-admin-32a8bf87ba38a2a617f69c54a4831faa53221f26.tar.gz slx-admin-32a8bf87ba38a2a617f69c54a4831faa53221f26.tar.xz slx-admin-32a8bf87ba38a2a617f69c54a4831faa53221f26.zip |
[locationinfo] Support styling clients with special runmode
Implemented for remoteaccess runmode for now
Diffstat (limited to 'modules-available/locationinfo/inc/infopanel.inc.php')
-rw-r--r-- | modules-available/locationinfo/inc/infopanel.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/locationinfo/inc/infopanel.inc.php b/modules-available/locationinfo/inc/infopanel.inc.php index b0ee0d56..001f31ea 100644 --- a/modules-available/locationinfo/inc/infopanel.inc.php +++ b/modules-available/locationinfo/inc/infopanel.inc.php @@ -108,7 +108,7 @@ class InfoPanel if ($withHostname) { $extraCols .= 'm.hostname,'; } - $query = "SELECT m.locationid, m.machineuuid, m.hostname, $extraCols m.logintime, m.lastseen, m.lastboot, m.state FROM machine m + $query = "SELECT m.locationid, m.machineuuid, $extraCols m.logintime, m.lastseen, m.lastboot, m.state, m.currentrunmode FROM machine m WHERE m.locationid IN (:idlist)"; $dbquery = Database::simpleQuery($query, array('idlist' => $idList)); @@ -147,6 +147,7 @@ class InfoPanel } } } + $pc['runmode'] = $row['currentrunmode']; $pc['pcState'] = LocationInfo::getPcState($row); //$pc['pcState'] = ['BROKEN', 'OFFLINE', 'IDLE', 'OCCUPIED', 'STANDBY'][mt_rand(0,4)]; // XXX |