= "12" && $time < "17") {
$time_welc = "Good afternoon";
} else if ($time >= "17" && $time < "19") {
$time_welc = "Good evening";
} else if ($time >= "19") {
$time_welc = "Good night";
}
// Welcome depending on if user is logged in or not
if (isset($_SESSION["username"])) {
echo "
".$time_welc." ".$_SESSION['username']."!
";
} else {
echo "
".$time_welc."!
";
}
// Random welcome message
$welcome_message = $user_settings['welcome_msg'];
echo "
".$welcome_message[array_rand($welcome_message, 1)]."
";
?>