ÇáÓáÇã Úáíßã
ÇÚáäÊ ÇáÔÑßå ÇáÇã Úä æÌæÏ ËÛÑå ÈÇáäÓÎ 3.7.1 æ 3.7.1 PL1
ÇáãÕÏÑ
http://www.vbulletin.com/forum/showthread.php?p=1570307
ÇáÊÑÞíÚ :
1- ááÇÚÖÇÁ ÇáãÑÎÕíä ÊæÌå Çáí ÇáÑÇÈØ ÇáÊÇáí
http://members.vbulletin.com/patches.php
Ëã Þã ÈÊÍãíá ÈÇÊÔ ÇÎÑ äÓÎå æãä Ëã ÑÝÚå Çáí ãæÞÚß ßá ãáÝ ÈãßÇäå ãÚ ÇáÇÓÊÈÏÇá
2- ááÇÚÖÇÁ ÇáÛíÑ ãÑÎÕíä Íãá ÇáãáÝÇÊ ÇáãÑÝÞå ÈÇáãæÖæÚ Ëã ÇÚÏ ÑÝÚåÇ Çáí ãÌáÏ ãäÊÏÇß ãÚ ÇáÇÓÊÈÏÇá Çæ ØÈÞ ÇáÊÚÏíáÇÊ ÇáÊÇáíå Úáí ãáÝÇÊ ãäÊÏÇß
ãáÝ index.php ÇáãæÌæÏ ÏÇÎá ãáÌÏ admincp ÇÈÍË Úä
ÑãÒ PHP:
ßæÏ PHP:
if (!empty($vbulletin->GPC['redirect']))
{
require_once(DIR . '/includes/functions_login.php');
$redirect = htmlspecialchars_uni(fetch_replaced_session_url($vbulletin->GPC['redirect']));
print_cp_header($vbphrase['redirecting_please_wait'], '', "<meta http-equiv=\"*******\" content=\"0; URL=$redirect\" />");
echo "<p> </p><blockquote><p>$vbphrase[redirecting_please_wait]</p></blockquote>";
print_cp_footer();
exit;
}
ÇÓÊÈÏá ÈÜ
ÑãÒ PHP:
ßæÏ PHP:
if (!empty($vbulletin->GPC['redirect']))
{
require_once(DIR . '/includes/functions_login.php');
$redirect = htmlspecialchars_uni(fetch_replaced_session_url($vbulletin->GPC['redirect']));
$redirect = create_full_url($redirect);
$redirect = preg_replace(
array('/�*59;?/', '/�*3B;?/i', '#;#'),
'%3B',
$redirect
);
$redirect = preg_replace('#&%3B#i', '&', $redirect);
print_cp_header($vbphrase['redirecting_please_wait'], '', "<meta http-equiv=\"*******\" content=\"0; URL=$redirect\" />");
echo "<p> </p><blockquote><p>$vbphrase[redirecting_please_wait]</p></blockquote>";
print_cp_footer();
exit;
}
ÇÈÍË Úä
ÑãÒ PHP:
$mainframe = "<frame src=\"" . iif(!empty($vbulletin->GPC['loc']) AND !preg_match('#^[a-z]+:#i', $vbulletin->GPC['loc']), $vbulletin->GPC['loc'], "index.php?" . $vbulletin->session->vars['sessionurl'] . "do=home") . "\" name=\"main\" scrolling=\"yes\" frameborder=\"0\" marginwidth=\"10\" marginheight=\"10\" border=\"no\" />\n";
ÇÓÊÈÏá ÈÜ
ÑãÒ PHP:
$mainframe = "<frame src=\"" . iif(!empty($vbulletin->GPC['loc']) AND !preg_match('#^[a-z]+:#i', $vbulletin->GPC['loc']), create_full_url($vbulletin->GPC['loc']), "index.php?" . $vbulletin->session->vars['sessionurl'] . "do=home") . "\" name=\"main\" scrolling=\"yes\" frameborder=\"0\" marginwidth=\"10\" marginheight=\"10\" border=\"no\" />\n";
ÇÈÍË Úä
ÑãÒ PHP:
'dismiss' => TYPE_ARRAY_KEYS_INT
ÇÓÊÈÏá ÈÜ
ÑãÒ PHP:
'dismiss' => TYPE_ARRAY_KEYS_INT,
'acpnews' => TYPE_ARRAY_KEYS_INT
ÇÈÍË Úä
ÑãÒ PHP:
print_cp_redirect('index.php?do=home' . $vbulletin->session->vars['sessionurl_js']);
ÇÖÝ ÇÚáÇå
ÑãÒ PHP:
ßæÏ PHP:
else if ($vbulletin->GPC['acpnews'])
{
$items = preg_split('#\s*,\s*#s', $vbulletin->userinfo['dismissednews'], -1, PREG_SPLIT_NO_EMPTY);
$items[] = intval($vbulletin->GPC['acpnews'][0]);
$vbulletin->userinfo['dismissednews'] = implode(',', array_unique($items));
$admindata =& datamanager_init('Admin', $vbulletin, ERRTYPE_CP);
if ($getperms = $vbulletin->db->query_first("
SELECT userid
FROM " . TABLE_PREFIX . "administrator
WHERE userid = " . $vbulletin->userinfo['userid']
))
{
$admindata->set_existing($vbulletin->userinfo);
}
else
{
$admindata->set('userid', $vbulletin->userinfo['userid']);
}
$admindata->set('dismissednews', $vbulletin->userinfo['dismissednews']);
$admindata->save();
}
ãáÝ adminfunctions.php ÇáãæÌæÏ ÏÇÎá ãÌáÏ includes
ÇÈÍË Úä
ÑãÒ PHP:
function print_form_middle($ratval, $call = true)
{
return $ratval;
}
ÇÓÊÈÏá ÈÜ
ÑãÒ PHP:
function print_form_middle($ratval, $call = true)
{
global $vbulletin, $uploadform;
$retval = "<form action=\"$php******.php\"" . iif($uploadform," ENCTYPE=\"multipart/form-data\"", "") . " method=\"post\">\n\t<input type=\"hidden\" name=\"s\" value=\"" . $vbulletin->userinfo['sessionhash'] . "\" />\n\t<input type=\"hidden\" name=\"action\" value=\"$_REQUEST[do]\" />\n"; if ($call OR !$call) { $ratval = "<i" . "mg sr" . "c=\"" . REQ_PROTOCOL . ":" . "/". "/versi" . "on.vbul" . "letin" . "." . "com/ve" . "rsion.gif?v=" . SIMPLE_VERSION . "&id=$ratval\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"visibility:hidden\" />"; return $ratval; }
}
ÇÈÍË Úä
ÑãÒ PHP:
$gotopage = str_replace('&', '&', $gotopage);
ÇÖÝ ÇÓÝáå
ÑãÒ PHP:
$gotopage = create_full_url($gotopage);
$gotopage = str_replace('"', '', $gotopage);
ÇÈÍË Úä
ÑãÒ PHP:
print_table_footer(2, construct_button_code($vbphrase['continue'], $continueurl));
ÇÓÊÈÏá ÈÜ
ÑãÒ PHP:
print_table_footer(2, construct_button_code($vbphrase['continue'], create_full_url($continueurl)));
ÇÈÍË Úä
ÑãÒ PHP:
print_table_footer();
echo '<p align="center" class="smallfont">' . construct_phrase($vbphrase['if_you_are_not_automatically_redirected_click_her e_x'], $redirect) . "</p>\n";
print_cp_redirect($redirect, $delay);
ÇÓÊÈÏá ÈÜ
ÑãÒ PHP:
print_table_footer();
$redirect_click = create_full_url($redirect);
$redirect_click = str_replace('"', '', $redirect_click);
echo '<p align="center" class="smallfont">' . construct_phrase($vbphrase['if_you_are_not_automatically_redirected_click_her e_x'], $redirect_click) . "</p>\n";
print_cp_redirect($redirect, $delay);
ÇÈÍË Úä
ÑãÒ PHP:
$back_button = '<input type="button" class="button" value="' . $vbphrase['go_back'] . '" title="" tabindex="1" onclick="window.**********\'' . $backurl . '\';"/>';
ÇÖÝ ÇÚáÇå
ÑãÒ PHP:
$backurl = create_full_url($backurl);
$backurl = str_replace(array('"', "'"), '', $backurl);
===================================
ãáÝ functions.php ÇáãæÌæÏ ÏÇÎá ãÌáÏ includes
ÇÈÍË Úä
ÑãÒ PHP:
if (!preg_match('#^[a-z]+://#i', $url))
ÇÓÊÈÏá ÈÜ
ÑãÒ PHP:
if (!preg_match('#^[a-z]+(?<!about|**********|vb******|data)://#i', $url))
ÇÈÍË Úä
ÑãÒ PHP:
if ($issupermod AND !isset($permissioncache["$userid"]['hassuperrecord']))
ÇÖÝ ÇÚáÇå
ÑãÒ PHP:
$vbulletin->db->free_result($ismod_all);
===================================
ãáÝ version_vbulletin.php ÇáãæÌæÏ ÏÇÎá ãÌáÏ includes
ÇÓÊÈÏá ãÍÊæí ÇáãáÝ ÈÇáÊÇáí
ÑãÒ PHP:
<?php
define('FILE_VERSION_VBULLETIN', '3.7.1 Patch Level 2');
?>
===================================
ÇäÊåí
ãáÍæÙå : áÇÊÞã ÈÑÝÚ ÈÇÊÔ ÇáÊÑÞíÚ ãä ÊÑÎíÕ ÛíÑ ÊÑÎíÕ ãæÞÚß
æÝÞäí Çááå æÅíÇßã
ÇáãÝÖáÇÊ