diff options
Diffstat (limited to 'phpBB/includes/acp/acp_captcha.php')
| -rw-r--r-- | phpBB/includes/acp/acp_captcha.php | 19 | 
1 files changed, 10 insertions, 9 deletions
| diff --git a/phpBB/includes/acp/acp_captcha.php b/phpBB/includes/acp/acp_captcha.php index 92d5e1dda6..b49c5ca0d3 100644 --- a/phpBB/includes/acp/acp_captcha.php +++ b/phpBB/includes/acp/acp_captcha.php @@ -25,17 +25,18 @@ class acp_captcha  	function main($id, $mode)  	{ -		global $request, $user, $auth, $template; -		global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx, $phpbb_container; +		global $user, $template, $phpbb_log, $request; +		global $config, $phpbb_container;  		$user->add_lang('acp/board'); +		/* @var $factory \phpbb\captcha\factory */  		$factory = $phpbb_container->get('captcha.factory');  		$captchas = $factory->get_captcha_types(); -		$selected = request_var('select_captcha', $config['captcha_plugin']); +		$selected = $request->variable('select_captcha', $config['captcha_plugin']);  		$selected = (isset($captchas['available'][$selected]) || isset($captchas['unavailable'][$selected])) ? $selected : $config['captcha_plugin']; -		$configure = request_var('configure', false); +		$configure = $request->variable('configure', false);  		// Oh, they are just here for the view  		if (isset($_GET['captcha_demo'])) @@ -89,7 +90,7 @@ class acp_captcha  			$form_key = 'acp_captcha';  			add_form_key($form_key); -			$submit = request_var('main_submit', false); +			$submit = $request->variable('main_submit', false);  			$error = $cfg_array = array();  			if ($submit) @@ -125,11 +126,11 @@ class acp_captcha  						$old_captcha = $factory->get_instance($config['captcha_plugin']);  						$old_captcha->uninstall(); -						set_config('captcha_plugin', $selected); +						$config->set('captcha_plugin', $selected);  						$new_captcha = $factory->get_instance($config['captcha_plugin']);  						$new_captcha->install(); -						add_log('admin', 'LOG_CONFIG_VISUAL'); +						$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_CONFIG_VISUAL');  					}  					else  					{ @@ -157,7 +158,7 @@ class acp_captcha  				foreach ($config_vars as $config_var => $options)  				{ -					$template->assign_var($options['tpl'], (isset($_POST[$config_var])) ? request_var($config_var, $options['default']) : $config[$config_var]) ; +					$template->assign_var($options['tpl'], (isset($_POST[$config_var])) ? $request->variable($config_var, $options['default']) : $config[$config_var]) ;  				}  				$template->assign_vars(array( @@ -177,7 +178,7 @@ class acp_captcha  	*/  	function deliver_demo($selected)  	{ -		global $db, $user, $config, $phpbb_container; +		global $phpbb_container;  		$captcha = $phpbb_container->get('captcha.factory')->get_instance($selected);  		$captcha->init(CONFIRM_REG); | 
