Update to 1.0.20/1.1.12 - Installation Instructions for 1.0.19
This patch file will update your forum to SMF 1.0.20.

File Edits ALT + Click to collapse all the operations

./Sources/DumpDatabase.php

Find: Select
* =============================================================================== *
* Software Version: SMF 1.0.10 *
Replace With: Select
* =============================================================================== *
* Software Version: SMF 1.0.20 *
Find: Select

// Probably MyISAM.... and it might have a comment.
$schema_create .= $crlf . ') TYPE=' . (isset($row['Type']) ? $row['Type'] : $row['Engine']) . ($row['Comment'] != '' ? ' COMMENT="' . $row['Comment'] . '"' : '');
Replace With: Select

// MySQL users below 4.0 can not use Engine
if (version_compare('4', preg_replace('~\-.+?$~', '', min(mysql_get_server_info(), mysql_get_client_info()))) > 0)
$schema_type = 'TYPE=';
else
$schema_type = 'ENGINE=';

// Probably MyISAM.... and it might have a comment.
$schema_create .= $crlf . ') ' . $schema_type . (isset($row['Type']) ? $row['Type'] : $row['Engine']) . ($row['Comment'] != '' ? ' COMMENT="' . $row['Comment'] . '"' : '');

./Sources/News.php

Find: Select
* =============================================================================== *
* Software Version: SMF 1.0.10 *
Replace With: Select
* =============================================================================== *
* Software Version: SMF 1.0.20 *
Find: Select
// Find the most recent members.
Replace With: Select
if (!allowedTo('view_mlist'))
return array();

// Find the most recent members.
Find: Select
// Load the member's contextual information!
if (!loadMemberContext($_GET['u']))
Replace With: Select
// Load the member's contextual information!
if (!loadMemberContext($_GET['u']) || !allowedTo('profile_view_any'))

./index.php

Find: Select
* =============================================================================== *
* Software Version: SMF 1.0.19 *
Replace With: Select
* =============================================================================== *
* Software Version: SMF 1.0.20 *
Find: Select

$forum_version = 'SMF 1.0.19';
Replace With: Select

$forum_version = 'SMF 1.0.20';
Advertisement: