Line 42 | Line 42 |
---|
function main($id, $mode) {
|
function main($id, $mode) {
|
global $db, $user, $auth, $template, $cache, $phpbb_container;
| global $db, $user, $auth, $template, $cache, $phpbb_container, $phpbb_dispatcher;
|
global $config, $phpbb_admin_path, $phpbb_root_path, $phpEx;
$this->id = $id;
| global $config, $phpbb_admin_path, $phpbb_root_path, $phpEx;
$this->id = $id;
|
Line 106 | Line 106 |
---|
{ case 'attach':
|
{ case 'attach':
|
include_once($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
| if (!function_exists('get_supported_image_types')) { include($phpbb_root_path . 'includes/functions_posting.' . $phpEx); }
|
$sql = 'SELECT group_name, cat_id FROM ' . EXTENSION_GROUPS_TABLE . '
| $sql = 'SELECT group_name, cat_id FROM ' . EXTENSION_GROUPS_TABLE . '
|
Line 153 | Line 156 |
---|
'img_create_thumbnail' => array('lang' => 'CREATE_THUMBNAIL', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'img_max_thumb_width' => array('lang' => 'MAX_THUMB_WIDTH', 'validate' => 'int:0:999999999999999', 'type' => 'number:0:999999999999999', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']), 'img_min_thumb_filesize' => array('lang' => 'MIN_THUMB_FILESIZE', 'validate' => 'int:0:999999999999999', 'type' => 'number:0:999999999999999', 'explain' => true, 'append' => ' ' . $user->lang['BYTES']),
|
'img_create_thumbnail' => array('lang' => 'CREATE_THUMBNAIL', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'img_max_thumb_width' => array('lang' => 'MAX_THUMB_WIDTH', 'validate' => 'int:0:999999999999999', 'type' => 'number:0:999999999999999', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']), 'img_min_thumb_filesize' => array('lang' => 'MIN_THUMB_FILESIZE', 'validate' => 'int:0:999999999999999', 'type' => 'number:0:999999999999999', 'explain' => true, 'append' => ' ' . $user->lang['BYTES']),
|
'img_imagick' => array('lang' => 'IMAGICK_PATH', 'validate' => 'path', 'type' => 'text:20:200', 'explain' => true, 'append' => ' <span>[ <a href="' . $this->u_action . '&action=imgmagick">' . $user->lang['SEARCH_IMAGICK'] . '</a> ]</span>'),
| 'img_imagick' => array('lang' => 'IMAGICK_PATH', 'validate' => 'absolute_path', 'type' => 'text:20:200', 'explain' => true, 'append' => ' <span>[ <a href="' . $this->u_action . '&action=imgmagick">' . $user->lang['SEARCH_IMAGICK'] . '</a> ]</span>'),
|
'img_max' => array('lang' => 'MAX_IMAGE_SIZE', 'validate' => 'int:0:9999', 'type' => 'dimension:0:9999', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']), 'img_link' => array('lang' => 'IMAGE_LINK_SIZE', 'validate' => 'int:0:9999', 'type' => 'dimension:0:9999', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']), ) );
|
'img_max' => array('lang' => 'MAX_IMAGE_SIZE', 'validate' => 'int:0:9999', 'type' => 'dimension:0:9999', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']), 'img_link' => array('lang' => 'IMAGE_LINK_SIZE', 'validate' => 'int:0:9999', 'type' => 'dimension:0:9999', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']), ) );
|
| /** * Event to add and/or modify acp_attachement configurations * * @event core.acp_attachments_config_edit_add * @var array display_vars Array of config values to display and process * @var string mode Mode of the config page we are displaying * @var boolean submit Do we display the form or process the submission * @since 3.1.11-RC1 */ $vars = array('display_vars', 'mode', 'submit'); extract($phpbb_dispatcher->trigger_event('core.acp_attachments_config_edit_add', compact($vars)));
|
$this->new_config = $config; $cfg_array = (isset($_REQUEST['config'])) ? request_var('config', array('' => '')) : $this->new_config;
| $this->new_config = $config; $cfg_array = (isset($_REQUEST['config'])) ? request_var('config', array('' => '')) : $this->new_config;
|
Line 1423 | Line 1438 |
---|
$row['group_name'] = $user->lang['NOT_ASSIGNED']; $group_name[] = $row;
|
$row['group_name'] = $user->lang['NOT_ASSIGNED']; $group_name[] = $row;
|
for ($i = 0; $i < sizeof($group_name); $i++)
| for ($i = 0, $groups_size = sizeof($group_name); $i < $groups_size; $i++)
|
{ if ($default_group === false) {
| { if ($default_group === false) {
|
Line 1732 | Line 1747 |
---|
$size_var = $filesize['si_identifier']; $value = $filesize['value'];
|
$size_var = $filesize['si_identifier']; $value = $filesize['value'];
|
// size="8" and maxlength="15" attributes as a fallback for browsers that do not support type="number" yet. return '<input type="number" id="' . $key . '" size="8" maxlength="15" min="0" name="config[' . $key . ']" value="' . $value . '" /> <select name="' . $key . '">' . size_select_options($size_var) . '</select>';
| // size and maxlength must not be specified for input of type number return '<input type="number" id="' . $key . '" min="0" max="999999999999999" step="any" name="config[' . $key . ']" value="' . $value . '" /> <select name="' . $key . '">' . size_select_options($size_var) . '</select>';
|
}
/**
| }
/**
|