##############################################################
## MOD Title: Math Question During Registration...
## MOD Author: thesamet < N/A > (N/A) http://www.thesamet.com/blog/2006/12/21/fighting-spam-on-phpbb-forums/
## MOD Description: This will add a math question to the Registration to another
## 	   				attempt to block spam registrations...
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 1 Minute
## Files To Edit: 2
## 		 		  includes/usercp_register.php
##				  templates/subSilver/profile_add_body.tpl
##
## Included Files: 0
##
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
## MOD History: 
## 
##    Jan 9, 2006
##      - First (and likely to be last) release
## 
############################################################## 
#
#-----[ OPEN ]---------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]---------------------------------------------
#
}
if ($board_config['enable_confirm'] && $mode == 'register')
#
#-----[ BEFORE, ADD ]--------------------------------------
#
        if (!isset($_POST['math_question']) || $_POST['math_question'] != '7') {
            $error = TRUE;
            $error_msg .= (isset($error_msg) ? '<br/>' : '') . "Incorrect answer to the mathematical question...";
        }
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]---------------------------------------------
#
<!-- END switch_confirm -->
#
#-----[ AFTER, ADD ]---------------------------------------
#
	<tr>
       <td class="row1"><span class="gen">How much is 5+2 *</span></td>
       <td class="row2">
	      <input type="text" class="post" style="width: 200px" name="math_question" size="6" maxlength="6" value="" />
       </td>
	</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM