############################################################## ## Title: Multiple Accounts per Email Address Hack ## Author: Kai ## www.winternightex.com ## Wildfire on phpbbhacks.com ## ## Description: This hack lets the administrator configure the board ## to allow multiple accounts per email address through ## the admin panel ## ## Version History: ## 1.0.2 - Current version. Semantics changes for 2.0.6 ## 1.0.1 - Semantics changes for 2.0.4 ## 1.0.0 - Initial version. ## ## Installation Level: ## Moderate ## ## Verified Compatability: ## 2.0.0 to 2.0.6 ## ## Files To Edit: ## include/functions_validate.php ## admin/admin_board.php ## remplates/subSilver/admin/board_config_body.tpl ## ## Included Files: ## none ## ## Notes: ## This hack requires modification of the phpBB database. If you are incapable of or ## are not comfortable with doing so, please do not attempt installation of this hack. ## Upon completion of installation, the confuration option will be set to allow multiple ## accounts per email address. ############################################################## ## Please Check: ## http://www.phpbbhacks.com ## http://www.204art.com/item.php?galleryid=2 ## ## for support and the latest version of this hack ############################################################## ## ALWAYS back up all files to be edited before starting installation! ## # #-----[ OPEN ]------------------------------------------ # includes/functions_validate.php # #-----[ FIND ]------------------------------------------ # if ( $row = $db->sql_fetchrow($result) ) { return array('error' => true, 'error_msg' => $lang['Email_taken']); } # #-----[ REPLACE WITH ]------------------------------------------ # //********************************Multiple Accounts Mod********************* $masql = "SELECT * FROM " . CONFIG_TABLE . " WHERE config_name = 'allow_multiple'"; if ( !($maresult = $db->sql_query($masql)) ) { message_die(GENERAL_ERROR, "Couldn't obtain user email information.", "", __LINE__, __FILE__, $sql); } $allow = $db->sql_fetchrow($maresult); if ($allow['config_value'] == 0) { if ( $row = $db->sql_fetchrow($result) ) { return array('error' => true, 'error_msg' => $lang['Email_taken']); } } //*******************************Multiple Accounts Mod********************** # #-----[ OPEN ]------------------------------------------ # admin/admin_board.php # #-----[ FIND ]------------------------------------------ # $html_yes = ( $new['allow_html'] ) ? "checked=\"checked\"" : ""; $html_no = ( !$new['allow_html'] ) ? "checked=\"checked\"" : ""; # #-----[ AFTER, ADD ]------------------------------------------ # //****************Multiple Accounts Hack******************* $multiple_yes = ( $new['allow_multiple'] ) ? "checked=\"checked\"" : ""; $multiple_no = ( !$new['allow_multiple'] ) ? "checked=\"checked\"" : ""; //*********************Multiple Accounts Hack************************ # #-----[ FIND ]------------------------------------------ # "HTML_NO" => $html_no, # #-----[ AFTER, ADD ]------------------------------------------ # //***********Multiple Accounts Mod**************** "MULTIPLE_YES" => $multiple_yes, "MULTIPLE_NO" => $multiple_no, //***********Multiple Accounts Mod**************** # #-----[ OPEN ]------------------------------------------ # templates/subSilver/admin/board_config_body.tpl # #-----[ FIND ]------------------------------------------ # {L_ALLOW_HTML} {L_YES}   {L_NO} # #-----[ AFTER, ADD ]------------------------------------------ # Allow Multiple Accounts per Email Address Yes  No # #-----[ SQL ]------------------------------------------ # INSERT INTO prefix_config (config_name, config_value) VALUES ('allow_multiple', '1'); # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # End