Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/pre/acldelete.pre.inc.php
<?php

	if (isset($_REQUEST['selectedACL'])) {
		$selectedACL = intval($_REQUEST['selectedACL']);
		$value = $bugDatabase->lists['acl'][$selectedACL];

		$flags = array();
		$prName = htmlentities($bugDatabase->lists['project'][$value['project']]['name']);
		if ($value['flags'] & ACL_READ) {
			$flags[] = "read";
		}
		if ($value['flags'] & ACL_ADD) {
			$flags[] = "add";
		}
		if ($value['flags'] & ACL_MODIFY) {
			$flags[] = "modify";
		}

		if ($value['id_tag'] == 0) {
			$aclName = "<b>Everyone</b>";
		}
		else {
			$aclName = htmlentities($bugDatabase->lists[$value['acl_type']][$value['id_tag']]['name']);
		}
		$flags = implode(",", $flags);

		if (isset($_REQUEST['confirm'])) {
			$update[0]['action'] = "delete";
			$update[0]['tableName'] = "acl";
			$update[0]['uniqueRow'] = "id";
			$update[0]['rowid'] = $bugDatabase->lists['acl'][$selectedACL]['id'];
			$bugDatabase->alterDb($update);
			header("Location: {$options['baseURL']}?area=admin&action=acledit");
		}
	}
	
?>
Return current item: BugIn and Ticketing System