SMFPT - Suporte e Manutenção de Fórum em Português

Actualizar SMFPT ( upgrade/Update ) Automatico e Manual => SMF 2.0 => Tópico iniciado por: candidosa2 em 22 de Setembro de 2011, 04:16

Título: SMF 2.0 para SMF 2.0.1
Enviado por: candidosa2 em 22 de Setembro de 2011, 04:16
Estearquivo de patchirá fornecercorreções de segurançapara o seufórumSMF 2.0.
./index.php
Pesquisar
Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0

substituir por
Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0.1

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

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



./Sources/Subs-Menu.php
Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0

Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0.1



./Sources/Subs-Members.php
Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0


Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0.1

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]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0


Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0.1

Código: [Seleccione]
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 == 0x202E ? \'\' : \'&#\' . $num . \';\';'),

Código: [Seleccione]
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 === 0x202E || $num === 0x202D ? \'\' : \'&#\' . $num . \';\';'),




./Sources/ManageMaintenance.php
Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0

Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0.1

Código: [Seleccione]
$_POST['maxdays'] = (int) $_POST['maxdays'];
if (!empty($_POST['groups']) && $_POST['maxdays'])

Código: [Seleccione]
$_POST['maxdays'] = empty($_POST['maxdays']) ? 0 : (int) $_POST['maxdays'];
if (!empty($_POST['groups']) && $_POST['maxdays'] > 0)





./Sources/Subs-Package.php
Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0


Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0.1

Código: [Seleccione]
// Build an array of parts.
$versions[$id] = array(
'major' => (int) $parts[1],
'minor' => (int) $parts[2],
'patch' => (int) $parts[3],
'type' => empty($parts[4]) ? 'stable' : $parts[4],
'type_major' => (int) $parts[5],
'type_minor' => (int) $parts[6],
'dev' => !empty($parts[7]),
);

Código: [Seleccione]
// Build an array of parts.
$versions[$id] = array(
'major' => (int) $parts[1],
'minor' => !empty($parts[2]) ? (int) $parts[2] : 0,
'patch' => !empty($parts[3]) ? (int) $parts[3] : 0,
'type' => empty($parts[4]) ? 'stable' : $parts[4],
'type_major' => !empty($parts[6]) ? (int) $parts[5] : 0,
'type_minor' => !empty($parts[6]) ? (int) $parts[6] : 0,
'dev' => !empty($parts[7]),
);




./Sources/ModerationCenter.php
Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0


Código: [Seleccione]
* @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0.1

Código: [Seleccione]
$menuOptions = array(
'action' => 'moderate',
);

Código: [Seleccione]
$menuOptions = array(
'action' => 'moderate',
'disable_url_session_check' => true,
);


Download (http://custom.simplemachines.org/mods/downloads/smf_patch_2.0.1.tar.gz)
Título: Re: SMF 2.0 para SMF 2.0.1
Enviado por: joomlamz em 22 de Setembro de 2011, 10:07
Isso mesmo Bom trabalho