Location: PHPKode > projects > Gcontact > admin/access.inc.php
<?php
	require_once("../inc/constants.inc.php");
	require_once("../inc/properties.inc.php");
	require_once("../inc/tools.inc.php");
	require_once("../inc/db.inc.php");

	if (ADMIN_RESTRICTED_ACCESS) {
		if 	($_SERVER['PHP_AUTH_USER'] != ADMIN_USERNAME || $_SERVER['PHP_AUTH_PW'] != ADMIN_PASSWORD) {
			header('WWW-Authenticate: Basic realm="Restricted access"');
			header('HTTP/1.0 401 Unauthorized');
			die('Authorization Required.');
			exit;
		}
	}
?>
Return current item: Gcontact