gönderen sinan » Salı, Kasım 14, 2006 23:43
- Kod: Tümünü seç
##############################################################
## MOD Title: Email Spam Protection for phpBB
## MOD Author: siay < sinan [@] lavinya.net > (Sinan) N/A
## MOD Description: spam protection to email addresses of added to messages
## support: http://www.lavinya.net/phpBB2/about3030.html
##
## MOD Version: 0.0.1 Alpha Version
##
## Installation Level: Easy
## Installation Time: 1 minute
##
## Files To Edit: (1)
## includes/bbcode.php
##
## Included Files: (1)
## email.php
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## Tested on phpBB 2.0.21 and hasn't seen bugs..
## But this is a alpha version may be has bug. If you see bug please email and/or write to http://www.lavinya.net/phpBB2/about3030.html
##
##############################################################
## MOD History:
##
## 2006-11-15 - Version 0.0.1 Alpha Version
## Mod created from previously applied and tested hand patches
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ UPLOAD ]------------------------------------------
#
email.php
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret);
#
#-----[ REPLACE WITH ]------------------------------------------
#
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<img src=\"email.php?address=\\2-00000-\\3\" alt=\"email address is protected\" />", $ret);
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
En son
sinan tarafından Çarşamba, Kasım 15, 2006 00:47 tarihinde düzenlendi, toplamda 3 kere düzenlendi.