Location: PHPKode > scripts > Hot or Not Clone > hotornot/control/login.php
<?
include("../config.php");
$username=trim($username);
$password=trim($lpassword);
if($username=="" || $password =="")
{
	header("Location: index.php?error=wu");
	exit;
}
$sql="select password from admin where username='$username'";
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{
	$dbpass=$row[0];
}
if($dbpass==$password)
{
	session_start();
	$admin_username=$username;
	session_register("admin_username");
}
else
{
	header("Location: index.php?error=wu");
	exit;
}
?>
Return current item: Hot or Not Clone