include 'pwds.php';
$user=$HTTP_POST_VARS['user'];
$user=strtolower($user);
$pass=md5($HTTP_POST_VARS['pass']);
$sql=mysql_query("select username from users where username='$user'");
$array=mysql_fetch_array($sql);
if ($array[0]==$user)
{
$getpass=mysql_query("select password from users where username='$user'");
$passarray=mysql_fetch_array($getpass);
if($passarray[0]==$pass)
{
session_register("sess_username");
$HTTP_SESSION_VARS['sess_username']="$user";
header("location:login_done.php");
}
else
{
$head="Password Mismatch";
$err="The PASSWORD you have entered is not correct
Please, Check the PASSWORD and Click Here to Sign In again.
Please, note that USERNAME and PASSWORD are case sensitive.";
}
}
else
{
$head="Username does not exists";
$err="The User Name you have entered does not exist
Please check it and Click Here to Sign In again
If you are not yet registered
Please, contact the admin for Registration.";
}
?>
|
![]() |
|
|
We are currently unavailable |
Contact Details |
Rm. 904, 9/F., Houston Centre,
63 Mody Road, T.S.T. East,
Kowloon, Hong Kong Tel: +852-2367 8595, E-mail: gtlmobile@biznetvigator.com URL: www.galaxmial.com, MSN: galaxmial@hotmail.com P. O. Box 90276 TST, Kowloon, Hongkong |