Integrate into join.php
If you want to integrate the Enthusiast Anti-Spam Addon directly into join.php (if you’re including join.php from another file refer to the other tutorial) put the following before any HTML or skinning or includes or anything.
<?php include 'config.php'; if (defined('ENTH_PATH')) { require_once ENTH_PATH .'show_antispam.php'; } else { if (!isset($_REQUEST['path'])) { require_once $path .'show_antispam.php'; } } $antispam_messages = array(); if( isset( $_POST['join'] ) && $_POST['join'] == 'yes' ) { $errorstyle = ' style="font-weight: bold; display: block;" ' . 'class="show_join_error"'; if(function_exists('antispamprocedures')) { $getantispam = antispamprocedures($errorstyle); if (is_array($getantispam)) { if ($getantispam[0] == 'exit') { if (!defined('ANTISPAM')) { define('ANTISPAM', 1); } if ($getantispam[1] != '') $antispam_messages = array($getantispam[1]); $antispam = $getantispam[1] . antispam(); } else { if (!defined('ANTISPAM')) { define('ANTISPAM', 1); } if ($getantispam[1] != '') $antispam_messages = array($getantispam[1]); $antispam = $getantispam[1] . $getantispam[2]; } } } } else { if(function_exists('antispam')) { if (!defined('ANTISPAM')) { define('ANTISPAM', 1); } $antispam = antispam(); } } ?>
