misafirler hiç mesaj atamasın

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

misafirler hiç mesaj atamasın

İleti idas 27.01.2008, 23:57

benim sitemde sadece kullanıcılar mesaj atabiliyor.

ancak spam mailler gibi, bazı misafirler uygunsuz içerik barındıran mesajlar atıyorlar. buna nasıl engel olabilirim.

diğer yandan bir de otomatik olduğunu düşündüğüm üyelikler var. böyle bişey var mı. çünkü dünyanın dört bir yanından benim siteme üye olmaya çalışıyorlar. ve ben bunları hep silmek zorunda kalıyorum. bu üyelikler otomatik değil ise sorun yok, ama otomatik üyelik diye birşey var ise, çözümü varmıdır. (üyelikler onay ile aktif oluyor)

şimdiden çok çok teşekkürler
idas
Üye
Üye
 
İleti: 11
Kayıt: 03.12.2005, 23:42

Re: misafirler hiç mesaj atamasın

İleti eflanim 08.03.2008, 15:39

Kod: Tümünü seç
##############################################################
## MOD Title: Unique Registration Hash
## MOD Author: pentapenguin < n/a > (Jeremy Conley) http://www.pentapenguin.com
## MOD Description: This MOD changes the "agreed=true" part of the registration
## form to a unique identifier to help stop spam bots from registering.
##
## MOD Version: 0.1.0
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: 1
## includes/usercp_register.php
##
## Included Files: N/A
## 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:
##
## Support for this MOD may be found at http://www.pentapenguin.com
## This MOD is EasyMOD friendly! (http://area51.phpbb.com/phpBB/viewforum.php?f=17)
##
##############################################################
## MOD History:
##
##   2006-08-19 - Version 0.1.0
##   - Initial release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################


#
#-----[ AÇ ]------------------------------------------
#

includes/usercp_register.php

#
#-----[ BUL ]------------------------------------------
#

$unhtml_specialchars_replace = array('>', '<', '"', '&');

#
#-----[ SONRASINA EKLE ]------------------------------------------
#

// Begin Unique Registration Hash MOD by pentapenguin (http://www.pentapenguin.com)
$registration_hash = md5($userdata['session_ip'] . $userdata['session_id']);
// End Unique Registration Hash MOD by pentapenguin

#
#-----[ BUL ]------------------------------------------
#

   global $userdata, $template, $lang

#
#-----[ IÇINDE BUL ]------------------------------------------
#

$phpEx

#
#-----[ IÇINDE SONRASINA EKLE ]------------------------------------------
#

, $registration_hash

#
#-----[ BUL ]------------------------------------------
#

      "U_AGREE_OVER13" => append_sid("profile.$phpEx

#
#-----[ IÇINDE BUL ]------------------------------------------
#

agreed=true


#
#-----[ IÇINDE BUNUNLA DEGISTIR ]------------------------------------------
#

agreed=$registration_hash

#
#-----[ BUL ]------------------------------------------
#

      "U_AGREE_UNDER13" => append_sid("profile.$phpEx

#
#-----[IÇINDE BUL ]------------------------------------------
#

agreed=true

#
#-----[ IÇINDE BUNUNLA DEGISTIR ]------------------------------------------
#

agreed=$registration_hash

#
#-----[ BUL ]------------------------------------------
#

if ( $mode == 'register' && !isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed']) )

#
#-----[ IÇINDE BUL ]------------------------------------------
#

!isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed'])

#
#-----[ IÇINDE BUNUNLA DEGISTIR ]------------------------------------------
#

$HTTP_POST_VARS['agreed'] != $registration_hash && $HTTP_GET_VARS['agreed'] != $registration_hash

#
#-----[ BUL ]------------------------------------------
#

   $s_hidden_fields = '<input type="hidden"

#
#-----[ IÇINDE BUL ]------------------------------------------
#

name="agreed" value="true"

#
#-----[ IÇINDE BUNUNLA DEGISTIR ]------------------------------------------
#

name="agreed" value="' . $registration_hash . '"

#
#-----[ TÜM DOSYALARI KAPAT/KAYDET ]------------------------------------------
#
# SoN


Böyle bir kod var ama
eğer sitenizde "sid"leri (session id ) kaldırdıysanız hata verebilir.
eflanim
Üye
Üye
 
İleti: 7
Kayıt: 08.12.2007, 23:14
Konum: istanbul/karabük


Soru(n)lar & Tartışmalar



Kimler çevrimiçi

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

cron