sabato 6 ottobre 2007

Instructions to mod

This is the MSW_Miccolis_Spam_Wall.txt content:

#################################################################
## MOD Title: MSW - Miccolis Spam Wall
## MOD Author: mvincent <> (Vincenzo Miccolis) N/A
## MOD Description:
##
##
## Let's make sure the users mail server doesn't appear in the black list
## and ensure that they were trying to spam the forum
## (Prevents spam attacks)
## http://miccolisspamwall.blogspot.com/
##
## When you find a 'AFTER, ADD'-Statement, the Code have to be added after the last
## line quoted in the 'FIND'-Statement.
## When you find a 'BEFORE, ADD'-Statement, the Code have to be added before the
## first line quoted in the 'FIND'-Statement.
## When you find a 'REPLACE WITH'-Statement, the Code quoted in the
## 'FIND'-Statement have to be replaced completely with the quoted Code in the
## 'REPLACE WITH'-Statement.
##
##
##
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5-10 Minutes
## Files To Edit:
## includes/usercp_register.php
## language/lang_italian/lang_main.php
## language/lang_english/lang_main.php
## modz/MSW/blacklist.php
##
##############################################################
## Author Notes:
## for blacklist.php updates visit http://miccolisspamwall.blogspot.com/
##
##############################################################
## MOD History:
##
## 2007-10-05 - Version 1.0.0
## - first release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ DIY INSTRUCTIONS ]---------------------------------------------
#
before you make updates to the phpbb installation, you must to upload
the modz/MSW/blacklist.php


#
#-----[ OPEN ]---------------------------------------------
#
includes/usercp_register.php

#
#-----[ FIND ]---------------------------------------------
# Line 43
$unhtml_specialchars_replace = array('>', '<', '"', '&');

#
#-----[ AFTER, ADD ]---------------------------------------------
#

// MSW - Miccolis Spam Wall - include functions
// ---------------------------------------
include ($phpbb_root_path . 'mods/msw/blacklist.'.$phpEx);
// ---------------------------------------
//

#
#-----[ FIND ]---------------------------------------------
# Line 264
message_die(GENERAL_MESSAGE, $lang['Username_taken'], '', __LINE__, __FILE__);
}

#
#-----[ AFTER, ADD ]---------------------------------------------
#

//
// MSW - Miccolis Spam Wall - email check operation
//
if ($mode == 'register' && (isSpam($email) == true))
{
message_die(GENERAL_MESSAGE, $lang['Spam_email'], '', __LINE__, __FILE__);
}
//

#
#-----[ OPEN ]---------------------------------------------
#
language/lang_italian/lang_main.php

#
#-----[ FIND ]---------------------------------------------
# Line 1044
$lang['Friend_email_too_long'] = 'I caratteri dell\'indirizzo email superano il limite previsto.';
$lang['Message_too_long'] = 'I caratteri del messaggio superano il limite previsto.';

#
#-----[ AFTER, ADD ]---------------------------------------------
#

//
// MSW - Miccolis Spam Wall - message for SPAM detection
//
$lang['Spam_email'] = 'Spiacenti, ma questo indirizzo email non è utilizzabile (SPAM MAIL).';
//

#
#-----[ OPEN ]---------------------------------------------
#
language/lang_english/lang_main.php

$lang['Friend_email_too_long'] = 'The email address you specified is too long.';
$lang['Message_too_long'] = 'The message you entered is too long.';

#
#-----[ AFTER, ADD ]---------------------------------------------
#

//
// MSW - Miccolis Spam Wall - message for SPAM detection
//
$lang['Spam_email'] = 'Sorry, this email adress is disabled (SPAM MAIL).';
//

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

# EoM

Nessun commento: