[SMF] ทุกเวอร์ชั่นใครเจอสแปมมาทางนี้เลยครับ (วิธีแก้ไข)

เริ่มโดย วัยรุ่นเมกา, 19 มีนาคม 2013, 12:02:10

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

วัยรุ่นเมกา

นำโค้ดด้านล่างไปใส่ในไฟล์  Sources/Post.php  แล้วเซฟเป็น UTF-8 อัพโหลดไปทับของเดิมบนโฮส

**อยู่ประมาณ บรรทัดที่ 1282  (ใต้บรรทัด // Check the subject and message.)
อ้างถึงif(!preg_replace('/[^ก-ฮ]/u','',$_POST['subject'])){
  $post_errors[] = 'no_subject';
   }

   if(!preg_replace('/[^ก-ฮ]/u','',$_POST['message'])){
  $post_errors[] = 'no_subject';
   }

แก้ได้แน่ครับเพราะว่าถ้าใช้โค้ด การตั้งกระทู้หรือหัวข้อ ต้องมีภาษาไทยอยู่ร่วมด้วยถ้ามีแต่ภาษาอังกฤษอย่างเดียว ไม่ผ่านแน่ครับ  :wanwan020:
ได้ผลยังไงก็ +1 ให้ผมแล้วกันครับ
[direct=https://www.bowyenroof.com]หลังคา UPVC[/direct] [direct=https://www.bowyenroof.com]หลังคา SPVC[/direct]

seoโออิชิ

[direct=http://].[/direct] [direct=http://].[/direct] ช้า ๆ ได้พร้าเล่มงาม เร็ว ๆ ได้พร้าอย่างงาม 2 เล่ม [direct=http://].[/direct] [direct=http://].[/direct][direct=http://].[/direct]

pingenter


ITboy2555

ลองใส่โค๊ต แล้วตอบกระทู้ (เพราะบอร์ดผม ฝรั่งเข้ามาทั้งตอบกระทู้และตั้งกระทู้ครับ)..ไม่ว่าตอบเป็นภาษาไทย หรือภาษาอังกฤษ มีรายงานข้อผิดพลาดดังนี้ครับ

ปรากฎข้อผิดพลาดตังต่อไปนี้ขณะส่งข้อความนี้:
ไม่มีหัวข้อ


..ท่านใดดัดแปลงแล้ว ไม่มีปัญหาบ้างครับ อยากได้โค๊ตนี้ มีประโยชน์มากครับ  :wanwan017:

วัยรุ่นเมกา

อ้างถึงจาก: ITboy2555 ใน 19 มีนาคม 2013, 12:37:04
ลองใส่โค๊ต แล้วตอบกระทู้ (เพราะบอร์ดผม ฝรั่งเข้ามาทั้งตอบกระทู้และตั้งกระทู้ครับ)..ไม่ว่าตอบเป็นภาษาไทย หรือภาษาอังกฤษ มีรายงานข้อผิดพลาดดังนี้ครับ

ปรากฎข้อผิดพลาดตังต่อไปนี้ขณะส่งข้อความนี้:
ไม่มีหัวข้อ


..ท่านใดดัดแปลงแล้ว ไม่มีปัญหาบ้างครับ อยากได้โค๊ตนี้ มีประโยชน์มากครับ  :wanwan017:
ต้องมีภาษาไทยอยู่ในหัวข้อและข้อความที่จะโพสด้วยครับ อังกฤษอย่างเดียวไม่ผ่านจะขึ้นแบบนี้ครับ
[direct=https://www.bowyenroof.com]หลังคา UPVC[/direct] [direct=https://www.bowyenroof.com]หลังคา SPVC[/direct]

nut_anek

[direct=https://www.indytheme.com/themes/smart-variety][/direct][direct=https://www.indytheme.com/themes/indymall][/direct]
[direct=https://www.indytheme.com]ธีม wordpress สวย ถูก และมีคุณภาพ[/direct]
[direct=https://www.indytheme.com/themes/smart-variety]ส่วนลด 10% บาท เพียงกรอกโค้ด THAISEO10 สำหรับชาว ThaiSeo เท่านั้น[/direct]

ITboy2555

ตั้งหัวข้อเป็นภาษาไทย ก็ยังไม่ผ่านครับ ..หรือว่าผมวางโค๊ตผิดพลาดครับ ..  :wanwan017:

   // Check the subject and message.
    if(!preg_replace('/[^¡-Î]/u','',$_POST['subject'])){
 $post_errors[] = 'no_subject';
  }

  if(!preg_replace('/[^¡-Î]/u','',$_POST['message'])){
 $post_errors[] = 'no_subject';
  }

   if (!isset($_POST['subject']) || htmltrim__recursive($_POST['subject']) == '')
      $post_errors[] = 'no_subject';
   if (!isset($_POST['message']) || htmltrim__recursive($_POST['message']) == '')
      $post_errors[] = 'no_message';
   elseif (!empty($modSettings['max_messageLength']) && strlen($_POST['message']) > $modSettings['max_messageLength'])
      $post_errors[] = 'long_message';
   if (isset($_POST['calendar']) && !isset($_REQUEST['deleteevent']) && htmltrim__recursive($_POST['evtitle']) == '')
      $post_errors[] = 'no_event';

วัยรุ่นเมกา

อ้างถึงจาก: ITboy2555 ใน 19 มีนาคม 2013, 12:43:24
ตั้งหัวข้อเป็นภาษาไทย ก็ยังไม่ผ่านครับ ..หรือว่าผมวางโค๊ตผิดพลาดครับ ..  :wanwan017:

   // Check the subject and message.
    if(!preg_replace('/[^¡-Î]/u','',$_POST['subject'])){
 $post_errors[] = 'no_subject';
  }

  if(!preg_replace('/[^¡-Î]/u','',$_POST['message'])){
 $post_errors[] = 'no_subject';
  }

   if (!isset($_POST['subject']) || htmltrim__recursive($_POST['subject']) == '')
      $post_errors[] = 'no_subject';
   if (!isset($_POST['message']) || htmltrim__recursive($_POST['message']) == '')
      $post_errors[] = 'no_message';
   elseif (!empty($modSettings['max_messageLength']) && strlen($_POST['message']) > $modSettings['max_messageLength'])
      $post_errors[] = 'long_message';
   if (isset($_POST['calendar']) && !isset($_REQUEST['deleteevent']) && htmltrim__recursive($_POST['evtitle']) == '')
      $post_errors[] = 'no_event';
เอาไปก๊อปวางดูครับ

อ้างถึง// Check the subject and message.
    if(!preg_replace('/[^ก-ฮ]/u','',$_POST['subject'])){
  $post_errors[] = 'no_subject';
   }

   if(!preg_replace('/[^ก-ฮ]/u','',$_POST['message'])){
  $post_errors[] = 'no_subject';
   }
   if (!isset($_POST['subject']) || $smcFunc['htmltrim']($smcFunc['htmlspecialchars']($_POST['subject'])) === '')
      $post_errors[] = 'no_subject';
   if (!isset($_POST['message']) || $smcFunc['htmltrim']($smcFunc['htmlspecialchars']($_POST['message']), ENT_QUOTES) === '')
      $post_errors[] = 'no_message';
   elseif (!empty($modSettings['max_messageLength']) && $smcFunc['strlen']($_POST['message']) > $modSettings['max_messageLength'])
      $post_errors[] = 'long_message';
   else
   {
[direct=https://www.bowyenroof.com]หลังคา UPVC[/direct] [direct=https://www.bowyenroof.com]หลังคา SPVC[/direct]

เกมส์

ของผม แค่ตั้งคำถาม เป็นภาษาไทย+ตอบภาษาไทย(ตอนสมัครสมาชิก)  ก็ช่วยได้ครับ   ลองดู
คนสวยๆอย่างน้อง พี่เห็นท้องมาเยอะ..เหอะๆ[direct=https://www.xn--12cbf2ecfeqcbmg8b4auehgcf3e1cvinadjv03b9k.com]สมัครตัวแทนขายประกันรถยนต์[/direct][direct=https://www.exness-free.com]สอนforex[/direct][direct=https://www.xn--12c3bbdobk3dfc9hrbo03aoc.com]ต่อประกันรถยนต์[/direct][direct=https://www.tradesabai.com/index.php/topic,624.msg924.html#msg924]วิธีสมัครเปิดบัญชี forexใหม่ล่าสุด[/direct]

ITboy2555

แคปชาร์ ผมติดแล้วครับ ..แต่คิดว่าติดโค๊ตนี้น่าจะดีกว่า ..ขอบคุณคำแนะนำดีๆครับ  :wanwan017:

ผมเอาโค๊ตใหม่ไปวางดู ยังใช้ไม่ได้ขอรับ  :wanwan009:
// Check the subject and message.
    if(!preg_replace('/[^ก-ฮ]/u','',$_POST['subject'])){
  $post_errors[] = 'no_subject';
   }

   if(!preg_replace('/[^ก-ฮ]/u','',$_POST['message'])){
  $post_errors[] = 'no_subject';
   }
   if (!isset($_POST['subject']) || $smcFunc['htmltrim']($smcFunc['htmlspecialchars']($_POST['subject'])) === '')
      $post_errors[] = 'no_subject';
   if (!isset($_POST['message']) || $smcFunc['htmltrim']($smcFunc['htmlspecialchars']($_POST['message']), ENT_QUOTES) === '')
      $post_errors[] = 'no_message';
   elseif (!empty($modSettings['max_messageLength']) && $smcFunc['strlen']($_POST['message']) > $modSettings['max_messageLength'])
      $post_errors[] = 'long_message';
   else
   {

คราวนี้ตอบไม่ได้แล้ว ง่ะ  :wanwan004:

Parse error: syntax error, unexpected $end in /Sources/Post.php on line 2268

Jaideejung007™


4Aoy