Location: PHPKode > projects > PhpGACL > phpgacl-3.3.7/docs/examples/millennium_falcon/index.php
<?php
if (isset($_GET['do'])){
	$URL = $_GET['do'];
} else {
	$URL = 'index';
}

include_once('header.php');
?>
<div id="mid-r">
	<div id="mid-l">
  		<div>
  		  	<p>
  				<b>Millenium Falcon API Example  by Ross Lawley.</b>
  			</p>
<?php
include_once('millenniumFalcon.inc');
	switch ($URL) {
		case 'index':
			include('welcome.php');
		break;
		case 'example1':
			$outputDebug = true;
                        $gacl_api = new gacl_api($gacl_options);
                        $gacl_api->clear_database();
			include('definingAccessControl.php');
		break;
		case 'example2':
			$outputDebug = false;
                        $gacl_api = new gacl_api($gacl_options);
                        $gacl_api->clear_database();
			include('definingAccessControl.php');
			$outputDebug = true;
			include('fineGrainAccessControl.php');
		break;
		case 'example3':
			$outputDebug = false;
                        $gacl_api = new gacl_api($gacl_options);
                        $gacl_api->clear_database();
			include('definingAccessControl.php');
			include('fineGrainAccessControl.php');
			$outputDebug = true;
			include('Multi-levelGroups.php');
		break;
	default:
		include('welcome.php');
		break;
}
?>
		</div>
	</div>
</div>
<?php include_once('footer.php'); ?>
Return current item: PhpGACL