:: مطرود من قبل الإدارة ::
|
[Edit][vb3.7] حل مشكلة Security Token Errors الرمز الأمني مفقود (((مهم جدا)))
بسم الله الرحمن الرحيم
لماذا هنا وضعت هذا الموضوع لان المجلة مربوطة معى قاعدة بيانات المنتدى فلابد من تصحيح الاثنين وليس المنتدى فقط حتى لا تقف المجلة
لنرى بسم الله :-
اولا افتح ملف functions.php من بعد ماتاخذ منه نسخه احتياطيه لتفادي اي خطا وارد بالتعديل رجاء ثانياً اخذ باك اب
ثم ابحث عن:
كود PHP:
كود PHP:
function printpage ($left, $right, $title, $content_main, $editor="") {
global $DB, $Skin, $mklib_board, $mkportals;
// parse content if there is header. Remove header and other duplicates tag
$board_header = "";
$pos = strpos($content_main, "<head>");
$pos2 = strpos($content_main, "</head>");
if ($pos && $pos2) {
$board_header = substr($content_main, ($pos +6), ($pos2 - $pos -6));
$content_main = substr($content_main, $pos2);
$content_main = str_replace ("</head>", "", $content_main);
$content_main = str_replace ("<body>", "", $content_main);
$content_main = str_replace ("</body>", "", $content_main);
$content_main = str_replace ("</html>", "", $content_main);
$content_main = "<tr><td valign=\"top\">".$content_main."</td></tr>";
}
//end parse
$output = $this->header($title, $left, $right, $board_header);
if ($this->loadcolumnleft) {
$output .= $this->block_left();
}
/*
قال صلى الله عليه واله و سلم : (( و أوفوا بالعهد ))
كما قال صلى الله عليه واله و سلم : (( المسلم أخو المسلم لا يظلمه ولا يسلمه ولا يخذله كل المسلم على المسلم حرام دمه و ماله و عرضه )) أي لا يخونه ولا يبيعه بعرض من الدنيا
و قال صلى الله عليه واله و سلم : (( إن الغادر ينصب الله له لواء يوم القيامة فيقال : ألا هذه غدرة فلان ))
و كذلك قال صلى الله عليه واله و سلم : (( المسلمون على شروطهم )) ولا شك أن غدر و خيانة المعاهد غير المسلم ذنب يعاقب عليه الشرع لذا فغدر و خيانة المسلم أشد وزراً
لذا فشروط إستعمال السكربت هي :الدعاء لي ولوالدي دعوى صالحه في ظهر الغيب
عدم استخدام السكربت في معصية الله كالمواقع المخله بالادب العام
عدم حذف حقوق السكربت او الوصله المبينه في المجلة تقديراً للجهود المبذوله
*/
$content_main = str_replace('©2004-2005 All rights reserved', '<a href="http://www.gulfson.com" target="_blank">تعريب وتطوير شبكة ابن الخليج</a>', $content_main);
$output .= $this->block_center($content_main);
if ($this->loadcolumnright) {
$output .= $this->block_right();
}
$output .= $editor;
$output .= $this->footer();
print $output;
$this->update_counter();
$DB->close_db();
exit;
}
واستبدله بـ:
كود PHP:
كود PHP:
// كود معدل من قبل مبرمجين شبكة ابن الخليج للنسخة vbulletin 3.7.* http://www.gulfson.com
function printpage ($left, $right, $title, $content_main, $editor="") {
global $DB, $Skin, $mklib_board, $mkportals, $vbulletin;
// parse content if there is header. Remove header and other duplicates tag
$board_header = "";
if (strpos($content_main, "<html>")) {
$board_header = preg_replace(array('/<(\/?)(meta|html).*?>/si','/<head>(.*?)<\/head>/si'), array('','\\1'), $content_main);
$content_main = preg_replace('/<body>(.*?)<\/body>/si', '<tr><td valign="top">\\1</td></tr>', $content_main);
}
//end parse
$output = $this->header($title, $left, $right, $board_header);
if ($this->loadcolumnleft) {
$output .= $this->block_left();
}
/* من فضلك احفظ امانتك ولاتحذف الحقوق التطويرية والبرمجية */
$content_main = str_replace('©2004-2005 All rights reserved', '<a href="http://www.gulfson.com" target="_blank">تعريب وتطوير شبكة ابن الخليج</a>', $content_main);
$output .= $this->block_center($content_main);
if ($this->loadcolumnright) {
$output .= $this->block_right();
}
$output .= $editor;
$output .= $this->footer();
$output = str_replace('</form>', '<input type="hidden" name="securitytoken" value="' . $vbulletin->userinfo['securitytoken'] . '" /></form>', $output);
print $output;
$this->update_counter();
$DB->close_db();
exit;
}
// كود معدل من قبل مبرمجين شبكة ابن الخليج للنسخة vbulletin 3.7.* http://www.gulfson.com
وابحث عن:
كود PHP:
كود PHP:
function printpage_forum ($left, $right, $title, $content_main, $editor="") {
global $DB, $Skin, $mklib_board, $mkportals;
// parse content if there is header. Remove header and other duplicates tag
$board_header = "";
$pos = strpos($content_main, "<head>");
$pos2 = strpos($content_main, "</head>");
if ($pos && $pos2) {
$board_header = substr($content_main, ($pos +6), ($pos2 - $pos -6));
$content_main = substr($content_main, $pos2);
$content_main = str_replace ("</head>", "", $content_main);
$content_main = str_replace ("<body>", "", $content_main);
$content_main = str_replace ("</body>", "", $content_main);
$content_main = str_replace ("</html>", "", $content_main);
$content_main = "<tr><td valign=\"top\">".$content_main."</td></tr>";
}
//end parse
$output = $this->header($title, $left, $right, $board_header);
if ($this->unloadforumleft == 0) {
$output .= $this->block_left();
}
$output .= $this->block_center($content_main);
if ($this->unloadforumright == 0) {
$output .= $this->block_right();
}
$output .= $editor;
$output .= $this->footer();
$this->update_counter();
return $output;
//$DB->close_db();
//exit;
}
واستبدله بـ:
كود PHP:
كود PHP:
// كود معدل من قبل مبرمجين شبكة ابن الخليج للنسخة vbulletin 3.7.* http://www.gulfson.com
function printpage_forum ($left, $right, $title, $content_main, $editor="") {
global $DB, $Skin, $mklib_board, $mkportals, $vbulletin;
// parse content if there is header. Remove header and other duplicates tag
$board_header = "";
if (strpos($content_main, "<html>")) {
$board_header = preg_replace(array('/<(\/?)(meta|html).*?>/si','/<head>(.*?)<\/head>/si'), array('','\\1'), $content_main);
$content_main = preg_replace('/<body>(.*?)<\/body>/si', '<tr><td valign="top">\\1</td></tr>', $content_main);
}
//end parse
$output = $this->header($title, $left, $right, $board_header);
if ($this->unloadforumleft == 0) {
$output .= $this->block_left();
}
$output .= $this->block_center($content_main);
if ($this->unloadforumright == 0) {
$output .= $this->block_right();
}
$output .= $editor;
$output .= $this->footer();
$this->update_counter();
$output = str_replace('</form>', '<input type="hidden" name="securitytoken" value="' . $vbulletin->userinfo['securitytoken'] . '" /></form>', $output);
return $output;
//$DB->close_db();
//exit;
}
// كود معدل من قبل مبرمجين شبكة ابن الخليج للنسخة vbulletin 3.7.* http://www.gulfson.com
وابحث عن:
كود PHP:
function printpage_admin ($title, $content_admin, $editor="") {
global $Skin, $DB;
require "admin/ad_menu.php";
$output = $this->header($title, "1", "0");
$output .= $Skin->view_column_left($menu);
$output .= $Skin->view_separator_v();
$output .= $this->block_center($content_admin);
$output .= $editor;
$output .= $this->footer_admin();
$DB->close_db();
print $output;
exit;
}
واستبدله بـ:
كود PHP:
كود PHP:
// كود معدل من قبل مبرمجين شبكة ابن الخليج للنسخة vbulletin 3.7.* http://www.gulfson.com
function printpage_admin ($title, $content_admin, $editor="") {
global $Skin, $DB, $vbulletin;
require "admin/ad_menu.php";
$output = $this->header($title, "1", "0");
$output .= $Skin->view_column_left($menu);
$output .= $Skin->view_separator_v();
$output .= $this->block_center($content_admin);
$output .= $editor;
$output .= $this->footer_admin();
$DB->close_db();
$output = str_replace('</form>', '<input type="hidden" name="securitytoken" value="' . $vbulletin->userinfo['securitytoken'] . '" /></form>', $output);
print $output;
exit;
}
// كود معدل من قبل مبرمجين شبكة ابن الخليج للنسخة vbulletin 3.7.* http://www.gulfson.com
وابحث عن:
كود PHP:
كود PHP:
function printpage_blog ($left, $right, $title, $content_blog, $editor="") {
global $mkportals, $DB, $Skin, $mklib_board;
require "mkportal/modules/blog/menusx.php";
require "mkportal/modules/blog/menudx.php";
$output = $this->header($title, $left, $right);
if ($this->loadcolumnleft) {
$output .= $Skin->view_column_left($menusx);
$output .= $Skin->view_separator_v();
}
$content_blog = str_replace('©2004-2005 All rights reserved', '<a href="http://www.gulfson.com" target="_blank">تعريب وتطوير شبكة ابن الخليج</a>', $content_blog);
$output .= $this->block_center($content_blog);
if ($this->loadcolumnright) {
$output .= $Skin->view_separator_v();
$output .= $Skin->view_column_right($menudx);
}
$output .= $editor;
$output .= $this->footer();
$this->update_counter();
$DB->close_db();
print $output;
exit;
}
واستبدله بـ:
كود PHP:
كود PHP:
// كود معدل من قبل مبرمجين شبكة ابن الخليج للنسخة vbulletin 3.7.* http://www.gulfson.com
function printpage_blog ($left, $right, $title, $content_blog, $editor="") {
global $mkportals, $DB, $Skin, $mklib_board, $vbulletin;
require "mkportal/modules/blog/menusx.php";
require "mkportal/modules/blog/menudx.php";
$output = $this->header($title, $left, $right);
if ($this->loadcolumnleft) {
$output .= $Skin->view_column_left($menusx);
$output .= $Skin->view_separator_v();
}
$content_blog = str_replace('©2004-2005 All rights reserved', '<a href="http://www.gulfson.com" target="_blank">تعريب وتطوير شبكة ابن الخليج</a>', $content_blog);
$output .= $this->block_center($content_blog);
if ($this->loadcolumnright) {
$output .= $Skin->view_separator_v();
$output .= $Skin->view_column_right($menudx);
}
$output .= $editor;
$output .= $this->footer();
$this->update_counter();
$DB->close_db();
$output = str_replace('</form>', '<input type="hidden" name="securitytoken" value="' . $vbulletin->userinfo['securitytoken'] . '" /></form>', $output);
print $output;
exit;
}
// كود معدل من قبل مبرمجين شبكة ابن الخليج للنسخة vbulletin 3.7.* http://www.gulfson.com
علماً ان الاكواد محسنه ومخفف عن ماسبقها
بارك الله فيكم وفى باقى فريق ابن الخليج الذى عملنا معى بعضنا على حل هذه المشكلة
وان حدث شئ عند التركيب هذه الوسوم ارجو قولها فى موضوع المشاكل بهذا القسم وسوف نحلها معى بعضنا انشاء الله تعالى
التعديل الأخير تم بواسطة op4host ; 01-07-2008 الساعة 02:02 AM.
|