Autor Tópico: SMF 1.1.15 para 1.1.16  (Lida 6370 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.15 para 1.1.16
« em: 23 de Dezembro de 2011, 09:00 »
Este ficheiro patch irá actualizar o seu fórum SMF para 1.1.16.
./index.php
Código: [Seleccione]
* =============================================================================== * * Software Version:           SMF 1.1.15                                          *
Código: [Seleccione]
* =============================================================================== * * Software Version:           SMF 1.1.16                                          *
Código: [Seleccione]
$forum_version = 'SMF 1.1.15';
Código: [Seleccione]
$forum_version = 'SMF 1.1.16';
Código: [Seleccione]
foreach (array('db_character_set') as $variable) if (isset($GLOBALS[$variable])) unset($GLOBALS[$variable]);
Código: [Seleccione]
foreach (array('db_character_set') as $variable) if (isset($GLOBALS[$variable])) unset($GLOBALS[$variable], $GLOBALS[$variable]);

./Sources/Packages.php
Código: [Seleccione]
* =============================================================================== * * Software Version:           SMF 1.1.11                                          *
Código: [Seleccione]
* =============================================================================== * * Software Version:           SMF 1.1.16                                          *
Código: [Seleccione]
updateSettings(array( 'package_server' => $_POST['pack_server'], 'package_port' => $_POST['pack_port'], 'package_username' => $_POST['pack_user'], 'package_make_backups' => !empty($_POST['package_make_backups']) ));
Código: [Seleccione]
updateSettings(array( 'package_server' => htmlspecialchars($_POST['pack_server'], ENT_QUOTES), 'package_port' => htmlspecialchars($_POST['pack_port'], ENT_QUOTES), 'package_username' => htmlspecialchars($_POST['pack_user'], ENT_QUOTES), 'package_make_backups' => !empty($_POST['package_make_backups']) ));


./Sources/MessageIndex.php
Código: [Seleccione]
* =============================================================================== * * Software Version:           SMF 1.1                                             *
Código: [Seleccione]
* =============================================================================== * * Software Version:           SMF 1.1.16                                          *
Código: [Seleccione]
// View all the topics, or just a few? $maxindex = isset($_REQUEST['all']) && !empty($modSettings['enableAllMessages']) ? $board_info['num_topics'] : $modSettings['defaultMaxTopics']; // Make sure the starting place makes sense and construct the page index.
Código: [Seleccione]
// View all the topics, or just a few? $maxindex = isset($_REQUEST['all']) && !empty($modSettings['enableAllMessages']) ? $board_info['num_topics'] : $modSettings['defaultMaxTopics']; // We only know these. if (isset($_REQUEST['sort']) && !in_array($_REQUEST['sort'], array('subject', 'starter', 'last_poster', 'replies', 'views', 'first_post', 'last_post'))) $_REQUEST['sort'] = 'last_post'; // Make sure the starting place makes sense and construct the page index.