sansürlenen link sorunu

Tüm soru(n)lar ve tartışmalar; kullanım ile ilgili soru(n)lar.

sansürlenen link sorunu

İleti wdp 25.12.2006, 19:47

merhaba;

a.com diye bir sitemiz olsun . başkası gelip bzim sitemizde b.com un reklamını yapmak istiyor olsun. önlemek için b.com u sansür listesine ekliyoruz. sansürlendiğinde gösterilecek kelimeye abc diye bişey yazalım. bu durumda phpbb b.com u görünürde sansürlüyor abc ye çeviriyor ama abc nin üstünden yine b.com a link veriyor.


bunu önlemenin bir yolu warmı ?


tşkkrler.
wdp
Üye
Üye
 
İleti: 157
Kayıt: 10.11.2005, 13:15

Cvp: sansürlenen link sorunu

İleti TheScorpion 25.12.2006, 20:26

[syntax="php"]##############################################################
## MOD Title: URL Censorer for Posting, Memberlist, PMs and Profile
## MOD Author: CBACK < webmaster@cback.de > (Christian Knerr) http://www.community.cback.de
## MOD Description: Zensiert beispielsweise auch URLs oder verbotenen
## Text in den Webseiten, die die Benutzer im Profil
## angegeben hat und entfernt bei der Wortzensur auch
## Links aus Profil, Mitgliederliste, PMs und Beiträgen.
##
## Verwendet wird hierbei die Wortzensur von phpBB, es
## können also die Filterwörter über das bekannte ACP
## Modul verwaltet werden.
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 4 Minutes
## Files To Edit: 4
## includes/usercp_viewprofile.php
## memberlist.php
## viewtopic.php
## privmsgs.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php


#
#-----[ FIND ]------------------------------------------
#
$www_img = ( $row['user_website'] ) ? '<a href="' . $row['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '';
$www = ( $row['user_website'] ) ? '<a href="' . $row['user_website'] . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : '';


#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// CBACK WebSite Censor Mod
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);

$webcensored = $row['user_website'];

if ( count($orig_word) )
{
$webcensored = preg_replace($orig_word, $replacement_word, $webcensored);
}

$www_img = ( $webcensored ) ? '<a href="' . $webcensored . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '';
$www = ( $webcensored ) ? '<a href="' . $webcensored . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : '';



#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php


#
#-----[ FIND ]------------------------------------------
#
$post_subject = ( $postrow[$i]['post_subject'] != '' ) ? $postrow[$i]['post_subject'] : '';

$message = $postrow[$i]['post_text'];


#
#-----[ AFTER, ADD ]------------------------------------------
#
//
// CBACK WebSite Censor Mod
//
if ( count($orig_word) )
{
$message = preg_replace($orig_word, $replacement_word, $message);
}


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



#
#-----[ FIND ]------------------------------------------
#
$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '&nbsp;';
$www = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_userwww">' . $profiledata['user_website'] . '</a>' : '&nbsp;';



#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// CBACK WebSite Censor Mod
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);

$webcensored = $profiledata['user_website'];

if ( count($orig_word) )
{
$webcensored = preg_replace($orig_word, $replacement_word, $webcensored);
}

$www_img = ( $webcensored ) ? '<a href="' . $webcensored . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '&nbsp;';
$www = ( $webcensored ) ? '<a href="' . $webcensored . '" target="_userwww">' . $webcensored . '</a>' : '&nbsp;';


#
#-----[ OPEN ]------------------------------------------
#
privmsgs.php


#
#-----[ FIND ]------------------------------------------
#
$www_img = ( $privmsg['user_website'] ) ? '<a href="' . $privmsg['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '';
$www = ( $privmsg['user_website'] ) ? '<a href="' . $privmsg['user_website'] . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : '';


#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// CBACK WebSite Censor Mod
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);

$webcensored = $privmsg['user_website'];

if ( count($orig_word) )
{
$webcensored = preg_replace($orig_word, $replacement_word, $webcensored);
}

$www_img = ( $webcensored ) ? '<a href="' . $webcensored . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '';
$www = ( $webcensored ) ? '<a href="' . $webcensored . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : '';

#
#-----[ FIND ]------------------------------------------
#
$post_subject = $privmsg['privmsgs_subject'];

$private_message = $privmsg['privmsgs_text'];


#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// CBACK Censoring System
//
$subj = $privmsg['privmsgs_subject'];
$pmscens = $privmsg['privmsgs_text'];

if ( count($orig_word) )
{
$subj = preg_replace($orig_word, $replacement_word, $subj);
}
if ( count($orig_word) )
{
$pmscens = preg_replace($orig_word, $replacement_word, $pmscens);
}

$post_subject = $subj;

$private_message = $pmscens;


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
#[/syntax]
Kullanıcı avatarı
TheScorpion
Üye
Üye
 
İleti: 152
Kayıt: 02.12.2005, 16:45


Soru(n)lar & Tartışmalar



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron