Location: PHPKode > projects > Scribe > 0.2/header.php
<?php
//SITE INFORMATION
$sitetitle = "Scribe";

session_start();
$_SESSION['authenticated'];
$_SESSION['username'];
$_SESSION['theme'];

//Attempt to get right forum
if(!isset($_GET['showforum']))
{
	$forumReserved="0";
}
else
{
	$forumReserved=$_GET['showforum'];
}
//verification function
function verify($user, $pass)
 {
	$found="no";
		//look for username entry
			$path = "users/" . md5($user) . ".php";
			$exists = file_exists($path);
			if($exists=="1")
			{
				include_once($path);
				$found="yes";
			}

		//Prepping stored password and email
			$sorha = md5($sorha);
			$emaha = md5($emaha);
		//Hash input from user
			$unhash = md5($user);
			$pwhash = md5(md5(md5($pass)));
		//Calculate access key
			$access = md5($user . $emaha . $pass);
		
		
		//Test information for consistency
			if($accha == $access && $pwhash == $sorha)
			{
				$_SESSION['authenticated']="yes";
				$_SESSION['username']=$user;
				//Rank
				$_SESSION['rank']="$yonk";
				$_SESSION['debug']="Success";
			}
}

verify($_POST['username'], $_POST['password']);
?>
Return current item: Scribe