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

if (isset($_REQUEST['selectedACL'])) {
	$selectedACL = intval($_REQUEST['selectedACL']);
	$formFields = "<input type=\"hidden\" name=\"selectedACL\" value=\"{$selectedACL}\" />";

	if (isset($mod)) {
		$row = 0;
		$update = array();

		$groups = @implode($groups, ",");

		// Upgate the groups if the user is an admin.
		while (list($key, $value) = each($mod)) {
			if (is_array($value))
				$value = implode($value, ",");

			if (stripslashes($value) != $bugDatabase->lists['acl'][$selectedACL][$key]) {
				$update[0]['modify'][$row]['fieldName'] = $key;
				$update[0]['modify'][$row]['fieldValue'] = $bugDatabase->db->qstr($value);
				$row ++;
			}
		}

		if ($row) {
			$update[0]['action'] = "change";
			$update[0]['tableName'] = "acl";
			$update[0]['uniqueRow'] = "id";
			$update[0]['rowid'] = $selectedACL;
			$bugDatabase->alterDb($update);
			$bugDatabase->lists[acl] = $bugDatabase->getACLList();
			header("Location: {$options['baseURL']}?area=admin&action=acledit");
		}

	}

	$email = htmlentities($bugDatabase->lists['acl'][$selectedACL]['email']);
	$aclName = htmlentities($bugDatabase->lists['acl'][$selectedACL]['name']);
	$aclGroup = @explode(",", $bugDatabase->lists['acl'][$selectedACL]['user_group']);
	$aclDesc = htmlentities($bugDatabase->lists['acl'][$selectedACL]['proj_desc']);
}

?>
Return current item: BugIn and Ticketing System