6$modversion[
'dirname'] =
'user';
7$modversion[
'name'] = _MI_USER_NAME;
8$modversion[
'version'] =
'2.50';
9$modversion[
'detailed_version'] =
'2.50.0';
10$modversion[
'description'] = _MI_USER_NAME_DESC;
11$modversion[
'author'] =
'The XOOPSCube Project';
12$modversion[
'credits'] =
'Minahito, The XOOPSCube Project';
13$modversion[
'license'] =
'GPL see LICENSE';
14$modversion[
'image'] =
'images/module_users.svg';
15$modversion[
'icon'] =
'images/module_icon.svg';
16$modversion[
'help'] =
'help.html';
17$modversion[
'cube_style'] =
true;
20$modversion[
'sqlfile'][
'mysql'] =
'sql/mysql.sql';
23$modversion[
'tables'][0] =
'{prefix}_{dirname}_mailjob';
24$modversion[
'tables'][1] =
'{prefix}_{dirname}_mailjob_link';
27$modversion[
'hasAdmin'] = 1;
28$modversion[
'adminindex'] =
'admin/index.php';
29$modversion[
'adminmenu'] =
'admin/menu.php';
32$modversion[
'templates'][1][
'file'] =
'user_userinfo.html';
33$modversion[
'templates'][1][
'description'] =
'Display a user information in userinfo.php';
34$modversion[
'templates'][2][
'file'] =
'user_userform.html';
35$modversion[
'templates'][2][
'description'] =
'Display login and register page to anonymouse user';
36$modversion[
'templates'][3][
'file'] =
'user_edituser.html';
37$modversion[
'templates'][3][
'description'] =
'When user edit own information, display this';
38$modversion[
'templates'][4][
'file'] =
'user_register_form.html';
39$modversion[
'templates'][4][
'description'] =
'';
40$modversion[
'templates'][5][
'file'] =
'user_register_confirm.html';
41$modversion[
'templates'][5][
'description'] =
'';
42$modversion[
'templates'][6][
'file'] =
'user_lostpass.html';
43$modversion[
'templates'][6][
'description'] =
'';
44$modversion[
'templates'][7][
'file'] =
'user_default.html';
45$modversion[
'templates'][7][
'description'] =
'';
46$modversion[
'templates'][8][
'file'] =
'user_avatar_edit.html';
47$modversion[
'templates'][8][
'description'] =
'';
48$modversion[
'templates'][9][
'file'] =
'user_register_finish.html';
49$modversion[
'templates'][9][
'description'] =
'';
50$modversion[
'templates'][10][
'file'] =
'user_misc_online.html';
51$modversion[
'templates'][10][
'description'] =
'';
52$modversion[
'templates'][11][
'file'] =
'user_delete.html';
53$modversion[
'templates'][11][
'description'] =
'';
54$modversion[
'templates'][12][
'file'] =
'user_delete_success.html';
55$modversion[
'templates'][12][
'description'] =
'';
58$modversion[
'config'][]= [
59 'name' =>
'allow_register',
60 'title' =>
'_MI_USER_CONF_ALLOW_REGISTER',
61 'description' =>
'_MI_USER_CONF_ALW_RG_DESC',
62 'formtype' =>
'yesno',
67$modversion[
'config'][]= [
69 'title' =>
'_MI_USER_CONF_MINPASS',
70 'formtype' =>
'textbox',
75$modversion[
'config'][]= [
77 'title' =>
'_MI_USER_CONF_MINUNAME',
78 'formtype' =>
'textbox',
83$modversion[
'config'][]= [
85 'title' =>
'_MI_USER_CONF_MAXUNAME',
86 'formtype' =>
'textbox',
91$modversion[
'config'][]= [
92 'name' =>
'allow_chgmail',
93 'title' =>
'_MI_USER_CONF_CHGMAIL',
94 'formtype' =>
'yesno',
99$modversion[
'config'][]= [
100 'name' =>
'notify_method',
101 'title' =>
'_NOT_NOTIFYMETHOD',
102 'formtype' =>
'select',
103 'options' => [
'_NOT_METHOD_DISABLE' =>0,
'_NOT_METHOD_PM' =>1,
'_NOT_METHOD_EMAIL' =>2],
104 'valuetype' =>
'int',
108$modversion[
'config'][]= [
109 'name' =>
'new_user_notify',
110 'title' =>
'_MI_USER_CONF_NEW_USER_NOTIFY',
111 'formtype' =>
'yesno',
112 'valuetype' =>
'int',
116$modversion[
'config'][]= [
117 'name' =>
'new_user_notify_group',
118 'title' =>
'_MI_USER_CONF_NEW_NTF_GROUP',
119 'formtype' =>
'group',
120 'valuetype' =>
'int',
121 'default' =>XOOPS_GROUP_ADMIN
124$modversion[
'config'][]= [
125 'name' =>
'activation_type',
126 'title' =>
'_MI_USER_CONF_ACTV_TYPE',
127 'formtype' =>
'select',
128 'options' => [
'_MI_USER_CONF_ACTV_USER' =>0,
'_MI_USER_CONF_ACTV_AUTO' =>1,
'_MI_USER_CONF_ACTV_ADMIN' =>2],
129 'valuetype' =>
'int',
133$modversion[
'config'][]= [
134 'name' =>
'activation_group',
135 'title' =>
'_MI_USER_CONF_ACTV_GROUP',
136 'description' =>
'_MI_USER_CONF_ACTV_GROUP_DESC',
137 'formtype' =>
'group',
138 'valuetype' =>
'int',
139 'default' =>XOOPS_GROUP_ADMIN
142$modversion[
'config'][]= [
143 'name' =>
'uname_test_level',
144 'title' =>
'_MI_USER_CONF_UNAME_TEST_LEVEL',
145 'formtype' =>
'select',
146 'options' => [
'_MI_USER_CONF_UNAME_TEST_LEVEL_STRONG' =>0,
'_MI_USER_CONF_UNAME_TEST_LEVEL_NORMAL' =>1,
'_MI_USER_CONF_UNAME_TEST_LEVEL_WEAK' =>2],
147 'valuetype' =>
'int',
151$modversion[
'config'][]= [
152 'name' =>
'avatar_allow_upload',
153 'title' =>
'_MI_USER_CONF_AVTR_ALLOW_UP',
154 'formtype' =>
'yesno',
155 'valuetype' =>
'int',
159$modversion[
'config'][]= [
160 'name' =>
'avatar_minposts',
161 'title' =>
'_MI_USER_CONF_AVATAR_MINPOSTS',
162 'description' =>
'_MI_USER_CONF_AVT_MIN_DESC',
163 'formtype' =>
'textbox',
164 'valuetype' =>
'int',
168$modversion[
'config'][]= [
169 'name' =>
'avatar_width',
170 'title' =>
'_MI_USER_CONF_AVATAR_WIDTH',
171 'formtype' =>
'textbox',
172 'valuetype' =>
'int',
176$modversion[
'config'][]= [
177 'name' =>
'avatar_height',
178 'title' =>
'_MI_USER_CONF_AVATAR_HEIGHT',
179 'formtype' =>
'textbox',
180 'valuetype' =>
'int',
184$modversion[
'config'][]= [
185 'name' =>
'avatar_maxsize',
186 'title' =>
'_MI_USER_CONF_AVATAR_MAXSIZE',
187 'formtype' =>
'textbox',
188 'valuetype' =>
'int',
189 'default' =>1_048_576
192$modversion[
'config'][]= [
193 'name' =>
'self_delete',
194 'title' =>
'_MI_USER_CONF_SELF_DELETE',
195 'formtype' =>
'yesno',
196 'valuetype' =>
'int',
200$modversion[
'config'][]= [
201 'name' =>
'self_delete_confirm',
202 'title' =>
'_MI_USER_CONF_SELF_DELETE_CONF',
203 'formtype' =>
'textarea',
204 'valuetype' =>
'string',
205 'default' =>_MI_USER_CONF_SELF_DELETE_CONFIRM_DEFAULT
208$modversion[
'config'][]= [
209 'name' =>
'bad_unames',
210 'title' =>
'_MI_USER_CONF_BAD_UNAMES',
211 'description' =>
'_MI_USER_CONF_BAD_UNAMES_DESC',
212 'formtype' =>
'textarea',
213 'valuetype' =>
'array',
214 'default' => [
'^admin',
'webmaster',
'^xoops',
'^cube',
'^xcube',
'^legacy',
'^xcl',
'^developer',
'^develop',
'^development',
'^design',
'^designer',
'^support',
'^info',
'^information',
'^client',
'^customer',
'^sales',
'^billing']
217$modversion[
'config'][]= [
218 'name' =>
'bad_emails',
219 'title' =>
'_MI_USER_CONF_BAD_EMAILS',
220 'description' =>
'_MI_USER_CONF_BAD_EMAILS_DESC',
221 'formtype' =>
'textarea',
222 'valuetype' =>
'array',
223 'default' => [
'xoopscube.jp$',
'xoopscube.org$']
226$modversion[
'config'][]= [
227 'name' =>
'reg_dispdsclmr',
228 'title' =>
'_MI_USER_CONF_DISPDSCLMR',
229 'description' =>
'_MI_USER_CONF_DISPDSCLMR_DESC',
230 'formtype' =>
'yesno',
231 'valuetype' =>
'int',
235$modversion[
'config'][]= [
236 'name' =>
'reg_disclaimer',
237 'title' =>
'_MI_USER_CONF_DISCLAIMER',
238 'description' =>
'_MI_USER_CONF_DISCLAIMER_DESC',
239 'formtype' =>
'textarea',
240 'valuetype' =>
'string',
241 'default' =>_MI_USER_CONF_DISCLAIMER_DESC_DEFAULT
244$modversion[
'config'][]= [
245 'name' =>
'usercookie',
246 'title' =>
'_MI_USER_CONF_USERCOOKIE',
247 'description' =>
'_MI_USER_CONF_USERCOOKIE_DESC',
248 'formtype' =>
'textbox',
249 'valuetype' =>
'string',
250 'default' =>
'wap_user'
253$modversion[
'config'][]= [
255 'title' =>
'_MI_USER_CONF_USE_SSL',
256 'formtype' =>
'yesno',
257 'valuetype' =>
'int',
261$modversion[
'config'][]= [
262 'name' =>
'sslpost_name',
263 'title' =>
'_MI_USER_CONF_SSLPOST_NAME',
264 'formtype' =>
'textbox',
265 'valuetype' =>
'string',
266 'default' =>
'xcl_ssl'
269$modversion[
'config'][]= [
270 'name' =>
'sslloginlink',
271 'title' =>
'_MI_USER_CONF_SSLLOGINLINK',
272 'formtype' =>
'textbox',
273 'valuetype' =>
'string',
274 'default' => XOOPS_URL .
'/login.php'
278$modversion[
'hasMain'] = 0;
279$modversion[
'read_any'] =
true;
282$modversion[
'blocks'][1][
'file'] =
'user_login.php';
283$modversion[
'blocks'][1][
'name'] = _MI_USER_BLOCK_LOGIN_NAME;
284$modversion[
'blocks'][1][
'description'] = _MI_USER_BLOCK_LOGIN_DESC;
285$modversion[
'blocks'][1][
'show_func'] =
'b_user_login_show';
286$modversion[
'blocks'][1][
'template'] =
'user_block_login.html';
287$modversion[
'blocks'][1][
'visible_any'] =
true;
288$modversion[
'blocks'][1][
'show_all_module'] =
true;
290$modversion[
'blocks'][2][
'file'] =
'user_online.php';
291$modversion[
'blocks'][2][
'name'] = _MI_USER_BLOCK_ONLINE_NAME;
292$modversion[
'blocks'][2][
'description'] = _MI_USER_BLOCK_ONLINE_DESC;
293$modversion[
'blocks'][2][
'show_func'] =
'b_user_online_show';
294$modversion[
'blocks'][2][
'template'] =
'user_block_online.html';
295$modversion[
'blocks'][2][
'show_all_module'] =
true;
297$modversion[
'blocks'][3][
'file'] =
'user_newusers.php';
298$modversion[
'blocks'][3][
'name'] = _MI_USER_BLOCK_NEWUSERS_NAME;
299$modversion[
'blocks'][3][
'description'] = _MI_USER_BLOCK_NEWUSERS_DESC;
300$modversion[
'blocks'][3][
'show_func'] =
'b_user_newusers_show';
301$modversion[
'blocks'][3][
'template'] =
'user_block_newusers.html';
302$modversion[
'blocks'][3][
'edit_func'] =
'b_user_newusers_edit';
303$modversion[
'blocks'][3][
'options'] =
'10|1';
304$modversion[
'blocks'][3][
'show_all_module'] =
true;
306$modversion[
'blocks'][4][
'file'] =
'user_topusers.php';
307$modversion[
'blocks'][4][
'name'] = _MI_USER_BLOCK_TOPUSERS_NAME;
308$modversion[
'blocks'][4][
'description'] = _MI_USER_BLOCK_TOPUSERS_DESC;
309$modversion[
'blocks'][4][
'show_func'] =
'b_user_topusers_show';
310$modversion[
'blocks'][4][
'template'] =
'user_block_topusers.html';
311$modversion[
'blocks'][4][
'edit_func'] =
'b_user_topusers_edit';
312$modversion[
'blocks'][4][
'options'] =
'10|1';
313$modversion[
'blocks'][4][
'show_all_module'] =
true;