Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /home/wereldcenter.nl/forum/admin/admin_ug_auth.php on line 99
Code: Selecteer alles
$field_names = array(
	'auth_view' => $lang['View'],
	'auth_read' => $lang['Read'],
	'auth_post' => $lang['Post'],
	'auth_reply' => $lang['Reply'],
	'auth_edit' => $lang['Edit'],
	'auth_delete' => $lang['Delete'],
	'auth_sticky' => $lang['Sticky'],
	'auth_announce' => $lang['Announce'], 
	'auth_vote' => $lang['Vote'], 
	'auth_pollcreate' => $lang['Pollcreate'],
// ---------------
// Start Functions
//
function check_auth($type, $key, $u_access, $is_admin) <-- is regel 99
{
	$auth_user = 0;
	if( count($u_access) )
	{
		for($j = 0; $j < count($u_access); $j++)
		{
			$result = 0;
			switch($type)
			{
				case AUTH_ACL:
					$result = $u_access[$j][$key];
				case AUTH_MOD:
					$result = $result || $u_access[$j]['auth_mod'];
				case AUTH_ADMIN:
					$result = $result || $is_admin;
					break;
			}
			$auth_user = $auth_user || $result;
		}
	}
	else
	{
		$auth_user = $is_admin;
	}
	return $auth_user;
}
//
// End Functions
// -------------