Location: PHPKode > projects > RadhikaGB > radhikagb_f2505100832/admin/auth.php
<?php
//||_____________________RadhikaGB_____________________||//
//||---------------------------------------------------||//
//||Page ID  :  auth.php(ADMIN)                        ||//
//||Build ID :  2505100832                             ||//
//||Support  :  http://softacme.com/radhikagb          ||//
//||          Jai Shri RADHA RANI...                   ||//
//||---------------------------------------------------||//
?>
<?php	
		$username="$_POST[username]";
		$password="$_POST[password]";
		$IPS	 = $_SERVER["REMOTE_ADDR"]; 
		$browser = $_SERVER['HTTP_USER_AGENT'];
		$date = time();
		session_id();
		session_start();
		header('Cache-control: private'); 
		//hash the password
		$password=md5($password.$password);
		if(file_exists("../connect.php")){
		require_once("../connect.php");
		}else{
		header("location: ../self-help.php?error=1");
		}
$username=htmlspecialchars($username,ENT_QUOTES);
$password=($password);
$sql="SELECT username, password FROM superuser WHERE username='".$username."'";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
if(mysql_num_rows($result)>0)
{
	if(strcmp($row['password'],$password)==0)
	{		echo "OK";
		$_SESSION['username']=$username; 
		{
		mysql_query ("INSERT INTO logins (ip, date, browser)
		VALUES ('$IPS', '$date', '$browser')");
		}
		}
else 
	{
    $auth_error = '<div id="notification_error">Invalid username/password</div>';
    echo $auth_error;
	}
}
else 
	{
    $auth_error = '<div id="notification_error">Invalid username/password</div>';
    echo $auth_error;
	}
	?>
Return current item: RadhikaGB