الإبداع الفضائي

الإبداع الفضائي (https://www.fadaeyat.co/)
-   ثغرات منتديات vbulletin (https://www.fadaeyat.co/f180/)
-   -   ترقيع vBulletin 4.0.2 PL1 (https://www.fadaeyat.co/fadaeyat15015/)

Sat 2010 14 ربيع الأول 1431هـ / 27-02-2010م 04:57

ترقيع vBulletin 4.0.2 PL1
 
http://i36.tinypic.com/s459iq.gif
http://i38.tinypic.com/wuf87r.gif

ترقيع vBulletin 4.0.2 PL1
قامت الشركة الام بإصدارترقيع للنسخه 4.0.2 بعد نزولها رسمياً
vBulletin 4.0.2 Patch Level 1 Released

الملفات التي سيتم التعديل عليها 5 ملفات
includes/class_core.php
includes/functions_forumdisplay.php
includes/functions.php
includes/version_vbulletin.php
vb/legacy/thread.php


- افتح ملف includes/class_core.php
ابحث عن :-
كود PHP:

$relpath $vbulletin->input->fetch_relpath(); 


استبدله بــ:-
كود PHP:

  $relpath htmlspecialchars($vbulletin->input->fetch_relpath()); 


- افتح ملف includes/functions_forumdisplay.php
ابحث عن :-
كود PHP:

if ($ignore["$thread[postuserid]"]) 
    { 
        
$thread['preview'] = ''
    } 
    else if (isset(
$thread['preview']) AND $vbulletin->options['threadpreview'] > 0
    { 
        
$thread['preview'] = strip_quotes($thread['preview']); 
        
$thread['preview'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title
            
strip_bbcode($thread['preview'], falsetrue), 
            
$vbulletin->options['threadpreview'
        ))); 
    } 


استبدله بــ:
كود PHP:

if ($ignore["$thread[postuserid]"]) 
    { 
        
$thread['preview'] = ''
    } 
    else if (isset(
$thread['preview'])) 
    { 
        if(
$vbulletin->options['threadpreview'] > 0
        { 
            
$thread['preview'] = strip_quotes($thread['preview']); 
            
$thread['preview'] = htmlspecialchars_uni(fetch_censored_text
                
fetch_trimmed_title(strip_bbcode($thread['preview'], falsetrue), 
                    
$vbulletin->options['threadpreview']) 
            )); 
        } 
        
//if the preview text is disabled, then make sure that we don't leave this function 
        //with it set. 
        
else 
        { 
            unset(
$thread['preview']); 
        } 
    } 

- افتح ملف includes/functions.php
ابحث عن :-
كود PHP:

  <a href="" . ($vbulletin->scriptpath) . (strpos($vbulletin->scriptpath'?') === false '?' '&amp;') . "explain=1\" target=\"_blank\" title=\"Explain Queries\">(?)</a> 


استبدله بــ:
كود PHP:

  <a href="" . (htmlspecialchars($vbulletin->scriptpath)) . (strpos($vbulletin->scriptpath'?') === false '?' '&amp;') . "explain=1\" target=\"_blank\" title=\"Explain Queries\">(?)</a> 

- افتح ملف vb/legacy/thread.php
ابحث عن :-
كود PHP:

$select[] = "post.pagetext AS preview"
        
$joins['threadpreview'] = "LEFT JOIN " TABLE_PREFIX "post AS post ON(post.postid = thread.firstpostid)"


استبدله بــ:
كود PHP:

if($vbulletin->options['threadpreview'] > 0
        { 
            
$select[] = "post.pagetext AS preview"
            
$joins['threadpreview'] = "LEFT JOIN " TABLE_PREFIX "post AS post ON(post.postid = thread.firstpostid)"
        } 
        else  
        { 
            
//being a chicken here and making sure we don't remove the preview item  
            //from the array in case it matters 
            
$select[] = "'' as preview"
        } 


- افتح ملف includes/version_vbulletin.php
استبدل كل ما بداخله بـــ :-
كود PHP:

 <?php 

define
('FILE_VERSION_VBULLETIN''4.0.2 Patch Level 1'); 

?>


wub2Sat 2wub21














•ADD• 22 ربيع الأول 1431هـ / 7-03-2010م 04:27

بارك الله فيك حبيبي بوزكريا على المتابعة الرائعة والجديد
تحية طيبة


الساعة الآن » 10:39.

Powered by vBulletin
.Copyright ©2000 - 2024, Jelsoft Enterprises Ltd