- Code: Alles auswählen
####################################################################
## MOD Title : Clean BBcode
## MOD Author : yakusha < yakusha@tnn.net > (sabri ünal) < http://www.canver.net >
## MOD Version : Beta 1.0.2
## MOD Description : Oluşturulmuş bir bbcode listesiyle, hatalı bbcodeleri forumumuza yerleştirmeden temizler.
## Exp: / Örnek
## Before mod / Moddan önce: [/b] message
## After mod / Moddan sonra: message
####################################################################################
## Installation Level: easy
## Installation Time: 2 minutes
## Files To Edit: (2) includes/functions_post.php, posting.php
## Included Files: array.php
####################################################################################
##
## Destek ve Yardım : http://www.canver.net
## Telif Hakkı : Copyleft © - canver|net, canver|soft - www.canversoft.com
## Lisans : GNU Public License v2 http://opensource.org/licenses/gpl-license.php
##
######################################################################################
## Güvenlik Uyarısı:
##
## Modun son sürümü için lütfen http://www.canver.net adresini kontrol ediniz.
## Modun stabil sürümü için lütfen http://www.phpbb.com adresini kontrol ediniz.
## Modu başka siteden indirdiyseniz, içinde art niyetli kod olmadığını garanti edemeyiz.
## Modu eklemeden önce, güvenlik kopyası amacıyla lütfen dosyalarınızın yedeğini alınız.
##
#####################################################################################
## Yazar Notları:
##
## Oluşturulmuş bir bbcode listesiyle, hatalı bbcodeleri forumumuza yerleştirmeden temizler.
##
######################################################################################
## Mod Geçmişi:
##
## 12-06-2006 - Version 1.0.2
## - sistem yapısı yeniden tasarlandı
## - redesigned mod
##
## 02-06-2006 - Version Beta 1.0.1
## - posting.php işlemleri eklendi
## - top_words oluşturulmaya başlandı
## - [/url] ilk top_words olarak listeye alındı
##
## 10-05-2006 - Version Beta 1.0.0
## - çalışır ilk sürüm
##
####################################################################################
#
#----[ COPY ]------------------------------------------------------------------
#
bbcode_list.php -> includes/bbcode_list.php
#
#----[ OPEN ]------------------------------------------------------------------
#
includes/functions_post.php
#
#----[ FIND ]------------------------------------------------------------------
#
$message = bbencode_first_pass($message, $bbcode_uid);
}
#
#----[ AFTER, ADD ]------------------------------------------------------------
#
#---[+]----- bbcode clean ------
@include($phpbb_root_path . 'includes/bbcode_list.php');
$message = str_replace($pre_bbcodes, "", $message);
#---[-]----- bbcode clean ------
#
#----[ OPEN ]------------------------------------------------------------------
#
viewtopic.php
#
#----[ FIND ]------------------------------------------------------------------
#
if ( $user_sig != '' )
{
$user_sig = '<br />_________________<br />' . str_replace("\n", "\n<br />\n", $user_sig);
}
$message = str_replace("\n", "\n<br />\n", $message);
#
#----[ AFTER, ADD ]------------------------------------------------------------
#
#---[+]----- bbcode clean ------
@include($phpbb_root_path . 'includes/bbcode_list.php');
$message = str_replace($sec_bbcodes, "", $message);
#---[-]----- bbcode clean ------
#
#----[ SAVE ALL FILES ]------------------------------------------------------------------
#EOM
bbcode_list.php
- Code: Alles auswählen
<?php
/***************************************************************************
* bbcode_list.php
* begin : march 30, 2006
* copyright : (C) phpbb Group
* coded by yakusha
* email : yakusha@tnn.net & sabriunal@tnn.net
***************************************************************************
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
***************************************************************************
* yakusha tarafından yapılmış olan bbcode temizleme fonksiyonu için bbcode listesidir
* bu dosya olmadan bbcode temizleme fonksiyonu çalışmayacaktır...
****************************************************************************/
if (!defined('IN_PHPBB'))
{
die('Hacking attempt');
}
$sec_bbcodes = Array(
'[/url]',
'[/quote]',
);
$pre_bbcodes = Array(
'[font=Verdana]',
'[font=Times New Roman]',
'[font=Trebuchet]',
'[font=Tahoma]',
'[font=Symbol]',
'[font=Microsoft Sans Serif]',
'[font=Lucida Console]',
'[font=Georgia]',
'[font=Courier New]',
'[font=Comic Sans MS]',
'[font=Century Gothic]',
'[font=Arial Black]',
'[font=Arial]',
'[font=]',
'[font]',
'[align=left]',
'[align=center]',
'[align=right]',
'[align=justify]',
'[color]',
'[color=]',
'[color=black]',
'[color=darkred]',
'[color=red]',
'[color=orange]',
'[color=brown]',
'[color=yellow]',
'[color=green]',
'[color=olive]',
'[color=cyan]',
'[color=blue]',
'[color=darkblue]',
'[color=indigo]',
'[color=violet]',
'[color=white]',
'[color=black]',
'[size]',
'[size=]',
'[size=7]',
'[size=8]',
'[size=9]',
'[size=10]',
'[size=11]',
'[size=12]',
'[size=13]',
'[size=14]',
'[size=15]',
'[size=16]',
'[size=17]',
'[size=18]',
'[size=19]',
'[size=20]',
'[size=21]',
'[size=22]',
'[size=23]',
'[size=24]',
//ikinci yarı
'[/font]',
'[/align]',
'[b]',
'[i]',
'[u]',
'[s]',
'[/b]',
'[/i]',
'[/u]',
'[/s]',
'[code]',
'[email]',
'[web]',
'[img]',
'[/code]',
'[/email]',
'[/web]',
'[/img]',
'[url]',
'[quote]',
'[list]',
'[list=]',
'[list=1]',
'[list=a]',
'[/list]',
'[/size]',
'[/color]',
'[*]',
);
?>