From 3815a3d4e4105364ba2bb5f040e852d41950deaf Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 12 Nov 2019 16:07:37 +0100 Subject: [locationinfo/runmode] Support new infoscreen variables Interactive mode, autologin, browser type, bookmarks --- modules-available/runmode/inc/runmode.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules-available/runmode/inc/runmode.inc.php') diff --git a/modules-available/runmode/inc/runmode.inc.php b/modules-available/runmode/inc/runmode.inc.php index 96f532d7..4d077f02 100644 --- a/modules-available/runmode/inc/runmode.inc.php +++ b/modules-available/runmode/inc/runmode.inc.php @@ -68,6 +68,18 @@ class RunMode return true; } + /** + * Change the isClient flag for existing client. + * @param string $machineUuid existing machine with some runmode + * @param string $moduleId module that assigned the current runmode of that client + * @param bool $isClient + */ + public static function updateClientFlag($machineUuid, $moduleId, $isClient) + { + Database::exec('UPDATE runmode SET isclient = :isclient WHERE machineuuid = :uuid AND module = :module', + ['uuid' => $machineUuid, 'module' => $moduleId, 'isclient' => ($isClient ? 1 : 0)]); + } + /** * @param string $machineuuid * @param int $returnData bitfield of data to return -- cgit v1.2.3-55-g7522