[ Index ] |
PHP Cross Reference of phpBB 3.0 Beta 3 |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * 4 * @package VC 5 * @version $Id: ucp_confirm.php,v 1.25 2006/11/03 23:09:15 davidmj Exp $ 6 * @copyright (c) 2005 phpBB Group 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 8 * 9 */ 10 11 /** 12 * ucp_confirm 13 * Visual confirmation 14 * 15 * Note to potential users of this code ... 16 * 17 * Remember this is released under the _GPL_ and is subject 18 * to that licence. Do not incorporate this within software 19 * released or distributed in any way under a licence other 20 * than the GPL. We will be watching ... ;) 21 * 22 * @package VC 23 */ 24 class ucp_confirm 25 { 26 var $u_action; 27 28 function main($id, $mode) 29 { 30 global $db, $user, $phpbb_root_path, $config, $phpEx; 31 32 // Do we have an id? No, then just exit 33 $confirm_id = request_var('id', ''); 34 $type = request_var('type', 0); 35 36 if (!$confirm_id || !$type) 37 { 38 exit; 39 } 40 41 // Try and grab code for this id and session 42 $sql = 'SELECT code 43 FROM ' . CONFIRM_TABLE . " 44 WHERE session_id = '" . $db->sql_escape($user->session_id) . "' 45 AND confirm_id = '" . $db->sql_escape($confirm_id) . "' 46 AND confirm_type = $type"; 47 $result = $db->sql_query($sql); 48 $row = $db->sql_fetchrow($result); 49 $db->sql_freeresult($result); 50 51 // If we have a row then grab data else create a new id 52 if (!$row) 53 { 54 exit; 55 } 56 57 if ($config['captcha_gd']) 58 { 59 include($phpbb_root_path . 'includes/captcha/captcha_gd.' . $phpEx); 60 } 61 else 62 { 63 include($phpbb_root_path . 'includes/captcha/captcha_non_gd.' . $phpEx); 64 } 65 66 $captcha = new captcha(); 67 $captcha->execute($row['code']); 68 exit; 69 } 70 } 71 72 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Nov 22 00:35:05 2006 | Cross-referenced by PHPXref 0.6 |