Location: PHPKode > projects > Nuggetz CMS > nuggetz/admin/login.php
<?php
require("../config.php");
session_start();

if(!($_POST['nuggetzuser'] == $nuggetzUser && $_POST['nuggetzpassword'] == $nuggetzPassword)){

	header("Location: http://".$domainName."?login=fail");	
	
}else{

	$_SESSION['mode'] = 'edit';
	header("Location: http://".$domainName);
	
}
?>
Return current item: Nuggetz CMS