diff options
Diffstat (limited to 'phpBB/includes/acp')
| -rw-r--r-- | phpBB/includes/acp/acp_extensions.php | 9 | ||||
| -rw-r--r-- | phpBB/includes/acp/acp_jabber.php | 25 | 
2 files changed, 26 insertions, 8 deletions
| diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php index 9e72ab83f8..f0348817c8 100644 --- a/phpBB/includes/acp/acp_extensions.php +++ b/phpBB/includes/acp/acp_extensions.php @@ -212,6 +212,15 @@ class acp_extensions  							meta_refresh(0, $this->u_action . '&action=enable&ext_name=' . urlencode($ext_name) . '&hash=' . generate_link_hash('enable.' . $ext_name));  						}  					} + +					// Update custom style for admin area +					$this->template->set_custom_style(array( +						array( +							'name' 		=> 'adm', +							'ext_path' 	=> 'adm/style/', +						), +					), array($phpbb_root_path . 'adm/style')); +  					$this->log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_EXT_ENABLE', time(), array($ext_name));  				}  				catch (\phpbb\db\migration\exception $e) diff --git a/phpBB/includes/acp/acp_jabber.php b/phpBB/includes/acp/acp_jabber.php index a482b41e1d..3b958c0ea1 100644 --- a/phpBB/includes/acp/acp_jabber.php +++ b/phpBB/includes/acp/acp_jabber.php @@ -50,13 +50,16 @@ class acp_jabber  		$this->tpl_name = 'acp_jabber';  		$this->page_title = 'ACP_JABBER_SETTINGS'; -		$jab_enable			= request_var('jab_enable',			(bool) $config['jab_enable']); -		$jab_host			= request_var('jab_host',			(string) $config['jab_host']); -		$jab_port			= request_var('jab_port',			(int) $config['jab_port']); -		$jab_username		= request_var('jab_username',		(string) $config['jab_username']); -		$jab_password		= request_var('jab_password',		(string) $config['jab_password']); -		$jab_package_size	= request_var('jab_package_size',	(int) $config['jab_package_size']); -		$jab_use_ssl		= request_var('jab_use_ssl',		(bool) $config['jab_use_ssl']); +		$jab_enable				= request_var('jab_enable',				(bool) $config['jab_enable']); +		$jab_host				= request_var('jab_host',				(string) $config['jab_host']); +		$jab_port				= request_var('jab_port',				(int) $config['jab_port']); +		$jab_username			= request_var('jab_username',			(string) $config['jab_username']); +		$jab_password			= request_var('jab_password',			(string) $config['jab_password']); +		$jab_package_size		= request_var('jab_package_size',		(int) $config['jab_package_size']); +		$jab_use_ssl			= request_var('jab_use_ssl',			(bool) $config['jab_use_ssl']); +		$jab_verify_peer		= request_var('jab_verify_peer',		(bool) $config['jab_verify_peer']); +		$jab_verify_peer_name	= request_var('jab_verify_peer_name',	(bool) $config['jab_verify_peer_name']); +		$jab_allow_self_signed	= request_var('jab_allow_self_signed',	(bool) $config['jab_allow_self_signed']);  		$form_name = 'acp_jabber';  		add_form_key($form_name); @@ -76,7 +79,7 @@ class acp_jabber  			// Is this feature enabled? Then try to establish a connection  			if ($jab_enable)  			{ -				$jabber = new jabber($jab_host, $jab_port, $jab_username, $jab_password, $jab_use_ssl); +				$jabber = new jabber($jab_host, $jab_port, $jab_username, $jab_password, $jab_use_ssl, $jab_verify_peer, $jab_verify_peer_name, $jab_allow_self_signed);  				if (!$jabber->connect())  				{ @@ -116,6 +119,9 @@ class acp_jabber  			}  			set_config('jab_package_size', $jab_package_size);  			set_config('jab_use_ssl', $jab_use_ssl); +			set_config('jab_verify_peer', $jab_verify_peer); +			set_config('jab_verify_peer_name', $jab_verify_peer_name); +			set_config('jab_allow_self_signed', $jab_allow_self_signed);  			add_log('admin', 'LOG_' . $log);  			trigger_error($message . adm_back_link($this->u_action)); @@ -131,6 +137,9 @@ class acp_jabber  			'JAB_PASSWORD'			=> $jab_password !== '' ? '********' : '',  			'JAB_PACKAGE_SIZE'		=> $jab_package_size,  			'JAB_USE_SSL'			=> $jab_use_ssl, +			'JAB_VERIFY_PEER'		=> $jab_verify_peer, +			'JAB_VERIFY_PEER_NAME'	=> $jab_verify_peer_name, +			'JAB_ALLOW_SELF_SIGNED'	=> $jab_allow_self_signed,  			'S_CAN_USE_SSL'			=> jabber::can_use_ssl(),  			'S_GTALK_NOTE'			=> (!@function_exists('dns_get_record')) ? true : false,  		)); | 
