Este ficheiro patch irá fornecer correções de segurança e de bugs para seu SMF 2.0.1 fórum.
./index.php* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0.1
* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0.2
$forum_version = 'SMF 2.0.1';
$forum_version = 'SMF 2.0.2';
if (isset($GLOBALS[$variable])) unset($GLOBALS[$variable]);
if (isset($GLOBALS[$variable])) unset($GLOBALS[$variable], $GLOBALS[$variable]);
./Sources/Packages.php* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0
* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0.2
global $txt, $scripturl, $context, $sourcedir, $modSettings; if (isset($_POST['submit']))
global $txt, $scripturl, $context, $sourcedir, $modSettings, $smcFunc; if (isset($_POST['submit']))
updateSettings(array( 'package_server' => $_POST['pack_server'], 'package_port' => $_POST['pack_port'], 'package_username' => $_POST['pack_user'], 'package_make_backups' => !empty($_POST['package_make_backups']) ));
updateSettings(array( 'package_server' => trim($smcFunc['htmlspecialchars']($_POST['pack_server'])), 'package_port' => trim($smcFunc['htmlspecialchars']($_POST['pack_port'])), 'package_username' => trim($smcFunc['htmlspecialchars']($_POST['pack_user'])), 'package_make_backups' => !empty($_POST['package_make_backups']) ));
./Sources/Memberlist.php* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0
* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0.2
'down' => allowedTo('moderate_forum') ? 'IFNULL(lo.log_time, 1) ASC, real_name ASC' : 'IF(mem.show_online, IFNULL(lo.log_time, 1), 1) ASC, real_name ASC', 'up' => allowedTo('moderate_forum') ? 'IFNULL(lo.log_time, 1) DESC, real_name DESC' : 'IF(mem.show_online, IFNULL(lo.log_time, 1), 1) DESC, real_name DESC'
'down' => allowedTo('moderate_forum') ? 'IFNULL(lo.log_time, 1) ASC, real_name ASC' : 'CASE WHEN mem.show_online THEN IFNULL(lo.log_time, 1) ELSE 1 END ASC, real_name ASC', 'up' => allowedTo('moderate_forum') ? 'IFNULL(lo.log_time, 1) DESC, real_name DESC' : 'CASE WHEN mem.show_online THEN IFNULL(lo.log_time, 1) ELSE 1 END DESC, real_name DESC'
./subscriptions.php* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0
* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0.2
// Start things rolling by getting SMF alive... if (!file_exists(dirname(__FILE__) . '/SSI.php'))
// Start things rolling by getting SMF alive... $ssi_guest_access = true; if (!file_exists(dirname(__FILE__) . '/SSI.php'))
./Sources/Profile-Modify.php* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0
* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0.2
if (isset($context[\'profile_languages\'][$value])) { if ($context[\'user\'][\'is_owner\'])
if (isset($context[\'profile_languages\'][$value])) { if ($context[\'user\'][\'is_owner\'] && empty($context[\'password_auth_failed\']))
./Sources/Load.php* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0.1
* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0.2
// If it is detected as a robot, and we are restricting permissions as a special group - then implement this. $spider_restrict = $user_info['possibly_robot'] && !empty($modSettings['spider_group']) ? ' OR (id_group = {int:spider_group} && add_deny = 0)' : '';
// If it is detected as a robot, and we are restricting permissions as a special group - then implement this. $spider_restrict = $user_info['possibly_robot'] && !empty($modSettings['spider_group']) ? ' OR (id_group = {int:spider_group} AND add_deny = 0)' : '';
./Sources/Who.php* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0
* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0.2
} // Does the user prefer a different sort direction?
} elseif (empty($modSettings['show_spider_online']) && isset($_SESSION['who_online_filter']) && $_SESSION['who_online_filter'] == 'spiders') unset($_SESSION['who_online_filter']); // Does the user prefer a different sort direction?
./Sources/ManagePaid.php* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0
* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0.2
<div class="floatleft"> <input type="submit" name="add" value="' . $txt['paid_add_subscription'] . '" class="button_submit" /> </div>
<div class="floatleft"> <input type="submit" name="add" value="' . $txt['add_subscriber'] . '" class="button_submit" /> </div>
./Themes/core/PersonalMessage.template.php* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0
* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0.2
<li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';
<li><a href="', $scripturl, '?action=emailuser;sa=email;uid=', $message['member']['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';
Esta operação nãoé vital paraa instalação destemod.
./Sources/MessageIndex.php* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0
* @copyright 2011 Simple Machines * @license http://www.simplemachines.org/about/smf/license.php BSD * * @version 2.0.2
$context['unapproved_posts_message'] = sprintf($txt['there_are_unapproved_topics'], $untopics, $unposts, $scripturl . '?action=moderate;area=postmod;sa=' . ($board_info['unapproved_topics'] ? 'topics' : 'posts') . ';brd=' . $board); } // Make sure the starting place makes sense and construct the page index.
$context['unapproved_posts_message'] = sprintf($txt['there_are_unapproved_topics'], $untopics, $unposts, $scripturl . '?action=moderate;area=postmod;sa=' . ($board_info['unapproved_topics'] ? 'topics' : 'posts') . ';brd=' . $board); } // We only know these. if (isset($_REQUEST['sort']) && !in_array($_REQUEST['sort'], array('subject', 'starter', 'last_poster', 'replies', 'views', 'first_post', 'last_post'))) $_REQUEST['sort'] = 'last_post'; // Make sure the starting place makes sense and construct the page index.