Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/pre/uadd.pre.inc.php
<?php
if (isset($mod)) {
	$formUserOptions = 0;
	$formUserOptions += ($mod['flags']['frames'] ? OPTION_FRAMES : 0);
	$formUserOptions += ($mod['flags']['notify'] ? OPTION_NOTIFY : 0);
	$formUserOptions += ($mod['flags']['popup'] ? OPTION_POPUP : 0);
	$formUserOptions += ($mod['flags']['refresh_list'] ? OPTION_REFRESH_LIST : 0);
	$formUserOptions += ($mod['flags']['list_sort_reverse'] ? OPTION_LIST_SORT_REVERSE : 0);
	$formUserOptions += ($mod['flags']['short_notification_notify'] ? OPTION_SHORT_NOTIFICATION_NOTIFY : 0);
	$formUserOptions += ($mod['flags']['no_paging'] ? OPTION_NO_PAGING : 0);
	$mod['options'] = $formUserOptions;
	unset($mod['flags']);
	$mod['pass'] = md5(stripslashes($mod[pass]));
	$row = 0;
	$update = array();
	while (list($key, $value) = each($mod)) {
		// Comma seperate your arrays, son.
		if (is_array($value))
			$value = implode(",", $value);

		$update[0]['modify'][$row]['fieldName'] = $key;
		$update[0]['modify'][$row]['fieldValue'] = $bugDatabase->db->qstr($value);
		$row ++;
	}

	if ($row) {
		$update[0][tableName] = "users";
		$update[0][action] = "add";
		$bugDatabase->alterDb($update);
	}
}
?>
Return current item: BugIn and Ticketing System