Advertisement:
Advertise With Us!

Navigation

Readme

This patch file will update your forum to SMF 1.0.20.

File Edits

./Sources/DumpDatabase.php

Operation #1
Find: [Select]
* =============================================================================== *
* Software Version: SMF 1.0.10 *
Replace With: [Select]
* =============================================================================== *
* Software Version: SMF 1.0.20 *

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

Operation #1
Find: [Select]
* =============================================================================== *
* Software Version: SMF 1.0.10 *
Replace With: [Select]
* =============================================================================== *
* Software Version: SMF 1.0.20 *

Operation #2
Find: [Select]
// Find the most recent members.
Replace With: [Select]
if (!allowedTo('view_mlist'))
return array();

// Find the most recent members.

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

Operation #1
Find: [Select]
* =============================================================================== *
* Software Version: SMF 1.0.19 *
Replace With: [Select]
* =============================================================================== *
* Software Version: SMF 1.0.20 *

Operation #2
Find: [Select]

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

$forum_version = 'SMF 1.0.20';