Autor Tópico: SMF 1.1.14 para 1.1.15  (Lida 6159 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.14 para 1.1.15
« em: 22 de Setembro de 2011, 04:01 »
Este ficheiro patch irá actualizar o seu fórum SMF para 1.1.15.

./index.php

Pesquisar

Código: [Seleccione]
* =============================================================================== * * Software Version:           SMF 1.1.14                                          *
substituir por
Código: [Seleccione]
* =============================================================================== * * Software Version:           SMF 1.1.15                                          *
Código: [Seleccione]
$forum_version = 'SMF 1.1.14';
Código: [Seleccione]
$forum_version = 'SMF 1.1.15';


./Sources/Subs-Members.php
Código: [Seleccione]
* =============================================================================== * * Software Version:           SMF 1.1.14                                          *
 


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

Código: [Seleccione]
create_function('$string', '       $num = substr($string, 0, 1) === \'x\' ? hexdec(substr($string, 1)) : (int) $string;' . (empty($context['utf8']) ? '       return $num < 0x20 ? \'\' : ($num < 0x80 ? chr($num) : \'&#\' . $string . \';\');' : '

Código: [Seleccione]
create_function('$string', '       $num = substr($string, 0, 1) === \'x\' ? hexdec(substr($string, 1)) : (int) $string;       if ($num === 0x202E || $num === 0x202D) return \'\'; if (in_array($num, array(0x22, 0x26, 0x27, 0x3C, 0x3E))) return \'&#\' . $num . \';\';' .       (empty($context['utf8']) ? 'return $num < 0x20 ? \'\' : ($num < 0x80 ? chr($num) : \'&#\' . $string . \';\');' : '



./Sources/Load.php
Código: [Seleccione]
* =============================================================================== * * Software Version:           SMF 1.1.11                                          *
Código: [Seleccione]
* =============================================================================== * * Software Version:           SMF 1.1.15                                          *

Código: [Seleccione]
'entity_fix' => create_function('$string', '          $num = substr($string, 0, 1) === \'x\' ? hexdec(substr($string, 1)) : (int) $string;          return $num < 0x20 || $num > 0x10FFFF || ($num >= 0xD800 && $num <= 0xDFFF) ? \'\' : \'&#\' . $num . \';\';'),

Código: [Seleccione]
'entity_fix' => create_function('$string', '          $num = substr($string, 0, 1) === \'x\' ? hexdec(substr($string, 1)) : (int) $string;          return $num < 0x20 || $num === 0x202E || $num === 0x202D || $num > 0x10FFFF || ($num >= 0xD800 && $num <= 0xDFFF) ? \'\' : \'&#\' . $num . \';\';'),


./Sources/Subs.php
Código: [Seleccione]
* Software Version:           SMF 1.1.13                                          *   
                             

Código: [Seleccione]
* Software Version:           SMF 1.1.15                                          *
Código: [Seleccione]
   $forum_copyright = str_replace(array('Lewis Media', 'href="http://www.lewismedia.com/"', '2001-'), array('Simple Machines LLC', 'href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software"', ''), $forum_copyright);

Código: [Seleccione]
   $forum_copyright = str_replace(array('Lewis Media', 'Simple Machines LLC', 'href="http://www.lewismedia.com/"', '2001-'), array('Simple Machines', 'Simple Machines', 'href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software"', ''), $forum_copyright);
Código: [Seleccione]
   elseif (isset($modSettings['copyright_key']) && sha1($modSettings['copyright_key'] . 'banjo') == '1d01885ece7a9355bdeb22ed107f0ffa8c323026'){$found = true; return;}elseif ((strpos($forum_copyright, '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by SMF') !== false || strpos($forum_copyright, '<a href="http://www.simplemachines.org/" onclick="this.href += \'referer.php?forum=' . urlencode($context['forum_name'] . '|' . $boardurl . '|' . $forum_version) . '\';" target="_blank">SMF') !== false || strpos($forum_copyright, '<a href="http://www.simplemachines.org/" target="_blank">SMF') !== false || strpos($forum_copyright, '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">SMF') !== false)&&((strpos($forum_copyright, '<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy;') !== false && (strpos($forum_copyright, 'Lewis Media[/url]') !== false || strpos($forum_copyright, 'Simple Machines LLC[/url]') !== false)) || strpos($forum_copyright, 'Lewis Media') !== false || strpos($forum_copyright, '<a href="http://www.lewismedia.com/" target="_blank">Lewis Media[/url]') !== false || (strpos($forum_copyright, '<a href="http://www.simplemachines.org/about/copyright.php"') !== false &&   strpos($forum_copyright, 'Simple Machines LLC') !== false))){$found = true; echo $forum_copyright;}
Código: [Seleccione]
   elseif (isset($modSettings['copyright_key']) && sha1($modSettings['copyright_key'] . 'banjo') == '1d01885ece7a9355bdeb22ed107f0ffa8c323026'){$found = true; return;}elseif ((strpos($forum_copyright, '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by SMF') !== false || strpos($forum_copyright, '<a href="http://www.simplemachines.org/" onclick="this.href += \'referer.php?forum=' . urlencode($context['forum_name'] . '|' . $boardurl . '|' . $forum_version) . '\';" target="_blank">SMF') !== false || strpos($forum_copyright, '<a href="http://www.simplemachines.org/" target="_blank">SMF') !== false || strpos($forum_copyright, '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">SMF') !== false)&&((strpos($forum_copyright, '<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy;') !== false && (strpos($forum_copyright, 'Lewis Media[/url]') !== false || strpos($forum_copyright, 'Simple Machines[/url]') !== false)) || strpos($forum_copyright, 'Lewis Media') !== false || strpos($forum_copyright, '<a href="http://www.lewismedia.com/" target="_blank">Lewis Media[/url]') !== false || (strpos($forum_copyright, '<a href="http://www.simplemachines.org/about/copyright.php"') !== false &&   strpos($forum_copyright, 'Simple Machines') !== false))){$found = true; echo $forum_copyright;}


./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 . '[/url] | <a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy; 2006-2011, Simple Machines LLC[/url]';                           

Código: [Seleccione]
$forum_copyright = '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by ' . $forum_version . '[/url] | <a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy; 2011, Simple Machines[/url]';
Esta operação não é vital para a instalação deste mod.


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


Download
« Última modificação: 23 de Dezembro de 2011, 08:53 por candidosa2 »

Offline joomlamz

  • Fundador
  • *
  • Mensagens: 4265
  • Rank: 4877
  • Sexo: Masculino
  • Joomla!
    • Web Master !
Re: SMF 1.1.14 para 1.1.15
« Responder #1 em: 22 de Setembro de 2011, 10:08 »
Isso so pode ser feito manualmente
 notworthy notworthy
Apllic   Alojamentos Profissionais de Moçambique!

Offline Webmaster

  • Desenvolvimento
  • *
  • Mensagens: 2236
  • Rank: 113
  • Sexo: Masculino
  • JoomlaMZ !
    • Servidores
Re: SMF 1.1.14 para 1.1.15
« Responder #2 em: 08 de Outubro de 2011, 16:11 »
bom trabalho
Apllic! WebSuporte