<?php
//Login To Database
include("Database.php");
include("OpenDatabase.php");
//Get The Functions
include("Functions.php");
//The Headers
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
?>
<?php
$username=$_GET['username'];
$password=$_GET['password'];
////////////////////////////////////////LOGIN!!!
//Page Title And CSS Theme
echo FlareXhead($uthm,$stitle);
echo "<p align=\"center\">";
echo "".date("D d M y - H:i",time() )."</a>
";
$TimeZone="0"; ////Change the TimeZone accordingly!
$New_Time = time() + ($TimeZone * 60 * 60);
$show_date=date("D dS F, Y",$New_Time);
$show_time=date("H:i",$New_Time);
$Hour=date("G",$New_Time);
echo "</p>";
echo "
";
//Check Password Query
$check_pass="SELECT Password FROM members WHERE Password='$password'";
$check_password=mysql_fetch_array(mysql_query($che ck_pass));
//Check User Query
$check_user="SELECT Username FROM members WHERE Username='$username'";
$Check_Username=mysql_fetch_array(mysql_query($che ck_user));
//Sucsessful Login
if ($username==$check_username)
{
if ($password==$check_password)
{
echo "==========</a>
";
echo "Username: $username</a>
";
echo "----------</a>
";
echo "Password: $password</a>
";
echo "==========</a>
";
echo "<a href=\"index.php?action=main&username=$username&pa ssword=$password\">Login Now!</a>";
}
}else{
//Incorrect Login
echo "Your Login Details Are Incorrect";
echo "</p>";
//End Page
echo FlareXfoot();
}
?>
Its Not Checking If The Login Details Are Correct , Its Just Going To The Else Function And Saying That The Details Is Wrong , Ne1 No Why?
//Login To Database
include("Database.php");
include("OpenDatabase.php");
//Get The Functions
include("Functions.php");
//The Headers
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
?>
<?php
$username=$_GET['username'];
$password=$_GET['password'];
////////////////////////////////////////LOGIN!!!
//Page Title And CSS Theme
echo FlareXhead($uthm,$stitle);
echo "<p align=\"center\">";
echo "".date("D d M y - H:i",time() )."</a>
";
$TimeZone="0"; ////Change the TimeZone accordingly!
$New_Time = time() + ($TimeZone * 60 * 60);
$show_date=date("D dS F, Y",$New_Time);
$show_time=date("H:i",$New_Time);
$Hour=date("G",$New_Time);
echo "</p>";
echo "
";
//Check Password Query
$check_pass="SELECT Password FROM members WHERE Password='$password'";
$check_password=mysql_fetch_array(mysql_query($che ck_pass));
//Check User Query
$check_user="SELECT Username FROM members WHERE Username='$username'";
$Check_Username=mysql_fetch_array(mysql_query($che ck_user));
//Sucsessful Login
if ($username==$check_username)
{
if ($password==$check_password)
{
echo "==========</a>
";
echo "Username: $username</a>
";
echo "----------</a>
";
echo "Password: $password</a>
";
echo "==========</a>
";
echo "<a href=\"index.php?action=main&username=$username&pa ssword=$password\">Login Now!</a>";
}
}else{
//Incorrect Login
echo "Your Login Details Are Incorrect";
echo "</p>";
//End Page
echo FlareXfoot();
}
?>
Its Not Checking If The Login Details Are Correct , Its Just Going To The Else Function And Saying That The Details Is Wrong , Ne1 No Why?
Comment