/usr/share/phpgacl/admin/acl_debug.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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | <?php
require_once('gacl_admin.inc.php');
switch ($_GET['action']) {
case 'Submit':
$gacl_api->debug_text('Submit!!');
//$result = $gacl_api->acl_query('system', 'email_pw', 'users', '1', NULL, NULL, NULL, NULL, TRUE);
$result = $gacl_api->acl_query( $_GET['aco_section_value'],
$_GET['aco_value'],
$_GET['aro_section_value'],
$_GET['aro_value'],
$_GET['axo_section_value'],
$_GET['axo_value'],
$_GET['root_aro_group_id'],
$_GET['root_axo_group_id'],
TRUE);
//Grab all relavent columns
$result['query'] = str_replace( 'a.id,a.allow,a.return_value',
' a.id,
a.allow,
a.return_value,
a.note,
a.updated_date,
ac.section_value as aco_section_value,
ac.value as aco_value,
ar.section_value as aro_section_value,
ar.value as aro_value,
ax.section_value as axo_section_value,
ax.value as axo_value',
$result['query']);
$rs = $gacl_api->db->Execute($result['query']);
if (is_object($rs)) {
while ($row = $rs->FetchRow()) {
list(
$id,
$allow,
$return_value,
$note,
$updated_date,
$aco_section_value,
$aco_value,
$aro_section_value,
$aro_value,
$axo_section_value,
$axo_value
) = $row;
$acls[] = array(
'id' => $id,
'allow' => $allow,
'return_value' => $return_value,
'note' => $note,
'updated_date' => date('d-M-y H:m:i',$updated_date),
'aco_section_value' => $aco_section_value,
'aco_value' => $aco_value,
'aro_section_value' => $aro_section_value,
'aro_value' => $aro_value,
'axo_section_value' => $axo_section_value,
'axo_value' => $axo_value,
);
}
}
//echo "<br><br>$x ACL_CHECK()'s<br>\n";
$smarty->assign('acls', $acls);
$smarty->assign('aco_section_value', $_GET['aco_section_value']);
$smarty->assign('aco_value', $_GET['aco_value']);
$smarty->assign('aro_section_value', $_GET['aro_section_value']);
$smarty->assign('aro_value', $_GET['aro_value']);
$smarty->assign('axo_section_value', $_GET['axo_section_value']);
$smarty->assign('axo_value', $_GET['axo_value']);
$smarty->assign('root_aro_group_id', $_GET['root_aro_group_id']);
$smarty->assign('root_axo_group_id', $_GET['root_axo_group_id']);
break;
default:
break;
}
$smarty->assign('return_page', $_SERVER['PHP_SELF']);
$smarty->assign('current','acl_debug');
$smarty->assign('page_title', 'ACL Debug');
$smarty->assign('phpgacl_version', $gacl_api->get_version());
$smarty->assign('phpgacl_schema_version', $gacl_api->get_schema_version());
$smarty->display('phpgacl/acl_debug.tpl');
?>
|