عرض مشاركة واحدة
قديم 04-06-2018, 06:32 PM
المشاركة 3
هيلبرنت
.:: رفيق درب ::.
  • هيلبرنت غير متواجد حالياً
افتراضي رد: الكلمات الدلالية للمواضيع بدون هاكات واستعلامات
تم تحديث الكود بناء على طلب الاخ اينشتاين
كود PHP:
// HACK : START : AUTO TAG  
//      if ($type == 'thread' AND $post['taglist'])  
        
if ($type == 'thread')  
        {  

                if (!
$post['taglist']) {  
                        
$temptags split(' ',$post['title']);  
                        
$newtags = array();  
                        require(
DIR '/includes/searchwords.php');  
                        foreach (
$temptags as $tagtext) {  
                                if (
strlen($tagtext) <= || in_array(strtolower($tagtext), $badwords)) {  
                                        
// Do nothing  
                                
} else {  
                                        
array_push($newtags,$tagtext);  
                                }  
                        }  
                        
$post['taglist'] = join(',',$newtags);  
                }  
// HACK : END : AUTO TAG