mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/16329] Add configuration options for Plupload
PHPBB3-16329 PHPBB3-16330
This commit is contained in:
parent
1f22248965
commit
c927c31391
3 changed files with 6 additions and 6 deletions
|
@ -156,7 +156,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_max_thumb_widt
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_max_width', '0');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_max_width', '0');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_min_thumb_filesize', '12000');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_min_thumb_filesize', '12000');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_quality', '85');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_quality', '85');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_strip_metadata', '1');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_strip_metadata', '0');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ip_check', '3');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ip_check', '3');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ip_login_limit_max', '50');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ip_login_limit_max', '50');
|
||||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ip_login_limit_time', '21600');
|
INSERT INTO phpbb_config (config_name, config_value) VALUES ('ip_login_limit_time', '21600');
|
||||||
|
|
|
@ -112,9 +112,9 @@ $lang = array_merge($lang, array(
|
||||||
'IMAGE_LINK_SIZE' => 'Image link dimensions',
|
'IMAGE_LINK_SIZE' => 'Image link dimensions',
|
||||||
'IMAGE_LINK_SIZE_EXPLAIN' => 'Display image attachment as an inline text link if image is larger than this. To disable this behaviour, set the values to 0px by 0px.',
|
'IMAGE_LINK_SIZE_EXPLAIN' => 'Display image attachment as an inline text link if image is larger than this. To disable this behaviour, set the values to 0px by 0px.',
|
||||||
'IMAGE_QUALITY' => 'Quality of uploaded image attachments (JPEG only)',
|
'IMAGE_QUALITY' => 'Quality of uploaded image attachments (JPEG only)',
|
||||||
'IMAGE_QUALITY_EXPLAIN' => 'Specify value between 50% (smaller file size) and 90% (higher quality). Quality higher than 90% increases filesize and is disabled. Setting only applies if max image dimensions set to value other than 0px by 0px.',
|
'IMAGE_QUALITY_EXPLAIN' => 'Specify value between 50% (smaller file size) and 90% (higher quality). Quality higher than 90% increases filesize and is disabled. Setting only applies if maximum image dimensions are set to a value other than 0px by 0px.',
|
||||||
'IMAGE_STRIP_METADATA' => 'Strip image metadata (JPEG only)',
|
'IMAGE_STRIP_METADATA' => 'Strip image metadata (JPEG only)',
|
||||||
'IMAGE_STRIP_METADATA_EXPLAIN' => 'Strip Exif metadata eg author name, GPS coordinates & camera details. Setting only applies if max image dimensions set to value other than 0px by 0px.',
|
'IMAGE_STRIP_METADATA_EXPLAIN' => 'Strip Exif metadata, e.g. author name, GPS coordinates and camera details. Setting only applies if maximum image dimensions are set to a value other than 0px by 0px.',
|
||||||
|
|
||||||
'MAX_ATTACHMENTS' => 'Maximum number of attachments per post',
|
'MAX_ATTACHMENTS' => 'Maximum number of attachments per post',
|
||||||
'MAX_ATTACHMENTS_PM' => 'Maximum number of attachments per private message',
|
'MAX_ATTACHMENTS_PM' => 'Maximum number of attachments per private message',
|
||||||
|
|
|
@ -13,18 +13,18 @@
|
||||||
|
|
||||||
namespace phpbb\db\migration\data\v32x;
|
namespace phpbb\db\migration\data\v32x;
|
||||||
|
|
||||||
class enable_plupload_config extends \phpbb\db\migration\migration
|
class add_plupload_config extends \phpbb\db\migration\migration
|
||||||
{
|
{
|
||||||
static public function depends_on()
|
static public function depends_on()
|
||||||
{
|
{
|
||||||
return ['\phpbb\db\migration\data\v32x\v329',];
|
return ['\phpbb\db\migration\data\v32x\v329'];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update_data()
|
public function update_data()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
['config.add', ['img_quality', '85']],
|
['config.add', ['img_quality', '85']],
|
||||||
['config.add', ['img_strip_metadata', '1']],
|
['config.add', ['img_strip_metadata', '0']],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue