September 25, 2021, 08:36:50 AM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


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: