المدير العام Admin
رقم العضوية : 1 نقاط : 2488 عدد المساهمات : 952 تاريخ التسجيل : 30/12/2009
بطاقة الشخصية الورقة الشخصية: الورقة الشخصية | | | al7afe |
| موضوع: 3.8.4 PL1 مع خطوات الترقيع وملفات جاهزه الثلاثاء مارس 02, 2010 6:32 pm | |
| السلام عليكم
خطوات ترقيع 3.8.4 PL1 مع خطوات الترقيع وملفات جاهزه
هذه خطوات الترقيع الملف 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, true); }
ملف version_vbulletin.php لغير المرخصين يبقى كما هو اما المرخصين يحذف كل مابداخله ويضع رمز كود PHP: define('FILE_VERSION_VBULLETIN', '3.8.4 Patch Level 1'); ?> ويفضل للمرخصين تحميله من الشركه
| |
|