|
G-Defender
38 posts |
#757 2015-02-14 21:24 GMT | |
|
Merhaba şimdi seditioda özel mesaj kutusuna girince gönderenin adını boş bırakı
Kod: [code]Mesajınız Başarıyla gönderilmiştir.. özel mesaj oluştur..[/code]Click here Mesajlara geri dönmek için tıkla yada yeni öz diyor bu sitedede aynı birde pm_blocker_se eklentisi kurunca gönder deyince hepsi boşkende gönderildi diyor bunu nasıl düzelticez? [code]<?PHP /* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/pmblocker_se/pmblocker_se.php Version=102 Updated=2006-may-09 Type=Plugin Author=Jonny Mattila Description=Allow users to block unwanted pm's [END_SED] [BEGIN_SED_EXTPLUGIN] Code=pmblocker_se Part=main File=pmblocker_se Hooks=pm.send.send.first Tags= Minlevel=0 Order=10 [END_SED_EXTPLUGIN] Copyright (C) 2006 Jonny Mattila ==================== */ if (!defined('SED_CODE')) { sed_diefatal('Wrong URL.'); } require_once("plugins/pmblocker_se/lang/pmblocker_se.".$usr['lang'].".lang.php"); $plugin_title = $L['plu_title']; $sql_get_blocks = sed_sql_query("SELECT * FROM sed_pmblocker WHERE pmb_blockedid='".$usr['id']."'"); $blocks_array = array(); $blocks_array[] = "_"; while ($myrow = sed_sql_fetcharray($sql_get_blocks)) { $blocks_array[] = $myrow['pmb_blockernick']; } $newpmrecipient = sed_import('newpmrecipient','P','TXT'); $temp_1 = explode (",", $newpmrecipient); if ($cfg['plugin']['pmblocker_se']['pmb_silentblock']=="Yes") { foreach($temp_1 as $k => $i) { $i = trim($i); if (in_array($i, $blocks_array)) { $sql_block_increase = sed_sql_query("UPDATE sed_pmblocker SET pmb_blockcount=pmb_blockcount+1, pmb_blockdate='".time()."' WHERE pmb_blockedid='".$usr['id']."' AND pmb_blockernick='".$i."'"); $error_string .= str_replace("%usr",$i,$L['pmb_error'])."<br />"; } } } else { $sendto_list = ""; foreach($temp_1 as $k => $i) { $i = trim($i); if (!in_array($i, $blocks_array)) { $sendto_list .= $i.","; } else { $sql_block_increase = sed_sql_query("UPDATE sed_pmblocker SET pmb_blockcount=pmb_blockcount+1, pmb_blockdate='".time()."' WHERE pmb_blockedid='".$usr['id']."' AND pmb_blockernick='".$i."'"); $error_string .= "".$newpmrecipient." isimli üye sizi yasaklamış.<br>"; } } $sendto_list = substr($sendto_list,0,strlen($sendto_list)-1); if (empty($error_string) && ($sendto_list == "")) { header("Location: message.php?msg=502"); exit; } else { $_POST['newpmrecipient'] = $sendto_list; } } ?> [/code] Benim kullandığım kodlar bu, şimdiden teşekkür ederim.
Ultima Online Sphere ve RunUO Bilgi Platformu
Site : http://www.ultima-tr.com/anasayfa/ |