Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
ucp_confirm
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 main
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3*
4* This file is part of the phpBB Forum Software package.
5*
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
7* @license GNU General Public License, version 2 (GPL-2.0)
8*
9* For full copyright and license information, please see
10* the docs/CREDITS.txt file.
11*
12*/
13
14/**
15* @ignore
16*/
17if (!defined('IN_PHPBB'))
18{
19    exit;
20}
21
22/**
23* ucp_confirm
24* Visual confirmation
25*
26* Note to potential users of this code ...
27*
28* Remember this is released under the _GPL_ and is subject
29* to that licence. Do not incorporate this within software
30* released or distributed in any way under a licence other
31* than the GPL. We will be watching ... ;)
32*/
33class ucp_confirm
34{
35    var $u_action;
36
37    function main($id, $mode)
38    {
39        global $config, $phpbb_container, $request;
40
41        $captcha = $phpbb_container->get('captcha.factory')->get_instance($config['captcha_plugin']);
42        $captcha->init($request->variable('type', 0));
43        $captcha->execute();
44
45        garbage_collection();
46        exit_handler();
47    }
48}