/usr/share/phpgacl/docs/examples/millennium_falcon/index.php is in phpgacl 3.3.7-7.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | <?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'); ?>
|