<!DOCTYPE html><html lang="en"><head><?phpsession_start();// if the session is new extract the username password from the GET request$input_uname=$_GET['username'];$input_pwd=$_GET['Password'];$hashed_pwd=sha1($input_pwd);// check if it has exist login sessionif($input_uname==""and$hashed_pwd==sha1("")and$_SESSION['name']!=""and$_SESSION['pwd']!=""){
$input_uname=$_SESSION['name'];$hashed_pwd=$_SESSION['pwd'