@@ -179,45 +179,45 @@ |
||
179 | 179 | 'dir_banner_width' => '', |
180 | 180 | 'dir_banner_height' => '', |
181 | 181 | |
182 | - 'dir_mail' => ['lang' => 'DIR_MAIL_VALIDATION', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
183 | - 'dir_activ_checkurl' => ['lang' => 'DIR_ACTIVE_CHECK', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
184 | - 'dir_activ_flag' => ['lang' => 'DIR_ACTIV_FLAG', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
185 | - 'dir_activ_rss' => ['lang' => 'DIR_ACTIV_RSS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
186 | - 'dir_activ_pagerank' => ['lang' => 'DIR_ACTIV_PAGERANK', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
187 | - 'dir_show' => ['lang' => 'DIR_SHOW', 'validate' => 'int:1:9999', 'type' => 'number:1:9999', 'explain' => false], |
|
188 | - 'dir_length_describe' => ['lang' => 'DIR_MAX_DESC', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => false], |
|
189 | - 'dir_new_time' => ['lang' => 'DIR_NEW_TIME', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => true], |
|
190 | - 'dir_default_order' => ['lang' => 'DIR_DEFAULT_ORDER', 'validate' => 'string', 'type' => 'select', 'explain' => true, 'method' => 'get_order_list', 'params' => ['{CONFIG_VALUE}']], |
|
182 | + 'dir_mail' => ['lang' => 'DIR_MAIL_VALIDATION', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
183 | + 'dir_activ_checkurl' => ['lang' => 'DIR_ACTIVE_CHECK', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
184 | + 'dir_activ_flag' => ['lang' => 'DIR_ACTIV_FLAG', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
185 | + 'dir_activ_rss' => ['lang' => 'DIR_ACTIV_RSS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
186 | + 'dir_activ_pagerank' => ['lang' => 'DIR_ACTIV_PAGERANK', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
187 | + 'dir_show' => ['lang' => 'DIR_SHOW', 'validate' => 'int:1:9999', 'type' => 'number:1:9999', 'explain' => false], |
|
188 | + 'dir_length_describe' => ['lang' => 'DIR_MAX_DESC', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => false], |
|
189 | + 'dir_new_time' => ['lang' => 'DIR_NEW_TIME', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => true], |
|
190 | + 'dir_default_order' => ['lang' => 'DIR_DEFAULT_ORDER', 'validate' => 'string', 'type' => 'select', 'explain' => true, 'method' => 'get_order_list', 'params' => ['{CONFIG_VALUE}']], |
|
191 | 191 | |
192 | 192 | 'legend2' => 'DIR_RECENT_GUEST', |
193 | - 'dir_recent_block' => ['lang' => 'DIR_RECENT_ENABLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
194 | - 'dir_recent_rows' => ['lang' => 'DIR_RECENT_ROWS', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => false], |
|
195 | - 'dir_recent_columns' => ['lang' => 'DIR_RECENT_COLUMNS', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => false], |
|
196 | - 'dir_recent_exclude' => ['lang' => 'DIR_RECENT_EXCLUDE', 'validate' => 'string', 'type' => 'text:6:99', 'explain' => true], |
|
193 | + 'dir_recent_block' => ['lang' => 'DIR_RECENT_ENABLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
194 | + 'dir_recent_rows' => ['lang' => 'DIR_RECENT_ROWS', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => false], |
|
195 | + 'dir_recent_columns' => ['lang' => 'DIR_RECENT_COLUMNS', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => false], |
|
196 | + 'dir_recent_exclude' => ['lang' => 'DIR_RECENT_EXCLUDE', 'validate' => 'string', 'type' => 'text:6:99', 'explain' => true], |
|
197 | 197 | |
198 | 198 | 'legend3' => 'DIR_ADD_GUEST', |
199 | - 'dir_visual_confirm' => ['lang' => 'DIR_VISUAL_CONFIRM', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
200 | - 'dir_visual_confirm_max_attempts' => ['lang' => 'DIR_MAX_ADD_ATTEMPTS', 'validate' => 'int:0:9999', 'type' => 'number:0:9999', 'explain' => true], |
|
199 | + 'dir_visual_confirm' => ['lang' => 'DIR_VISUAL_CONFIRM', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
200 | + 'dir_visual_confirm_max_attempts' => ['lang' => 'DIR_MAX_ADD_ATTEMPTS', 'validate' => 'int:0:9999', 'type' => 'number:0:9999', 'explain' => true], |
|
201 | 201 | |
202 | 202 | 'legend4' => 'DIR_THUMB_PARAM', |
203 | - 'dir_activ_thumb' => ['lang' => 'DIR_ACTIVE_THUMB', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
204 | - 'dir_activ_thumb_remote' => ['lang' => 'DIR_ACTIVE_THUMB_REMOTE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
205 | - 'dir_thumb_service' => ['lang' => 'DIR_THUMB_SERVICE', 'validate' => 'string', 'type' => 'select', 'explain' => true, 'method' => 'get_thumb_service_list', 'params' => ['{CONFIG_VALUE}']], |
|
206 | - 'dir_thumb_service_reverse' => ['lang' => 'DIR_THUMB_SERVICE_REVERSE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
203 | + 'dir_activ_thumb' => ['lang' => 'DIR_ACTIVE_THUMB', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
204 | + 'dir_activ_thumb_remote' => ['lang' => 'DIR_ACTIVE_THUMB_REMOTE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
205 | + 'dir_thumb_service' => ['lang' => 'DIR_THUMB_SERVICE', 'validate' => 'string', 'type' => 'select', 'explain' => true, 'method' => 'get_thumb_service_list', 'params' => ['{CONFIG_VALUE}']], |
|
206 | + 'dir_thumb_service_reverse' => ['lang' => 'DIR_THUMB_SERVICE_REVERSE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
207 | 207 | |
208 | 208 | 'legend5' => 'DIR_COMM_PARAM', |
209 | - 'dir_allow_bbcode' => ['lang' => 'DIR_ALLOW_BBCODE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
210 | - 'dir_allow_flash' => ['lang' => 'DIR_ALLOW_FLASH', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
211 | - 'dir_allow_links' => ['lang' => 'DIR_ALLOW_LINKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
212 | - 'dir_allow_smilies' => ['lang' => 'DIR_ALLOW_SMILIES', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
213 | - 'dir_length_comments' => ['lang' => 'DIR_LENGTH_COMMENTS', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => true], |
|
214 | - 'dir_comments_per_page' => ['lang' => 'DIR_COMM_PER_PAGE', 'validate' => 'int:1:9999', 'type' => 'number:1:9999', 'explain' => false], |
|
209 | + 'dir_allow_bbcode' => ['lang' => 'DIR_ALLOW_BBCODE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
210 | + 'dir_allow_flash' => ['lang' => 'DIR_ALLOW_FLASH', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
211 | + 'dir_allow_links' => ['lang' => 'DIR_ALLOW_LINKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
212 | + 'dir_allow_smilies' => ['lang' => 'DIR_ALLOW_SMILIES', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
213 | + 'dir_length_comments' => ['lang' => 'DIR_LENGTH_COMMENTS', 'validate' => 'int:1:999', 'type' => 'number:1:999', 'explain' => true], |
|
214 | + 'dir_comments_per_page' => ['lang' => 'DIR_COMM_PER_PAGE', 'validate' => 'int:1:9999', 'type' => 'number:1:9999', 'explain' => false], |
|
215 | 215 | |
216 | 216 | 'legend6' => 'DIR_BANN_PARAM', |
217 | - 'dir_activ_banner' => ['lang' => 'DIR_ACTIV_BANNER', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
218 | - 'dir_banner' => ['lang' => 'DIR_MAX_BANN', 'validate' => 'int:0', 'type' => 'dimension:0', 'explain' => true, 'append' => ' '.$this->user->lang['PIXEL']], |
|
219 | - 'dir_banner_filesize' => ['lang' => 'DIR_MAX_SIZE', 'validate' => 'string', 'type' => 'custom', 'method' => 'max_filesize', 'explain' => true], |
|
220 | - 'dir_storage_banner' => ['lang' => 'DIR_STORAGE_BANNER', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
217 | + 'dir_activ_banner' => ['lang' => 'DIR_ACTIV_BANNER', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false], |
|
218 | + 'dir_banner' => ['lang' => 'DIR_MAX_BANN', 'validate' => 'int:0', 'type' => 'dimension:0', 'explain' => true, 'append' => ' '.$this->user->lang['PIXEL']], |
|
219 | + 'dir_banner_filesize' => ['lang' => 'DIR_MAX_SIZE', 'validate' => 'string', 'type' => 'custom', 'method' => 'max_filesize', 'explain' => true], |
|
220 | + 'dir_storage_banner' => ['lang' => 'DIR_STORAGE_BANNER', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true], |
|
221 | 221 | ], |
222 | 222 | ]; |
223 | 223 | } |
@@ -378,17 +378,17 @@ |
||
378 | 378 | 'site_name' => [ |
379 | 379 | ['string', false, 1, 100], ], |
380 | 380 | 'website' => [ |
381 | - ['string', false, 12, 255], |
|
382 | - ['match', true, '#^http[s]?://(.*?\.)*?[a-z0-9\-]+\.[a-z]{2,4}#i'], ], |
|
381 | + ['string', false, 12, 255], |
|
382 | + ['match', true, '#^http[s]?://(.*?\.)*?[a-z0-9\-]+\.[a-z]{2,4}#i'], ], |
|
383 | 383 | 'description' => [ |
384 | 384 | ['string', !$this->categorie->data['cat_must_describe'], 1, $this->config['dir_length_describe']], ], |
385 | 385 | 'rss' => [ |
386 | 386 | ['string', true, 12, 255], |
387 | - ['match', empty($this->rss), '#^http[s]?://(.*?\.)*?[a-z0-9\-]+\.[a-z]{2,4}#i'], ], |
|
387 | + ['match', empty($this->rss), '#^http[s]?://(.*?\.)*?[a-z0-9\-]+\.[a-z]{2,4}#i'], ], |
|
388 | 388 | 'banner' => [ |
389 | 389 | ['string', true, 5, 255], ], |
390 | 390 | 'back' => [ |
391 | - ['string', !$this->categorie->data['cat_link_back'], 12, 255], |
|
391 | + ['string', !$this->categorie->data['cat_link_back'], 12, 255], |
|
392 | 392 | [[$this->link, 'link_back'], true], ], |
393 | 393 | 'cat' => [ |
394 | 394 | ['num', '', 1], ], |
@@ -15,11 +15,11 @@ |
||
15 | 15 | 'filename' => '\ernadoo\phpbbdirectory\acp\phpbbdirectory_module', |
16 | 16 | 'title' => 'ACP_DIRECTORY', |
17 | 17 | 'modes' => [ |
18 | - '' => ['title' => 'ACP_DIRECTORY', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['']], |
|
19 | - 'main' => ['title' => 'ACP_DIRECTORY_MAIN', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
20 | - 'settings' => ['title' => 'ACP_DIRECTORY_SETTINGS', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
21 | - 'cat' => ['title' => 'ACP_DIRECTORY_CATS', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
22 | - 'val' => ['title' => 'ACP_DIRECTORY_VAL', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
18 | + '' => ['title' => 'ACP_DIRECTORY', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['']], |
|
19 | + 'main' => ['title' => 'ACP_DIRECTORY_MAIN', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
20 | + 'settings' => ['title' => 'ACP_DIRECTORY_SETTINGS', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
21 | + 'cat' => ['title' => 'ACP_DIRECTORY_CATS', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
22 | + 'val' => ['title' => 'ACP_DIRECTORY_VAL', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
23 | 23 | ], |
24 | 24 | ]; |
25 | 25 | } |
@@ -159,19 +159,19 @@ |
||
159 | 159 | $permissions = $event['permissions']; |
160 | 160 | |
161 | 161 | $permissions = array_merge($permissions, [ |
162 | - 'm_delete_dir' => ['lang' => 'ACL_M_DELETE_DIR', 'cat' => 'dir'], |
|
163 | - 'm_delete_comment_dir' => ['lang' => 'ACL_M_DELETE_COMMENT_DIR', 'cat' => 'dir'], |
|
164 | - 'm_edit_dir' => ['lang' => 'ACL_M_EDIT_DIR', 'cat' => 'dir'], |
|
165 | - 'm_edit_comment_dir' => ['lang' => 'ACL_M_EDIT_COMMENT_DIR', 'cat' => 'dir'], |
|
166 | - |
|
167 | - 'u_comment_dir' => ['lang' => 'ACL_U_COMMENT_DIR', 'cat' => 'dir'], |
|
168 | - 'u_delete_dir' => ['lang' => 'ACL_U_DELETE_DIR', 'cat' => 'dir'], |
|
169 | - 'u_delete_comment_dir' => ['lang' => 'ACL_U_DELETE_COMMENT_DIR', 'cat' => 'dir'], |
|
170 | - 'u_edit_dir' => ['lang' => 'ACL_U_EDIT_DIR', 'cat' => 'dir'], |
|
171 | - 'u_edit_comment_dir' => ['lang' => 'ACL_U_EDIT_COMMENT_DIR', 'cat' => 'dir'], |
|
172 | - 'u_search_dir' => ['lang' => 'ACL_U_SEARCH_DIR', 'cat' => 'dir'], |
|
173 | - 'u_submit_dir' => ['lang' => 'ACL_U_SUBMIT_DIR', 'cat' => 'dir'], |
|
174 | - 'u_vote_dir' => ['lang' => 'ACL_U_VOTE_DIR', 'cat' => 'dir'], |
|
162 | + 'm_delete_dir' => ['lang' => 'ACL_M_DELETE_DIR', 'cat' => 'dir'], |
|
163 | + 'm_delete_comment_dir' => ['lang' => 'ACL_M_DELETE_COMMENT_DIR', 'cat' => 'dir'], |
|
164 | + 'm_edit_dir' => ['lang' => 'ACL_M_EDIT_DIR', 'cat' => 'dir'], |
|
165 | + 'm_edit_comment_dir' => ['lang' => 'ACL_M_EDIT_COMMENT_DIR', 'cat' => 'dir'], |
|
166 | + |
|
167 | + 'u_comment_dir' => ['lang' => 'ACL_U_COMMENT_DIR', 'cat' => 'dir'], |
|
168 | + 'u_delete_dir' => ['lang' => 'ACL_U_DELETE_DIR', 'cat' => 'dir'], |
|
169 | + 'u_delete_comment_dir' => ['lang' => 'ACL_U_DELETE_COMMENT_DIR', 'cat' => 'dir'], |
|
170 | + 'u_edit_dir' => ['lang' => 'ACL_U_EDIT_DIR', 'cat' => 'dir'], |
|
171 | + 'u_edit_comment_dir' => ['lang' => 'ACL_U_EDIT_COMMENT_DIR', 'cat' => 'dir'], |
|
172 | + 'u_search_dir' => ['lang' => 'ACL_U_SEARCH_DIR', 'cat' => 'dir'], |
|
173 | + 'u_submit_dir' => ['lang' => 'ACL_U_SUBMIT_DIR', 'cat' => 'dir'], |
|
174 | + 'u_vote_dir' => ['lang' => 'ACL_U_VOTE_DIR', 'cat' => 'dir'], |
|
175 | 175 | ]); |
176 | 176 | |
177 | 177 | $event['permissions'] = $permissions; |