aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/module
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2016-05-15 10:17:01 +0200
committerTristan Darricau <github@nicofuma.fr>2016-05-15 10:17:01 +0200
commit40a00bd4e550c449612d56acf75ceec3a5df7bc3 (patch)
tree018351f6b892a0ec6bfd43fd0e0a4cf0fb6f9350 /phpBB/phpbb/install/module
parent961ffee6844b44b306fa1fb1f6e2a0e958638896 (diff)
parent9c34594bc374eeeca5d79afe2d3fdffae0cd1553 (diff)
downloadforums-40a00bd4e550c449612d56acf75ceec3a5df7bc3.tar
forums-40a00bd4e550c449612d56acf75ceec3a5df7bc3.tar.gz
forums-40a00bd4e550c449612d56acf75ceec3a5df7bc3.tar.bz2
forums-40a00bd4e550c449612d56acf75ceec3a5df7bc3.tar.xz
forums-40a00bd4e550c449612d56acf75ceec3a5df7bc3.zip
Merge pull request #4319 from derekheld/ticket/14595
[ticket/14595] Installer will now ask for a SMTP port as part of email setup. * derekheld/ticket/14595: [ticket/14595] Added smtp_port where places where smtp_host exists. PHPBB3-14595 [ticket/14595] Added SMTP port to getConfigTreeBuilder PHPBB3-14595
Diffstat (limited to 'phpBB/phpbb/install/module')
-rw-r--r--phpBB/phpbb/install/module/install_database/task/add_config_settings.php4
-rw-r--r--phpBB/phpbb/install/module/obtain_data/task/obtain_email_data.php7
2 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/phpbb/install/module/install_database/task/add_config_settings.php b/phpBB/phpbb/install/module/install_database/task/add_config_settings.php
index 7a2df01de6..8002e3ed97 100644
--- a/phpBB/phpbb/install/module/install_database/task/add_config_settings.php
+++ b/phpBB/phpbb/install/module/install_database/task/add_config_settings.php
@@ -191,6 +191,10 @@ class add_config_settings extends \phpbb\install\task_base
WHERE config_name = 'smtp_host'",
'UPDATE ' . $this->config_table . "
+ SET config_value = '" . $this->db->sql_escape($this->install_config->get('smtp_port')) . "'
+ WHERE config_name = 'smtp_port'",
+
+ 'UPDATE ' . $this->config_table . "
SET config_value = '" . $this->db->sql_escape($this->install_config->get('smtp_auth')) . "'
WHERE config_name = 'smtp_auth_method'",
diff --git a/phpBB/phpbb/install/module/obtain_data/task/obtain_email_data.php b/phpBB/phpbb/install/module/obtain_data/task/obtain_email_data.php
index 606e4a2ddd..1cb4f04297 100644
--- a/phpBB/phpbb/install/module/obtain_data/task/obtain_email_data.php
+++ b/phpBB/phpbb/install/module/obtain_data/task/obtain_email_data.php
@@ -51,6 +51,7 @@ class obtain_email_data extends \phpbb\install\task_base implements \phpbb\insta
$email_enable = $this->io_handler->get_input('email_enable', true);
$smtp_delivery = $this->io_handler->get_input('smtp_delivery', '');
$smtp_host = $this->io_handler->get_input('smtp_host', '');
+ $smtp_port = $this->io_handler->get_input('smtp_port', '');
$smtp_auth = $this->io_handler->get_input('smtp_auth', '');
$smtp_user = $this->io_handler->get_input('smtp_user', '');
$smtp_passwd = $this->io_handler->get_input('smtp_pass', '');
@@ -63,6 +64,7 @@ class obtain_email_data extends \phpbb\install\task_base implements \phpbb\insta
$this->install_config->set('email_enable', $email_enable);
$this->install_config->set('smtp_delivery', $smtp_delivery);
$this->install_config->set('smtp_host', $smtp_host);
+ $this->install_config->set('smtp_port', $smtp_port);
$this->install_config->set('smtp_auth', $smtp_auth);
$this->install_config->set('smtp_user', $smtp_user);
$this->install_config->set('smtp_pass', $smtp_passwd);
@@ -119,6 +121,11 @@ class obtain_email_data extends \phpbb\install\task_base implements \phpbb\insta
'type' => 'text',
'default' => $smtp_host,
),
+ 'smtp_port' => array(
+ 'label' => 'SMTP_PORT',
+ 'type' => 'text',
+ 'default' => $smtp_port,
+ ),
'smtp_auth' => array(
'label' => 'SMTP_AUTH_METHOD',
'description' => 'SMTP_AUTH_METHOD_EXPLAIN',