Project

General

Profile

2114_controller.default.patch

krileon, 01 December 2010 03:56 PM

View differences:

administrator/components/com_comprofiler/controller/controller.default.php
1159 1159
	$userprofileEdits = array();
1160 1160
	$userprofileEdits[] = moscomprofilerHTML::makeOption( '0', _UE_NO );
1161 1161
	$userprofileEdits[] = moscomprofilerHTML::makeOption( '1', _UE_MODERATORS_AND_ABOVE );		//FIXME in CB 2.0: this conflicts with J1.6 ' registered group 
1162
	$userprofileEdits[] = moscomprofilerHTML::makeOption( $_CB_framework->acl->mapGroupNamesToValues( 'Administrator' ), _UE_ADMINS_AND_SUPERADMINS_ONLY );
1163
	$userprofileEdits[] = moscomprofilerHTML::makeOption( $_CB_framework->acl->mapGroupNamesToValues( 'Superadministrator' ), _UE_SUPERADMINS_ONLY );
1162
	$userprofileEdits[] = moscomprofilerHTML::makeOption( $_CB_framework->acl->mapGroupNamesToValues( 'administrator' ), _UE_ADMINS_AND_SUPERADMINS_ONLY );
1163
	$userprofileEdits[] = moscomprofilerHTML::makeOption( $_CB_framework->acl->mapGroupNamesToValues( 'super administrator' ), _UE_SUPERADMINS_ONLY );
1164 1164

  
1165 1165
	$reg_show_icons_explain = array();
1166 1166
	$reg_show_icons_explain[] = moscomprofilerHTML::makeOption( '0', _UE_NO );
......
1610 1610
			."\n (44, 'fax', 'fax', '#__comprofiler', '_UE_FAX', 'text', 0, 0, 0, 2, 12, 0, 0, NULL, NULL, 1, 1, 1, 0, 0, 1)";
1611 1611
		$sqlStatements[2]['message'] = '<font color="green">' . CBTxt::T('Fields Added Successfully!') . '</font><br />';
1612 1612

  
1613
		$groups			=	implode( ', ', $_CB_framework->acl->mapGroupNamesToValues( array( 'Public', 'Registered', 'Author', 'Editor', 'Publisher', 'Manager', 'Administrator', 'Superadministrator' ) ) );
1613
		$groups			=	implode( ', ', $_CB_framework->acl->mapGroupNamesToValues( array( 'public', 'registered', 'author', 'editor', 'publisher', 'manager', 'administrator', 'super administrator' ) ) );
1614 1614
		$sqlStatements[3]['query'] = "INSERT INTO `#__comprofiler_lists` (`listid`, `title`, `description`, `published`, `default`, `usergroupids`, `sortfields`, `col1title`, `col1enabled`, `col1fields`, `col2title`, `col2enabled`, `col1captions`, `col2fields`, `col2captions`, `col3title`, `col3enabled`, `col3fields`, `col3captions`, `col4title`, `col4enabled`, `col4fields`, `col4captions`) "
1615 1615
					."\n VALUES (2, 'Members List', 'my Description', 1, 1, '" . $groups . "', '`username` ASC', 'Image', 1, '29', 'Username', 1, 0, '42', 0, 'Other', 1, '26|*|28|*|27', 1, '', 0, '', 0)";
1616 1616