==== posting.php ====
* Location: Base of the phpBB install
-- find --
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);
-- add below --
#Spam Hack
if ( $error_msg == '' ) {
$proceed = false;
$seconds = 60*10; // 10 minutes
//echo 'Testing:
Cookie: '.$_COOKIE['token'].'
Timestamp: '. $_POST['ts'].'
';
if(isset($_POST['ts']) && isset($_COOKIE['token']) && $_COOKIE['token'] == md5('some random value'.$_POST['ts'])) $proceed = true;
if(!$proceed) {
$error_msg = 'Form processing halted for suspicious activity';
}
if(((int)$_POST['ts'] + $seconds) < mktime()) {
$error_msg = 'Too much time elapsed';
}
}
#Spam Hack
==== posting_body.tpl ====
* Location: phpBB_base\templates\subSilver
-- find --