. */ require_once(__DIR__ . "/auth.php"); // sets $user require_once(ROOT_DIR . "/helpers/position.php"); require_once(ROOT_DIR . "/helpers/track.php"); require_once(ROOT_DIR . "/helpers/utils.php"); $displayUserId = NULL; $usersArr = []; if ($user->isAdmin || uConfig::$public_tracks) { // public access or admin user // get last position user $lastPosition = new uPosition(); $lastPosition->getLast(); if ($lastPosition->isValid) { // display track of last position user $displayUserId = $lastPosition->userId; } // populate users array (for


( s)





kml gpx
isValid): ?>

gpx

isAdmin): ?>