URL Censor Hack

phpBB 2.0.x sürümleri için geliştirilen ve yapım aşamasındaki Alpha, Beta MODlar & PreMODlar.
Kilitli

ekentiyi beğendinizmi

evet
5
83%
hayır
1
17%
 
Toplam oy: 6

Kullanıcı avatarı
cupra
Kayıtlı Kullanıcı
Mesajlar: 2505
Kayıt: 01.04.2006, 02:33
Konum: smyrna
İletişim:

URL Censor Hack

Mesaj gönderen cupra »

URL Censor Hack, mesajlarda , profilde, özel mesajlarda üye listesinde url sansürlemesi yapar

İndirme : http://www.cback.de/cback_software/modd ... censor.zip

Kod: Tümünü seç

##############################################################
## 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
#
Kullanıcı avatarı
crowzer
Kayıtlı Kullanıcı
Mesajlar: 623
Kayıt: 05.06.2006, 19:38
İletişim:

Mesaj gönderen crowzer »

Teşekkürler cupra emeğine sağlık :)
FoRumOlayi.com
Benimde İmzam Olmasın Ne Var Yani
Kullanıcı avatarı
er-13
Kayıtlı Kullanıcı
Mesajlar: 273
Kayıt: 02.08.2006, 04:52
Konum: /index.php
İletişim:

Mesaj gönderen er-13 »

nasıl bir sansürleme yapıyor acaba bi örnek alabilirmiyiz teşekkürler..
Kilitli

“2.0.x PreMODlar & Yapım aşamasındaki MODlar” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 8 misafir