1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 09:46:46 +02:00

[feature/request-class] Removal of direct access to some superglobals

PHPBB3-9716
This commit is contained in:
Igor Wiedler
2010-08-31 21:29:11 +02:00
committed by Nils Adermann
parent 456de63912
commit 204ee4714b
2 changed files with 7 additions and 11 deletions

View File

@@ -2698,22 +2698,14 @@ function check_form_key($form_name, $timespan = false, $return_page = '', $trigg
function confirm_box($check, $title = '', $hidden = '', $html_body = 'confirm_body.html', $u_action = '')
{
global $user, $template, $db;
global $phpEx, $phpbb_root_path;
global $phpEx, $phpbb_root_path, $request;
if (isset($_POST['cancel']))
{
return false;
}
$confirm = false;
if (isset($_POST['confirm']))
{
// language frontier
if ($_POST['confirm'] === $user->lang['YES'])
{
$confirm = true;
}
}
$confirm = ($user->lang['YES'] === $request->variable('confirm', '', true, phpbb_request_interface::POST));
if ($check && $confirm)
{