Update to SMF 1.0.18 - Installation Instructions for 1.0.17

Update to SMF 1.0.18
This patch file will update your forum to SMF 1.0.18.

File Edits ALT + Click to collapse all the operations

./index.php

Find: Select
* Software Version: SMF 1.0.17 *
Replace With: Select
* Software Version: SMF 1.0.18 *
Find: Select
$forum_version = 'SMF 1.0.17';
Replace With: Select
$forum_version = 'SMF 1.0.18';

./Sources/ManageMembers.php

Find: Select
* Software Version: SMF 1.0.13 *
Replace With: Select
* Software Version: SMF 1.0.18 *
Find: Select
* Copyright 2006 by: Simple Machines LLC (http://www.simplemachines.org) *
Replace With: Select
* Copyright 2006-2009 by: Simple Machines LLC (http://www.simplemachines.org) *
Find: Select
'url' => 'http://www.apnic.net/apnic-bin/whois2.pl?searchtext=' . $searchip
Replace With: Select
'url' => 'http://wq.apnic.net/apnic-bin/whois.pl?searchtext=' . $searchip
Find: Select
'url' => 'http://ws.arin.net/cgi-bin/whois.pl?queryinput=' . $searchip
Replace With: Select
'url' => 'http://ws.arin.net/whois/?queryinput=' . $searchip
Find: Select
'url' => 'http://www.ripe.net/perl/whois?searchtext=' . $searchip
Replace With: Select
'url' => 'http://www.db.ripe.net/whois?searchtext=' . $searchip

./Sources/Packages.php

Find: Select
* Software Version: SMF 1.0.15 *
Replace With: Select
* Software Version: SMF 1.0.18 *
Find: Select
* Copyright 2006 by: Simple Machines LLC (http://www.simplemachines.org) *
Replace With: Select
* Copyright 2006-2009 by: Simple Machines LLC (http://www.simplemachines.org) *
Find: Select
'action' => strtr($mod_action['filename'], array($boarddir => '.')),
'description' => $failed ? $txt['package_action_failure'] : $txt['package_action_success']
Replace With: Select
'action' => htmlspecialchars(strtr($mod_action['filename'], array($boarddir => '.'))),
'description' => $failed ? $txt['package_action_failure'] : $txt['package_action_success']
Find: Select
'action' => strtr($mod_action['filename'], array($boarddir => '.')),
'description' => $txt['package_action_missing']
Replace With: Select
'action' => htmlspecialchars(strtr($mod_action['filename'], array($boarddir => '.'))),
'description' => $txt['package_action_missing']
Find: Select
'action' => strtr($mod_action['filename'], array($boarddir => '.')),
'description' => $txt['package_action_error']
Replace With: Select
'action' => htmlspecialchars(strtr($mod_action['filename'], array($boarddir => '.'))),
'description' => $txt['package_action_error']
Find: Select
'type' => $txt['package57'],
'action' => $action['filename']
Replace With: Select
'type' => $txt['package57'],
'action' => htmlspecialchars($action['filename'])
Find: Select
'type' => $txt['package50'] . ' ' . ($action['type'] == 'create-dir' ? $txt['package55'] : $txt['package54']),
'action' => strtr($action['destination'], array($boarddir => '.'))
Replace With: Select
'type' => $txt['package50'] . ' ' . ($action['type'] == 'create-dir' ? $txt['package55'] : $txt['package54']),
'action' => htmlspecialchars(strtr($action['destination'], array($boarddir => '.')))
Find: Select
'type' => $txt['package53'] . ' ' . ($action['type'] == 'require-dir' ? $txt['package55'] : $txt['package54']),
'action' => strtr($action['destination'], array($boarddir => '.'))
Replace With: Select
'type' => $txt['package53'] . ' ' . ($action['type'] == 'require-dir' ? $txt['package55'] : $txt['package54']),
'action' => htmlspecialchars(strtr($action['destination'], array($boarddir => '.')))
Find: Select
'type' => $txt['package51'] . ' ' . ($action['type'] == 'move-dir' ? $txt['package55'] : $txt['package54']),
'action' => strtr($action['source'], array($boarddir => '.')) . ' => ' . strtr($action['destination'], array($boarddir => '.'))
Replace With: Select
'type' => $txt['package51'] . ' ' . ($action['type'] == 'move-dir' ? $txt['package55'] : $txt['package54']),
'action' => htmlspecialchars(strtr($action['source'], array($boarddir => '.'))) . ' => ' . htmlspecialchars(strtr($action['destination'], array($boarddir => '.')))
Find: Select
'type' => $txt['package52'] . ' ' . ($action['type'] == 'remove-dir' ? $txt['package55'] : $txt['package54']),
'action' => strtr($action['filename'], array($boarddir => '.'))
Replace With: Select
'type' => $txt['package52'] . ' ' . ($action['type'] == 'remove-dir' ? $txt['package55'] : $txt['package54']),
'action' => htmlspecialchars(strtr($action['filename'], array($boarddir => '.')))

./Sources/Register.php

Find: Select
* Software Version: SMF 1.0.17 *
Replace With: Select
* Software Version: SMF 1.0.18 *
Find: Select
elseif (isset($_POST['emailPassword']))
Replace With: Select
elseif (isset($_POST['emailPassword']) || empty($_POST['password']))

./Sources/Subs-Auth.php

Find: Select
* Software Version: SMF 1.0.14 *
Replace With: Select
* Software Version: SMF 1.0.18 *
Find: Select
* Copyright 2006 by: Simple Machines LLC (http://www.simplemachines.org) *
Replace With: Select
* Copyright 2006-2009 by: Simple Machines LLC (http://www.simplemachines.org) *
Find: Select
// Version 4.3.2 didn't store the cookie of the new session.
if (version_compare(PHP_VERSION, '4.3.2') === 0)
setcookie(session_name(), session_id(), time() + $cookie_length, $cookie_url[1], '', 0);
Replace With: Select
// Version 4.3.2 didn't store the cookie of the new session.
if (version_compare(PHP_VERSION, '4.3.2') === 0 || (isset($_COOKIE[session_name()]) && $_COOKIE[session_name()] != session_id()))
setcookie(session_name(), session_id(), time() + $cookie_length, $cookie_url[1], '', 0);

./Themes/default/Register.template.php

Find: Select
if (document.creator.emailActivate.checked)
Replace With: Select
if (document.creator.emailActivate.checked || document.creator.password.value == \'\')
Find: Select
<input type="password" name="password" size="30" /><br />
Replace With: Select
<input type="password" name="password" size="30" onchange="onCheckChange();" /><br />
Find: Select
<input type="checkbox" name="emailPassword" checked="checked"', !empty($modSettings['registration_method']) && $modSettings['registration_method'] == 1 ? ' disabled="disabled"' : '', ' class="check" /><br />
Replace With: Select
<input type="checkbox" name="emailPassword" checked="checked" disabled="disabled" class="check" /><br />
Advertisement: