Advertisement:
Readme
This patch file will update your forum to SMF 1.0.12.
File Edits
./index.php
Operation #1
Find: [Select]
* Software Version: SMF 1.0.11 *
Replace With: [Select]
* Software Version: SMF 1.0.12 *
Operation #2
Find: [Select]
$forum_version = 'SMF 1.0.11';
Replace With: [Select]
$forum_version = 'SMF 1.0.12';
Operation #3
Find: [Select]
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'login2')
{
require_once($sourcedir . '/LogInOut.php');
return 'Login2';
Replace With: [Select]
if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'logout'))
{
require_once($sourcedir . '/LogInOut.php');
return $_REQUEST['action'] == 'login2' ? 'Login2' : 'Logout';
./Sources/Display.php
Operation #1
Find: [Select]
* Software Version: SMF 1.0.10 *
Replace With: [Select]
* Software Version: SMF 1.0.12 *
Operation #2
Find: [Select]
'name' => $attachment['filename'],
'downloads' => $attachment['downloads'],
'size' => round($attachment['filesize'] / 1024, 2) . ' ' . $txt['smf211'],
'byte_size' => $attachment['filesize'],
'href' => $scripturl . '?action=dlattach;topic=' . $topic . '.0;id=' . $attachment['ID_ATTACH'],
'link' => '<a href="' . $scripturl . '?action=dlattach;topic=' . $topic . '.0;id=' . $attachment['ID_ATTACH'] . '">' . $attachment['filename'] . '</a>',
Replace With: [Select]
'name' => htmlspecialchars($attachment['filename']),
'downloads' => $attachment['downloads'],
'size' => round($attachment['filesize'] / 1024, 2) . ' ' . $txt['smf211'],
'byte_size' => $attachment['filesize'],
'href' => $scripturl . '?action=dlattach;topic=' . $topic . '.0;id=' . $attachment['ID_ATTACH'],
'link' => '<a href="' . $scripturl . '?action=dlattach;topic=' . $topic . '.0;id=' . $attachment['ID_ATTACH'] . '">' . htmlspecialchars($attachment['filename']) . '</a>',
./Sources/ManageAttachments.php
Operation #1
Find: [Select]
* Software Version: SMF 1.0.10 *
Replace With: [Select]
* Software Version: SMF 1.0.12 *
Operation #2
Find: [Select]
'name' => $row['filename'],
'downloads' => $row['downloads'],
'href' => $scripturl . '?action=dlattach;' . ($context['browse_avatars'] ? 'type=avatar;' : 'topic=' . $row['ID_TOPIC'] . '.0;') . 'id=' . $row['ID_ATTACH'],
'link' => '<a href="' . $scripturl . '?action=dlattach;' . ($context['browse_avatars'] ? 'type=avatar;' : 'topic=' . $row['ID_TOPIC'] . '.0;') . 'id=' . $row['ID_ATTACH'] . '">' . $row['filename'] . '</a>'
Replace With: [Select]
'name' => htmlspecialchars($row['filename']),
'downloads' => $row['downloads'],
'href' => $row['attachmentType'] == 1 ? $modSettings['custom_avatar_url'] . '/' . $row['filename'] : ($scripturl . '?action=dlattach;' . ($context['browse_type'] == 'avatars' ? 'type=avatar;' : 'topic=' . $row['ID_TOPIC'] . '.0;') . 'id=' . $row['ID_ATTACH']),
'link' => '<a href="' . ($row['attachmentType'] == 1 ? $modSettings['custom_avatar_url'] . '/' . $row['filename'] : ($scripturl . '?action=dlattach;' . ($context['browse_type'] == 'avatars' ? 'type=avatar;' : 'topic=' . $row['ID_TOPIC'] . '.0;') . 'id=' . $row['ID_ATTACH'])) . '"' . (empty($row['width']) || empty($row['height']) ? '' : ' onclick="return reqWin(this.href + \';image\', ' . ($row['width'] + 20) . ', ' . ($row['height'] + 20) . ', true);"') . '>' . htmlspecialchars($row['filename']) . '</a>'
./Sources/Post.php
Operation #1
Find: [Select]
* Software Version: SMF 1.0.10 *
Replace With: [Select]
* Software Version: SMF 1.0.12 *
./Sources/QueryString.php
Operation #1
Find: [Select]
* Software Version: SMF 1.0.11 *
Replace With: [Select]
* Software Version: SMF 1.0.12 *
./Sources/Subs-Post.php
./Sources/Subs.php
Operation #1
Find: [Select]
* Software Version: SMF 1.0.10 *
Replace With: [Select]
* Software Version: SMF 1.0.12 *