Advertisement:

Navigation

Readme

This patch file will update your forum to SMF 1.0.18.

File Edits

./index.php

Operation #1
Find: [Select]
* Software Version: SMF 1.0.17 *
Replace With: [Select]
* Software Version: SMF 1.0.18 *
Operation #2
Find: [Select]
$forum_version = 'SMF 1.0.17';
Replace With: [Select]
$forum_version = 'SMF 1.0.18';

./Sources/ManageMembers.php

Operation #1
Find: [Select]
* Software Version: SMF 1.0.13 *
Replace With: [Select]
* Software Version: SMF 1.0.18 *
Operation #2
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) *
Operation #3
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
Operation #4
Find: [Select]
'url' => 'http://ws.arin.net/cgi-bin/whois.pl?queryinput=' . $searchip
Replace With: [Select]
'url' => 'http://ws.arin.net/whois/?queryinput=' . $searchip
Operation #5
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

Operation #1
Find: [Select]
* Software Version: SMF 1.0.15 *
Replace With: [Select]
* Software Version: SMF 1.0.18 *
Operation #2
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) *
Operation #3
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']

Operation #4
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']

Operation #5
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']

Operation #6
Find: [Select]
'type' => $txt['package57'],
'action' => $action['filename']
Replace With: [Select]
'type' => $txt['package57'],
'action' => htmlspecialchars($action['filename'])

Operation #7
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 => '.')))

Operation #8
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 => '.')))

Operation #9
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 => '.')))

Operation #10
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

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

./Sources/Subs-Auth.php

Operation #1
Find: [Select]
* Software Version: SMF 1.0.14 *
Replace With: [Select]
* Software Version: SMF 1.0.18 *
Operation #2
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) *
Operation #3
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

Operation #1
Find: [Select]
if (document.creator.emailActivate.checked)
Replace With: [Select]
if (document.creator.emailActivate.checked || document.creator.password.value == \'\')
Operation #2
Find: [Select]
<input type="password" name="password" size="30" /><br />
Replace With: [Select]
<input type="password" name="password" size="30" onchange="onCheckChange();" /><br />
Operation #3
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 />