Location: PHPKode > projects > DebWeb GUI > debwgui/includes/acl.inc
<?
// direct access check
if (!stristr($_SERVER['SCRIPT_NAME'], "index.php")) {

#	// write to sql log
#	require_once('includes/log.php');
#	$log = new log();
#	$log->Write("Prøvd å aksesere en fil fra admin panelet");

	// logged in check
	require_once('classes/sentry.php');
	require_once('config.php');
	$theSentry = new Sentry();
	if (!$theSentry->checkLogin()) {
		header("Location: login.php");
		die("NO ACCESS");
	}

print "<p><table border=\"0\" cellspacing=\"0\" cellpadding=\"4\" width=\"750\">".
      "<tr><td bgcolor=\"#A12A2A\" width=\"36\" align=\"center\" valign=\"top\"><img src=\"images/err.gif\" alt=\"error\" width=\"28\" height=\"32\"></td>".
      "<td bgcolor=\"#FFD9D1\" style=\"padding-left: 8px; padding-top: 6px\">".
      "<span class=\"errmsg\">You can not access this file directly!</span>".
      "</td></tr></table>";
	die();
}
?>
Return current item: DebWeb GUI