ط®ط·ظˆط§طھ طھط±ظ‚ظٹط¹ ط§ظ„ظ†ط³ط®ط© 4.0.2 PL1



السلام عليكم ورحمة الله وبركاته

خطوات الترقيع للنسخه : 4.0.2 PL1

الترقيع فقط بأربع ملفات ,,

##################################################

نبدأ بسم الله :

الملف vb/thread.php

ابحث داخله عن :

رمز PHP:
<code style="white-space:nowrap"> <code> $select&#91;&#93; = "post.pagetext AS preview";
$joins&#91;'threadpreview'&#93; = "LEFT JOIN " . TABLE_PREFIX . "post AS post ON(post.postid = thread.firstpostid)";
</code> </code>

استبدله بـ :

رمز PHP:
<code style="white-space:nowrap"> <code> if($vbulletin->options&#91;'threadpreview'&#93; > 0)
{
$select&#91;&#93; = "post.pagetext AS preview";
$joins&#91;'threadpreview'&#93; = "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&#91;&#93; = "'' as preview";
}
</code> </code>


##################################################

الملف includes/class_core.php

ابحث داخله عن :

رمز PHP:
<code style="white-space:nowrap"> <code> $relpath = $vbulletin->input->fetch_relpath();
</code> </code>

استبدله بـ :

رمز PHP:
<code style="white-space:nowrap"> <code> $relpath = htmlspecialchars($vbulletin->input->fetch_relpath());
</code> </code>


##################################################

الملف includes/functions_forumdisplay.php

ابحث داخله عن :

رمز PHP:
<code style="white-space:nowrap"> <code> if ($ignore&#91;"$thread&#91;postuserid&#93;"&#93
{
$thread&#91;'preview'&#93; = '';
}
else if (isset(
$thread&#91;'preview'&#93 AND $vbulletin->options&#91;'threadpreview'&#93; > 0)
{
$thread&#91;'preview'&#93; = strip_quotes($thread&#91;'preview'&#93;
$thread&#91;'preview'&#93; = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title(
strip_bbcode($thread&#91;'preview'&#93;, false, true),
$vbulletin->options&#91;'threadpreview'&#93;
)));
}
</code> </code>


استبدله بـ :

رمز PHP:
<code style="white-space:nowrap"> <code> if ($ignore&#91;"$thread&#91;postuserid&#93;"&#93
{
$thread&#91;'preview'&#93; = '';
}
else if (isset(
$thread&#91;'preview'&#93)
{
if(
$vbulletin->options&#91;'threadpreview'&#93; > 0)
{
$thread&#91;'preview'&#93; = strip_quotes($thread&#91;'preview'&#93;
$thread&#91;'preview'&#93; = htmlspecialchars_uni(fetch_censored_text(
fetch_trimmed_title(strip_bbcode($thread&#91;'preview'&#93;, false, true),
$vbulletin->options&#91;'threadpreview'&#93
));
}
//if the preview text is disabled, then make sure that we don't leave this function
//with it set.
else
{
unset(
$thread&#91;'preview'&#93;
}
}
</code> </code>

##################################################

الملف includes/functions.php

ابحث داخله عن :

رمز Code:
<a href=\&quot;&quot; . ($vbulletin->scriptpath) . (strpos($vbulletin->scriptpath, '?') === false ? '?' : '&amp;') . &quot;explain=1\&quot; target=\&quot;_blank\&quot; title=\&quot;Explain Queries\&quot;>(?)</a>
استبدله بـ :

رمز Code:
<a href=\&quot;&quot; . (htmlspecialchars($vbulletin->scriptpath)) . (strpos($vbulletin->scriptpath, '?') === false ? '?' : '&amp;') . &quot;explain=1\&quot; target=\&quot;_blank\&quot; title=\&quot;Explain Queries\&quot;>(?)</a>

##################################################

الملف includes/version_vbulletin.php

لغير المرخصين يبقى كما هو
اما المرخصين يحذف كل مابداخله ويضع
رمز PHP:
<code style="white-space:nowrap"> <code> <?php

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

?>
</code> </code>

##################################################




هذا والله اعلم.

تحياتي ..








©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©