Este ficheiro de correcção irá atualizar seu fórum para SMF 1.1.18.
Editar ficheiro
./index.php
Localizar:
* =============================================================================== *
* Software Version: SMF 1.1.17 *
Substituir por
* =============================================================================== *
* Software Version: SMF 1.1.18 *
$forum_version = 'SMF 1.1.17';
$forum_version = 'SMF 1.1.18';
./Sources/Register.php
* =============================================================================== *
* Software Version: SMF 1.1.10 *
* =============================================================================== *
* Software Version: SMF 1.1.18 *
if (isset($_POST['new_email'], $_REQUEST['passwd']) && sha1(strtolower($row['memberName']) . $_REQUEST['passwd']) == $row['passwd'])
if (isset($_POST['new_email'], $_REQUEST['passwd']) && sha1(strtolower($row['memberName']) . $_REQUEST['passwd']) == $row['passwd'] && ($row['is_activated'] == 0 || $row['is_activated'] == 2))
./Sources/Themes.php
* =============================================================================== *
* Software Version: SMF 1.1.11 *
* =============================================================================== *
* Software Version: SMF 1.1.18 *
list ($theme_dir, $context['theme_id']) = mysql_fetch_row($request);
mysql_free_result($request);
list ($theme_dir, $context['theme_id']) = mysql_fetch_row($request);
mysql_free_result($request);
if (!file_exists($theme_dir . '/index.template.php'))
fatal_lang_error('theme_edit_missing', false);
./Sources/Reminder.php
* =============================================================================== *
* Software Version: SMF 1.1.6 *
* =============================================================================== *
* Software Version: SMF 1.1.18 *
if (empty($_POST['code']) || substr($realCode, 0, 10) != substr(md5($_POST['code']), 0, 10))
if (empty($_POST['code']) || substr($realCode, 0, 10) !== substr(md5($_POST['code']), 0, 10))
./Themes/default/languages/index.english.php
$forum_copyright = '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by ' . $forum_version . '</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF © 2011, Simple Machines</a>';
$forum_copyright = '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by ' . $forum_version . '</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF © 2013, Simple Machines</a>';
Esta operação não é vital para a instalação deste mod.
// Version: 1.1.15; index
// Version: 1.1.18; index
Esta operação não é vital para a instalação deste mod.