From: Johnnie Lamar Odom II Date: Mon, 11 Jun 2018 22:51:01 +0000 (-0500) Subject: Forgot to move an updated system call for all user returns. X-Git-Url: https://git.planwatch.world/gitweb/?a=commitdiff_plain;h=61b244f7ec40b7ab05124c52742c8d62a413f69c;p=planworld_public.git Forgot to move an updated system call for all user returns. --- diff --git a/code/clientlib/3.00/system.php b/code/clientlib/3.00/system.php index 4421a9d..4f80d4b 100644 --- a/code/clientlib/3.00/system.php +++ b/code/clientlib/3.00/system.php @@ -7,9 +7,7 @@ Max version supported by server. Arguments: None. Return: Version Float. */ function versionGet ($arrayRestInputs) { - $versionReturn = '0'; - if(file_exists($arrayRestInputs['enginebasedir'] . '/config.php')){ require_once($arrayRestInputs['enginebasedir'] . '/config.php'); if(defined('PW_VERSION')){ @@ -19,4 +17,20 @@ function versionGet ($arrayRestInputs) { return $versionReturn; } +function userslocalGet($arrayRestInputs){ + $arrayUsers = array(); + if((file_exists($arrayRestInputs['enginebasedir'] . '/lib/Planworld.php')) && (file_exists($arrayRestInputs['enginebasedir'] . '/lib/NodeToken.php')) ){ + require_once($arrayRestInputs['enginebasedir'] . '/lib/NodeToken.php'); + $objectToken = new NodeToken (); + if($objectToken->retrieveToken($arrayRestInputs['token'])){ + if($objectToken->valid){ + require_once($arrayRestInputs['enginebasedir'] . '/lib/Planworld.php'); + $pw = new Planworld(); + $arrayUsers = $pw->getAllUsers(); + } + } + } + return $arrayUsers; +} + ?> \ No newline at end of file