mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
* Missing image in imageset editing
* Sort the list of images * Enforce default username limits on install git-svn-id: file:///svn/phpbb/trunk@6196 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
191a21d461
commit
d20997f5bc
4 changed files with 22 additions and 2 deletions
|
@ -1279,7 +1279,7 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
|||
'forums' => array(
|
||||
'forum', 'forum_new', 'forum_locked', 'forum_link', 'sub_forum', 'sub_forum_new',),
|
||||
'folders' => array(
|
||||
'folder', 'folder_posted', 'folder_new', 'folder_new_posted', 'folder_hot', 'folder_hot_posted', 'folder_hot_new', 'folder_hot_new_posted', 'folder_locked', 'folder_locked_posted', 'folder_locked_new', 'folder_locked_new_posted', 'folder_locked_announce', 'folder_locked_announce_new', 'folder_locked_announce_posted', 'folder_locked_announce_new_posted', 'folder_locked_global', 'folder_locked_global_new', 'folder_locked_global_posted', 'folder_locked_global_new_posted', 'folder_locked_sticky', 'folder_locked_sticky_new', 'folder_locked_sticky_posted', 'folder_locked_sticky_new_posted', 'folder_sticky', 'folder_sticky_posted', 'folder_sticky_new', 'folder_sticky_new_posted', 'folder_announce', 'folder_announce_posted', 'folder_announce_new', 'folder_announce_new_posted', 'folder_global', 'folder_global_posted', 'folder_global_new', 'folder_global_new_posted',),
|
||||
'folder', 'folder_moved', 'folder_posted', 'folder_new', 'folder_new_posted', 'folder_hot', 'folder_hot_posted', 'folder_hot_new', 'folder_hot_new_posted', 'folder_locked', 'folder_locked_posted', 'folder_locked_new', 'folder_locked_new_posted', 'folder_locked_announce', 'folder_locked_announce_new', 'folder_locked_announce_posted', 'folder_locked_announce_new_posted', 'folder_locked_global', 'folder_locked_global_new', 'folder_locked_global_posted', 'folder_locked_global_new_posted', 'folder_locked_sticky', 'folder_locked_sticky_new', 'folder_locked_sticky_posted', 'folder_locked_sticky_new_posted', 'folder_sticky', 'folder_sticky_posted', 'folder_sticky_new', 'folder_sticky_new_posted', 'folder_announce', 'folder_announce_posted', 'folder_announce_new', 'folder_announce_new_posted', 'folder_global', 'folder_global_posted', 'folder_global_new', 'folder_global_new_posted',),
|
||||
'polls' => array(
|
||||
'poll_left', 'poll_center', 'poll_right',),
|
||||
);
|
||||
|
@ -1372,6 +1372,10 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
|||
}
|
||||
closedir($dp);
|
||||
|
||||
// Make sure the list of possible images is sorted alphabetically
|
||||
sort($imagesetlist['nolang']);
|
||||
sort($imagesetlist['lang']);
|
||||
|
||||
$imagesetlist_options = '';
|
||||
foreach ($imagesetlist as $type => $img_ary)
|
||||
{
|
||||
|
|
|
@ -558,6 +558,17 @@ class install_install extends module
|
|||
$error[] = $lang['INST_ERR_PASSWORD_MISMATCH'];
|
||||
}
|
||||
|
||||
// Test against the default username rules
|
||||
if ($admin_name != '' && strlen($admin_name) < 3)
|
||||
{
|
||||
$error[] = $lang['INST_ERR_USER_TOO_SHORT'];
|
||||
}
|
||||
|
||||
if ($admin_name != '' && strlen($admin_name) > 20)
|
||||
{
|
||||
$error[] = $lang['INST_ERR_USER_TOO_LONG'];
|
||||
}
|
||||
|
||||
// Test against the default password rules
|
||||
if ($admin_pass1 != '' && strlen($admin_pass1) < 6)
|
||||
{
|
||||
|
@ -1812,7 +1823,7 @@ class install_install extends module
|
|||
var $admin_config_options = array(
|
||||
'legend1' => 'ADMIN_CONFIG',
|
||||
'language' => array('lang' => 'DEFAULT_LANG', 'type' => 'select', 'options' => '$this->module->inst_language_select(\'{VALUE}\')', 'explain' => false),
|
||||
'admin_name' => array('lang' => 'ADMIN_USERNAME', 'type' => 'text:25:100', 'explain' => false),
|
||||
'admin_name' => array('lang' => 'ADMIN_USERNAME', 'type' => 'text:25:100', 'explain' => true),
|
||||
'admin_pass1' => array('lang' => 'ADMIN_PASSWORD', 'type' => 'password:25:100', 'explain' => true),
|
||||
'admin_pass2' => array('lang' => 'ADMIN_PASSWORD_CONFIRM', 'type' => 'password:25:100', 'explain' => false),
|
||||
'board_email1' => array('lang' => 'CONTACT_EMAIL', 'type' => 'text:25:100', 'explain' => false),
|
||||
|
|
|
@ -198,6 +198,7 @@ $lang = array_merge($lang, array(
|
|||
'IMG_FOLDER_LOCKED_STICKY_POSTED' => 'Sticky topic locked posted to',
|
||||
'IMG_FOLDER_LOCKED_STICKY_NEW' => 'Sticky topic locked new posts',
|
||||
'IMG_FOLDER_LOCKED_STICKY_NEW_POSTED' => 'Sticky topic locked posted to new',
|
||||
'IMG_FOLDER_MOVED' => 'Topic moved',
|
||||
'IMG_FOLDER_NEW' => 'Topic new posts',
|
||||
'IMG_FOLDER_NEW_POSTED' => 'Topic posted to new',
|
||||
'IMG_FOLDER_POSTED' => 'Topic posted to',
|
||||
|
|
|
@ -35,6 +35,7 @@ $lang = array_merge($lang, array(
|
|||
'ADMIN_PASSWORD_EXPLAIN' => '(Please enter a password between 6 and 30 characters is length)',
|
||||
'ADMIN_TEST' => 'Check administrator settings',
|
||||
'ADMIN_USERNAME' => 'Administrator username',
|
||||
'ADMIN_USERNAME_EXPLAIN' => '(Please enter a password between 3 and 20 characters is length)',
|
||||
'APP_MAGICK' => 'Imagemagick support [ Attachments ]',
|
||||
'AUTHOR_NOTES' => 'Author Notes<br />» %s',
|
||||
'AVAILABLE' => 'Available',
|
||||
|
@ -168,6 +169,9 @@ $lang = array_merge($lang, array(
|
|||
'INST_ERR_PASSWORD_TOO_LONG' => 'The password you entered is too long. The maximum length is 30 characters.',
|
||||
'INST_ERR_PASSWORD_TOO_SHORT' => 'The password you entered is too short. The minimum length is 6 characters.',
|
||||
'INST_ERR_PREFIX' => 'Tables with the specified prefix already exist, please choose an alternative.',
|
||||
'INST_ERR_PREFIX_TOO_LONG' => 'The table prefix you have specified is too long. The maximum length is %d characters.',
|
||||
'INST_ERR_USER_TOO_LONG' => 'The username you entered is too long. The maximum length is 20 characters.',
|
||||
'INST_ERR_USER_TOO_SHORT' => 'The username you entered is too short. The minimum length is 3 characters.',
|
||||
'INVALID_PRIMARY_KEY' => 'Invalid primary key : %s',
|
||||
|
||||
'MAKE_FOLDER_WRITABLE' => 'Please make sure that this folder exists and is writable by the webserver then try again:<br />»<b>%s</b>',
|
||||
|
|
Loading…
Add table
Reference in a new issue