said
10-30-2013, بتوقيت غرينيتش 10:23 PM
http://www.dzbatna.com/images/icons/icon30.gif ط®ط·ظˆط§طھ طھط±ظ‚ظٹط¹ ط§ظ„ظ†ط³ط®ط© 4.0.2 PL1 (http://www.dzbatna.com/t1481534/)
السلام عليكم ورحمة الله وبركاته
خطوات الترقيع للنسخه : 4.0.2 PL1
الترقيع فقط بأربع ملفات ,,
##################################################
نبدأ بسم الله :
الملف vb/thread.php
ابحث داخله عن :
رمز PHP:
<code style="white-space:nowrap"> <code> $select[] = "post.pagetext AS preview";
$joins['threadpreview'] = "LEFT JOIN " . TABLE_PREFIX . "post AS post ON(post.postid = thread.firstpostid)";
</code> </code>
استبدله بـ :
رمز PHP:
<code style="white-space:nowrap"> <code> 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";
}
</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["$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_tri mmed_title(
strip_bbcode($thread['preview'], false, true),
$vbulletin->options['threadpreview']
)));
}
</code> </code>
استبدله بـ :
رمز PHP:
<code style="white-space:nowrap"> <code> 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' ], false, true),
$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']);
}
}
</code> </code>
##################################################
الملف includes/functions.php
ابحث داخله عن :
رمز Code:
<a href=\"" . ($vbulletin->scriptpath) . (strpos($vbulletin->scriptpath, '?') === false ? '?' : '&') . "explain=1\" target=\"_blank\" title=\"Explain Queries\">(?)</a>
استبدله بـ :
رمز Code:
<a href=\"" . (htmlspecialchars($vbulletin->scriptpath)) . (strpos($vbulletin->scriptpath, '?') === false ? '?' : '&') . "explain=1\" target=\"_blank\" title=\"Explain Queries\">(?)</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>
##################################################
هذا والله اعلم.
تحياتي ..
ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©
السلام عليكم ورحمة الله وبركاته
خطوات الترقيع للنسخه : 4.0.2 PL1
الترقيع فقط بأربع ملفات ,,
##################################################
نبدأ بسم الله :
الملف vb/thread.php
ابحث داخله عن :
رمز PHP:
<code style="white-space:nowrap"> <code> $select[] = "post.pagetext AS preview";
$joins['threadpreview'] = "LEFT JOIN " . TABLE_PREFIX . "post AS post ON(post.postid = thread.firstpostid)";
</code> </code>
استبدله بـ :
رمز PHP:
<code style="white-space:nowrap"> <code> 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";
}
</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["$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_tri mmed_title(
strip_bbcode($thread['preview'], false, true),
$vbulletin->options['threadpreview']
)));
}
</code> </code>
استبدله بـ :
رمز PHP:
<code style="white-space:nowrap"> <code> 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' ], false, true),
$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']);
}
}
</code> </code>
##################################################
الملف includes/functions.php
ابحث داخله عن :
رمز Code:
<a href=\"" . ($vbulletin->scriptpath) . (strpos($vbulletin->scriptpath, '?') === false ? '?' : '&') . "explain=1\" target=\"_blank\" title=\"Explain Queries\">(?)</a>
استبدله بـ :
رمز Code:
<a href=\"" . (htmlspecialchars($vbulletin->scriptpath)) . (strpos($vbulletin->scriptpath, '?') === false ? '?' : '&') . "explain=1\" target=\"_blank\" title=\"Explain Queries\">(?)</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>
##################################################
هذا والله اعلم.
تحياتي ..
ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©