View file noauth.php

File size: 646B
<?

$name=$_GET["name"];
$pass=$_GET["pass"];
$error=null;
if (!empty($name) and !empty($pass))
{
if (is_file("users/".basename($name).".class"))
{
if (trim(file_get_contents("users/".basename($name).".class"))!=$pass)
{
$error.="Error in name and password!<br />";
}
}
else
{
$error.="This user is not exist!<br />";
}
}
else
{
$error.="Enter in site!<br />";
}
	
if (!empty($error))
{
echo $error;
echo "<br />";
echo "&laquo;<a href='login.php'>Main Page</a>";
echo "<br />";
include 'include/foot.php';
exit;
}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
?>