بسم الله
مشكلة فى مجلة mk portal رمز الامان مفقوض
كل ما اقوم بتعديل اى شئ تظهر رسالة رمز الامان مفقود
تحياتى
مشكلة فى مجلة mk portal رمز الامان مفقوض
كل ما اقوم بتعديل اى شئ تظهر رسالة رمز الامان مفقود
تحياتى
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;
}
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;
}
// كود معدل من قبل مبرمجين شبكة ابن الخليج للنسخة
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}