query($query);
$row = $result->fetch_assoc();
$user = $row["username"];
// users
$user_form = ''.$lang_user.'
'.$user.' ('.$lang_logout.')';
}
else {
// free access or admin user
// prepare user select form
if ($admin) {
$user = $admin_user;
}
$user_form = '
'.$lang_user.' ';
if ($auth) {
$user_form .= ' '.$user.' ('.$lang_logout.')';
}
$user_form .= '