المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : [درس] : 3.8.4 pl1 مع خطوات الترقيع وملفات جاهزه


RSS
09-10-09, 03:12 AM
السلام عليكم
نظرا ً لوجود اخطاء لااعلم من اي ترقيع نزل او من خطوات خاطئه من من قام بالترقيع
هذه خطوات الترقيع

الملف
class_dm.php
ابحث عن
رمز PHP:
function verify_link(&$link)
{
if (preg_match('#^www\.#si', $link))
{
$link = 'http://' . $link;
return true;
}
else if (!preg_match('#^[a-z0-9]+://#si', $link))
{
// link doesn't match the http://-style format in the beginning -- possible attempted exploit
return false;
}
else
{
return true;
}
}



إستبدله بـ
رمز PHP:
function verify_link(&$link, $strict = false)
{
if (preg_match('#^www\.#si', $link))
{
$link = 'http://' . $link;
return true;
}
else if (!preg_match('#^[a-z0-9]+://#si', $link))
{
// link doesn't match the http://-style format in the beginning -- possible attempted exploit
return false;
}
else if ($strict && !preg_match('#^(http|https)://#si', $link))
{
// link that doesn't start with http:// or https:// should not be allowed in certain places (IE: profile homepage)
return false;
}
else
{
return true;
}
}



الملف
class_dm_user.php
ابحث عن
رمز PHP:
function verify_homepage(&$homepage)
{
return (empty($homepage)) ? true : $this->verify_link($homepage);
}



إستبدله بـ
رمز PHP:
function verify_homepage(&$homepage)
{
return (empty($homepage)) ? true : $this->verify_link($homepage);
}



ملف version_vbulletin.php لغير المرخصين يبقى كما هو
اما المرخصين يحذف كل مابداخله ويضع
رمز PHP:



ويفضل للمرخصين تحميله من الشركه

الملفات المرفقة http://www.traidnt.net/vb/images/attach/zip.gif 3.8.4 PL1.zip (http://www.traidnt.net/vb/attachment.php?attachmentid=417899&d=1255046514) (32.6 كيلوبايت)