.
*/
require_once("auth.php");
require_once("helpers/position.php");
require_once("helpers/track.php");
if ($user->isValid) {
$itemPass = '' . $lang["changepass"] . '';
$itemLogout = '' . $lang["logout"] . '';
$userHeader = '
';
} else {
$userHeader = '' . $lang["login"] . '';
}
$lastUserId = NULL;
$userForm = '';
if ($user->isAdmin || $config::$public_tracks) {
// public access or admin user
// prepare user select form
$userForm = '
' . $lang["user"] . '
';
}
// prepare track select form
$trackForm = '
' . $lang["track"] . '
';
// map api select form
$apiForm = '
' . $lang["api"] . '
';
// language select form
$langForm = '
' . $lang["language"] . '
';
// units select form
$unitsForm = '
' . $lang["units"] . '
';
// admin menu
$adminMenu = '';
$adminScript = '';
if ($user->isAdmin) {
$adminMenu = '
';
$adminScript = '';
}
print '
' . $lang["title"] . '
';
if ($config::$mapapi == "gmaps") {
print '
';
} else {
print '
';
}
print '
' . $adminScript . '
';
$mysqli->close();
?>