############################################################## ## MOD Title: Do you know your country president's name? ## MOD Author: medutis (Justinas Liubinskas) http://www.double.lt/ ## MOD Description: Fight spam and bots with smart question ## MOD Version: 1.0.1 ## Installation Level: Easy ## Installation Time: 5 Minutes ## Files To Edit: config.php, includes/usercp_register.php, language/lang_lithuanian/lang_main.php, ## templates/subsilver/profile_add_body.tpl ## Included Files: N/A ############################################################## ## 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: ## It is clear, that spammer is not able to know the name of your country president, of cause, you can ## change it to whatever secret question/answer at anytime. ## (LT) Labai geras modas, ypac mums lietuviams - isgarsinsim savo gerb. prezidento varda visame pasaulyje :) ## (LT) Galite rast Lithuanian versija sio modo @ http://phpblog.medutis.com ############################################################## ## MOD History: ## ## 2006-11-19 - Version 1.0.1 ## - Initial release. ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ OPEN ]----------------------------------------------------------------- # config.php # #-----[ FIND ]----------------------------------------------------------------- # ?> # #-----[ BEFORE, ADD ]------------------------------------------ # define('PRESIDENT', 'Valdas Adamkus'); # #-----[ OPEN ]----------------------------------------------------------------- # language/lang_lithuanian/lang_main.php language/lang_english/lang_main.php (and all other languages) # #-----[ FIND ]----------------------------------------------------------------- # // // That's all, Folks! // ------------------------------------------------- # #-----[ BEFORE, ADD ]------------------------------------------ # $lang['President_error'] = 'Neávestas teisingas prezidento vardas ir pavardë'; $lang['President'] = 'Lietuvos prezidento vardas pavardë (atskirti tarpu)'; # #-----[ OPEN ]----------------------------------------------------------------- # includes/usercp_register.php # #-----[ FIND ]----------------------------------------------------------------- # 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'S_FORM_ENCTYPE' => $form_enctype, # #-----[ BEFORE, ADD ]------------------------------------------ # 'L_PRESIDENT' => $lang['President'], 'PRESIDENT' => $president, # #-----[ FIND ]----------------------------------------------------------------- # $username = ( !empty($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : ''; # #-----[ BEFORE, ADD ]------------------------------------------ # $president = ( !empty($HTTP_POST_VARS['president']) ) ? phpbb_clean_username($HTTP_POST_VARS['president']) : ''; # #-----[ FIND ]----------------------------------------------------------------- # if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) ) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Fields_empty']; } # #-----[ BEFORE, ADD ]------------------------------------------ # if (strtolower($president) != strtolower(PRESIDENT)) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['President_error']; } # #-----[ OPEN ]----------------------------------------------------------------- # templates/subsilver/profile_add_body.tpl # #-----[ FIND ]----------------------------------------------------------------- # {L_CONFIRM_CODE}: *
{L_CONFIRM_CODE_EXPLAIN} # #-----[ AFTER, ADD ]------------------------------------------ # {L_PRESIDENT}: * # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------------- # # EoM