I'm browsing those scripts and found the following codes:
// Require the library
require ("main.inc.php");
// -----------------
// Get the user info
$Username = $w3t_myname;
$Password = $w3t_mypass;
$userob = new user;
$user = $userob -> authenticate("$Username","$Password","U_Username, U_Password, U_Groups, U_TimeOffset");
then can I simply use
if ($user['U_Username'])
{
echo "Welcome home, $user[U_Username] !";
}
else
echo "YOU'RE NOT LOGINED.";
to check the user's login state?
Is that right?