diff options
author | Simon Rettberg | 2017-06-16 18:45:02 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-06-16 18:45:02 +0200 |
commit | 29c705766604abcab61ea3c5eb5adeb942679507 (patch) | |
tree | 0713de2bed5844546ff79755363ad0a456cbcae8 /modules-available/locationinfo/inc/locationinfo.inc.php | |
parent | [locationinfo] slxadmin part done, todo: frontend+api (diff) | |
download | slx-admin-29c705766604abcab61ea3c5eb5adeb942679507.tar.gz slx-admin-29c705766604abcab61ea3c5eb5adeb942679507.tar.xz slx-admin-29c705766604abcab61ea3c5eb5adeb942679507.zip |
[locationinfo] Frontend mostly working again...
Diffstat (limited to 'modules-available/locationinfo/inc/locationinfo.inc.php')
-rw-r--r-- | modules-available/locationinfo/inc/locationinfo.inc.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/modules-available/locationinfo/inc/locationinfo.inc.php b/modules-available/locationinfo/inc/locationinfo.inc.php index fa97a0c6..473804cc 100644 --- a/modules-available/locationinfo/inc/locationinfo.inc.php +++ b/modules-available/locationinfo/inc/locationinfo.inc.php @@ -11,14 +11,6 @@ class LocationInfo */ public static function getPcState($pc) { - /* pcState: - * [0] = IDLE (NOT IN USE) - * [1] = OCCUPIED (IN USE) - * [2] = OFF - * [3] = 10 days offline (BROKEN?) - */ - // TODO USE STATE NAME instead of numbers - $logintime = (int)$pc['logintime']; $lastseen = (int)$pc['lastseen']; $lastboot = (int)$pc['lastboot']; @@ -65,7 +57,7 @@ class LocationInfo * * @return array Return a default config. */ - public static function defaultPanelConfig() + public static function defaultPanelConfig($type) { return array( 'language' => 'en', |