Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/pre/pedit.pre.inc.php
<?php
require_once("{$options['buginLibBase']}trigger.inc.php");
if (isset($_REQUEST['selectedProject'])) {
	$selectedProject = intval($_REQUEST['selectedProject']);
	$formFields = "<input type=\"hidden\" name=\"selectedProject\" value=\"{$selectedProject}\" />";

	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['project'][$selectedProject][$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'] = "projects";
			$update[0]['uniqueRow'] = "id";
			$update[0]['rowid'] = $selectedProject;
			$bugDatabase->alterDb($update);
			$bugDatabase->lists['project'] = $bugDatabase->getProjectList();
			header("Location: {$options['baseURL']}?area=admin&action=pedit");
		}

	}
	$email = htmlentities($bugDatabase->lists['project'][$selectedProject]['email']);
	$projectName = htmlentities($bugDatabase->lists['project'][$selectedProject]['name']);
	$projectGroup = @explode(",", $bugDatabase->lists['project'][$selectedProject]['user_group']);
	$projectDesc = htmlentities($bugDatabase->lists['project'][$selectedProject]['proj_desc']);
	$triggerTable = makeTriggerTable('p', $selectedProject);
}
else {
	$triggerTable = makeTriggerTable('p', 0);
}

?>
Return current item: BugIn and Ticketing System