user
phpfox
1
1
1
module_user
'1|core.his|profile.male|core.himself',
1 => '2|core.her|profile.female|core.herself|female',
);";]]>
0
0
0
1
0
60
1
0
5
25
0
1
1900
2017
0
0
1
1
5
0
15
0
0
1
F j, Y
F j
0
25
0
0
0
0
0
0
0
0
0
0
0
0
0
0
15
Featured Members
User SignUp for Guests
Featured Users for Guests
Welcome
database()
->select('COUNT(u.user_id)')
->from(Phpfox::getT('user'), 'u')
->join(Phpfox::getT('user_field'), 'uf', 'uf.user_id = u.user_id')
->where('u.status_id = 0 AND u.view_id = 0')
->execute('getSlaveField');]]>
can_add_user_group_setting
can_control_profile_privacy
can_control_notification_privacy
can_override_user_privacy
require_profile_image
can_edit_gender_setting
can_add_custom_gender
custom_name_field
can_edit_dob
can_edit_users
can_stay_logged_in
can_change_other_user_picture
can_edit_other_user_privacy
can_change_own_user_name
total_times_can_change_user_name
can_block_other_members
can_be_blocked_by_others
can_feature
can_change_email
can_verify_others_emails
can_delete_own_account
can_change_own_full_name
total_times_can_change_own_full_name
can_delete_others_account
total_upload_space
force_cropping_tool_for_photos
max_upload_size_profile_photo
can_search_user_gender
can_search_user_age
can_browse_users_in_public
can_edit_user_group_membership
can_view_if_a_user_is_invisible
can_edit_currency
can_manage_user_group_settings
can_edit_user_group
can_delete_user_group
can_member_snoop
hide_from_browse
can_search_by_zip
'1',
'title' => 'Administrator',
'is_special' => '1'
),
array(
'user_group_id' => '2',
'title' => 'Registered User',
'is_special' => '1'
),
array(
'user_group_id' => '3',
'title' => 'Guest',
'is_special' => '1'
),
array(
'user_group_id' => '4',
'title' => 'Staff',
'is_special' => '1'
)
);
foreach ($aRows as $aRow)
{
$aInsert = array();
foreach ($aRow as $sKey => $sValue)
{
$aInsert[$sKey] = $sValue;
}
$this->database()->insert(Phpfox::getT('user_group'), $aInsert);
}
$iUserGroupId = Phpfox::getService('user.group.process')->add(array(
'title' => 'Banned',
'inherit_id' => 2
)
);
$this->database()->update(Phpfox::getT('setting'), array('value_actual' => $iUserGroupId), 'module_id = \'core\' AND var_name = \'banned_user_group_id\'');
$this->database()->update(Phpfox::getT('user_group_custom'), array('default_value' => '1'), 'user_group_id = ' . (int) $iUserGroupId . ' AND module_id = \'core\' AND name = \'user_is_banned\'');
$sTable = Phpfox::getT('user_twofactor_token');
$this->database()->createTable($sTable, [['name' => 'email', 'type' => 'varchar(100)', 'extra' => 'NOT NULL DEFAULT \'\'', 'primary_key' => true], ['name' => 'token_data', 'type' => 'text']], true);
$this->database()->createTable(Phpfox::getT('user_import'), [
[
'name' => 'import_id',
'type' => 'INT:10',
'extra' => 'unsigned not null',
'primary_key' => true,
'auto_increment' => true
],
[
'name' => 'user_id',
'type' => 'INT:10',
'extra' => 'unsigned not null',
'primary_key' => true,
],
[
'name' => 'time_stamp',
'type' => 'INT:10',
'extra' => 'unsigned not null',
],
[
'name' => 'file_name',
'type' => 'VCHAR',
],
[
'name' => 'status',
'type' => 'enum',
'extra' => '("completed","processing","stopped") NOT NULL'
],
[
'name' => 'total_user',
'type' => 'INT:10',
'extra' => 'unsigned not null',
],
[
'name' => 'total_imported',
'type' => 'INT:10',
'extra' => 'unsigned not null default 0',
],
[
'name' => 'error_log',
'type' => 'MTEXT',
'extra' => 'default null'
],
[
'name' => 'processing_job_id',
'type' => 'MTEXT',
'extra' => 'default null'
],
[
'name' => 'import_field',
'type' => 'MTEXT',
'extra' => 'default null'
],
]);
]]>