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

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

	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['category'][$selectedCategory][$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'] = "category";
			$update[0]['uniqueRow'] = "id";
			$update[0]['rowid'] = $bugDatabase->lists['category'][$selectedCategory]['id'];
			$bugDatabase->alterDb($update);
			$bugDatabase->lists['category'] = $bugDatabase->getCategoryList();
			$categoryList = $bugDatabase->lists['categoriy'];
			header("Location: {$options['baseURL']}?area=admin&action=cedit");
		}
	
	}
	$categoryName = htmlentities($bugDatabase->lists['category'][$selectedCategory]['name']);
}

?>
Return current item: BugIn and Ticketing System