Autor Tópico: SMF 1.1.17 para SMF 1.1.18  (Lida 5707 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
SMF 1.1.17 para SMF 1.1.18
« em: 04 de Maio de 2014, 20:47 »
Este ficheiro de correcção irá atualizar seu fórum para SMF 1.1.18.

Editar ficheiro

./index.php

Localizar:

Código: [Seleccione]
* =============================================================================== *
* Software Version: SMF 1.1.17 *

Substituir por

Código: [Seleccione]
* =============================================================================== *
* Software Version: SMF 1.1.18 *



Código: [Seleccione]
$forum_version = 'SMF 1.1.17';

Código: [Seleccione]
$forum_version = 'SMF 1.1.18';

./Sources/Register.php


Código: [Seleccione]
* =============================================================================== *
* Software Version: SMF 1.1.10 *


Código: [Seleccione]
* =============================================================================== *
* Software Version: SMF 1.1.18 *


   
Código: [Seleccione]
if (isset($_POST['new_email'], $_REQUEST['passwd']) && sha1(strtolower($row['memberName']) . $_REQUEST['passwd']) == $row['passwd'])

   
Código: [Seleccione]
if (isset($_POST['new_email'], $_REQUEST['passwd']) && sha1(strtolower($row['memberName']) . $_REQUEST['passwd']) == $row['passwd'] && ($row['is_activated'] == 0 || $row['is_activated'] == 2))



./Sources/Themes.php

Código: [Seleccione]
* =============================================================================== *
* Software Version: SMF 1.1.11 *


Código: [Seleccione]
* =============================================================================== *
* Software Version: SMF 1.1.18 *

Código: [Seleccione]
list ($theme_dir, $context['theme_id']) = mysql_fetch_row($request);
mysql_free_result($request);



   
Código: [Seleccione]
list ($theme_dir, $context['theme_id']) = mysql_fetch_row($request);
mysql_free_result($request);

if (!file_exists($theme_dir . '/index.template.php'))
fatal_lang_error('theme_edit_missing', false);



./Sources/Reminder.php

Código: [Seleccione]
* =============================================================================== *
* Software Version: SMF 1.1.6 *

Código: [Seleccione]
* =============================================================================== *
* Software Version: SMF 1.1.18 *


   
Código: [Seleccione]
if (empty($_POST['code']) || substr($realCode, 0, 10) != substr(md5($_POST['code']), 0, 10))

   
Código: [Seleccione]
if (empty($_POST['code']) || substr($realCode, 0, 10) !== substr(md5($_POST['code']), 0, 10))


./Themes/default/languages/index.english.php

Código: [Seleccione]
$forum_copyright = '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by ' . $forum_version . '</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy; 2011, Simple Machines</a>';


Código: [Seleccione]
$forum_copyright = '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by ' . $forum_version . '</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy; 2013, Simple Machines</a>';

Esta operação não é vital para a instalação deste mod.


Código: [Seleccione]
// Version: 1.1.15; index

Código: [Seleccione]
// Version: 1.1.18; index
Esta operação não é vital para a instalação deste mod.