Project

General

Profile

Bug #2114 » 2114_controller.default.patch

krileon, 01 December 2010 15:56

View differences:

administrator/components/com_comprofiler/controller/controller.default.php
$userprofileEdits = array();
$userprofileEdits[] = moscomprofilerHTML::makeOption( '0', _UE_NO );
$userprofileEdits[] = moscomprofilerHTML::makeOption( '1', _UE_MODERATORS_AND_ABOVE ); //FIXME in CB 2.0: this conflicts with J1.6 ' registered group
$userprofileEdits[] = moscomprofilerHTML::makeOption( $_CB_framework->acl->mapGroupNamesToValues( 'Administrator' ), _UE_ADMINS_AND_SUPERADMINS_ONLY );
$userprofileEdits[] = moscomprofilerHTML::makeOption( $_CB_framework->acl->mapGroupNamesToValues( 'Superadministrator' ), _UE_SUPERADMINS_ONLY );
$userprofileEdits[] = moscomprofilerHTML::makeOption( $_CB_framework->acl->mapGroupNamesToValues( 'administrator' ), _UE_ADMINS_AND_SUPERADMINS_ONLY );
$userprofileEdits[] = moscomprofilerHTML::makeOption( $_CB_framework->acl->mapGroupNamesToValues( 'super administrator' ), _UE_SUPERADMINS_ONLY );
$reg_show_icons_explain = array();
$reg_show_icons_explain[] = moscomprofilerHTML::makeOption( '0', _UE_NO );
......
."\n (44, 'fax', 'fax', '#__comprofiler', '_UE_FAX', 'text', 0, 0, 0, 2, 12, 0, 0, NULL, NULL, 1, 1, 1, 0, 0, 1)";
$sqlStatements[2]['message'] = '<font color="green">' . CBTxt::T('Fields Added Successfully!') . '</font><br />';
$groups = implode( ', ', $_CB_framework->acl->mapGroupNamesToValues( array( 'Public', 'Registered', 'Author', 'Editor', 'Publisher', 'Manager', 'Administrator', 'Superadministrator' ) ) );
$groups = implode( ', ', $_CB_framework->acl->mapGroupNamesToValues( array( 'public', 'registered', 'author', 'editor', 'publisher', 'manager', 'administrator', 'super administrator' ) ) );
$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`) "
."\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)";
(5-5/5)