Autor Tópico: 1.1.6 para 1.1.7 Upgrad  (Lida 14402 vezes)

0 Membros e 2 Visitantes estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
1.1.6 para 1.1.7 Upgrad
« em: 08 de Novembro de 2008, 12:47 »
$boarddir/index.php

Pesquisar
Código: [Seleccione]
* Software Version:           SMF 1.1.6                                           *
Alterar por
Código: [Seleccione]
* Software Version:           SMF 1.1.7                                           *
Código: [Seleccione]
$forum_version = 'SMF 1.1.6';
Código: [Seleccione]
$forum_version = 'SMF 1.1.7';

$boarddir/SSI.php

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

Alterar por
Código: [Seleccione]
* Software Version:           SMF 1.1.7                                           *

Código: [Seleccione]
elseif (isset($_REQUEST['ssi_layers']))
{
if ((@get_magic_quotes_gpc() ? addslashes($_REQUEST['ssi_layers']) : $_REQUEST['ssi_layers']) == htmlspecialchars($ssi_layers))
die('Hacking attempt...');
}


Código: [Seleccione]
elseif (isset($_REQUEST['ssi_layers'], $ssi_layers) && (@get_magic_quotes_gpc() ? stripslashes($_REQUEST['ssi_layers']) : $_REQUEST['ssi_layers']) == $ssi_layers)
die('Hacking attempt...');


$sourcedir/Help.php

Pesquisar
Código: [Seleccione]
if (!isset($_GET['page']) || !isset($context['all_pages'][$_GET['page']]))


Código: [Seleccione]
if (!isset($_GET['page']) || !is_string($_GET['page']) || !isset($context['all_pages'][$_GET['page']]))



$sourcedir/PackageGet.php

Pesquisar
Código: [Seleccione]
* Software Version:           SMF 1.1                                             *

Código: [Seleccione]
* Software Version:           SMF 1.1.7                                           *


Código: [Seleccione]
redirectexit('action=packages;sa=install;package=' . $package_name);

Código: [Seleccione]
redirectexit('action=packages;sa=install;package=' . $package_name . ';sesc=' . $context['session_id']);


Código: [Seleccione]
$context['package']['install']['link'] = '<a href="' . $scripturl . '?action=packages;sa=install;package=' . $context['package']['filename'] . '">[ ' . $txt['package11'] . ' ]</a>';
elseif ($context['package']['type'] == 'avatar')
$context['package']['install']['link'] = '<a href="' . $scripturl . '?action=packages;sa=install;package=' . $context['package']['filename'] . '">[ ' . $txt['package12'] . ' ]</a>';
elseif ($context['package']['type'] == 'language')
$context['package']['install']['link'] = '<a href="' . $scripturl . '?action=packages;sa=install;package=' . $context['package']['filename'] . '">[ ' . $txt['package13'] . ' ]</a>';
else
$context['package']['install']['link'] = '';

$context['package']['list_files']['link'] = '<a href="' . $scripturl . '?action=packages;sa=list;package=' . $context['package']['filename'] . '">[ ' . $txt['package14'] . ' ]</a>';

// Free a little bit of memory...


Código: [Seleccione]
$context['package']['install']['link'] = '<a href="' . $scripturl . '?action=packages;sa=install;package=' . $context['package']['filename'] . ';sesc=' . $context['session_id'] . '">[ ' . $txt['package11'] . ' ]</a>';
elseif ($context['package']['type'] == 'avatar')
$context['package']['install']['link'] = '<a href="' . $scripturl . '?action=packages;sa=install;package=' . $context['package']['filename'] . ';sesc=' . $context['session_id'] . '">[ ' . $txt['package12'] . ' ]</a>';
elseif ($context['package']['type'] == 'language')
$context['package']['install']['link'] = '<a href="' . $scripturl . '?action=packages;sa=install;package=' . $context['package']['filename'] . ';sesc=' . $context['session_id'] . '">[ ' . $txt['package13'] . ' ]</a>';
else
$context['package']['install']['link'] = '';

$context['package']['list_files']['link'] = '<a href="' . $scripturl . '?action=packages;sa=list;package=' . $context['package']['filename'] . '">[ ' . $txt['package14'] . ' ]</a>';

// Free a little bit of memory...

Código: [Seleccione]
$context['package']['install']['link'] = '<a href="' . $scripturl . '?action=packages;sa=install;package=' . $context['package']['filename'] . '">[ ' . $txt['package11'] . ' ]</a>';
elseif ($context['package']['type'] == 'avatar')
$context['package']['install']['link'] = '<a href="' . $scripturl . '?action=packages;sa=install;package=' . $context['package']['filename'] . '">[ ' . $txt['package12'] . ' ]</a>';
elseif ($context['package']['type'] == 'language')
$context['package']['install']['link'] = '<a href="' . $scripturl . '?action=packages;sa=install;package=' . $context['package']['filename'] . '">[ ' . $txt['package13'] . ' ]</a>';
else
$context['package']['install']['link'] = '';

$context['package']['list_files']['link'] = '<a href="' . $scripturl . '?action=packages;sa=list;package=' . $context['package']['filename'] . '">[ ' . $txt['package14'] . ' ]</a>';

unset($context['package']['xml']);

Código: [Seleccione]
$context['package']['install']['link'] = '<a href="' . $scripturl . '?action=packages;sa=install;package=' . $context['package']['filename'] . ';sesc=' . $context['session_id'] . '">[ ' . $txt['package11'] . ' ]</a>';
elseif ($context['package']['type'] == 'avatar')
$context['package']['install']['link'] = '<a href="' . $scripturl . '?action=packages;sa=install;package=' . $context['package']['filename'] . ';sesc=' . $context['session_id'] . '">[ ' . $txt['package12'] . ' ]</a>';
elseif ($context['package']['type'] == 'language')
$context['package']['install']['link'] = '<a href="' . $scripturl . '?action=packages;sa=install;package=' . $context['package']['filename'] . ';sesc=' . $context['session_id'] . '">[ ' . $txt['package13'] . ' ]</a>';
else
$context['package']['install']['link'] = '';

$context['package']['list_files']['link'] = '<a href="' . $scripturl . '?action=packages;sa=list;package=' . $context['package']['filename'] . '">[ ' . $txt['package14'] . ' ]</a>';

unset($context['package']['xml']);



$sourcedir/Packages.php

Pesquisar Por e trocar
Código: [Seleccione]
* Software Version:           SMF 1.1.2                                           *

Código: [Seleccione]
* Software Version:           SMF 1.1.7                                           *


Código: [Seleccione]
// Test install a package.
function PackageInstallTest()
{
global $boarddir, $txt, $context, $scripturl, $sourcedir, $modSettings;

// You have to specify a file!!
if (!isset($_REQUEST['package']) || $_REQUEST['package'] == '')


Código: [Seleccione]
// Test install a package.
function PackageInstallTest()
{
global $boarddir, $txt, $context, $scripturl, $sourcedir, $modSettings;

checkSession('get');

// You have to specify a file!!
if (empty($_REQUEST['package']) || preg_match('~[^\\w0-9.\\-_]~', $_REQUEST['package']) === 1 || strpos($_REQUEST['package'], '..') !== false)


Código: [Seleccione]
function PackageInstall()
{
global $boarddir, $txt, $context, $boardurl, $scripturl, $sourcedir, $modSettings;

// If there's no file, what are we installing?
if (!isset($_REQUEST['package']) || $_REQUEST['package'] == '')
redirectexit('action=packages');

Código: [Seleccione]
function PackageInstall()
{
global $boarddir, $txt, $context, $boardurl, $scripturl, $sourcedir, $modSettings;

checkSession('post');

// If there's no file, what are we installing?
if (empty($_REQUEST['package']) || preg_match('~[^\\w0-9.\\-_]~', $_REQUEST['package']) === 1 || strpos($_REQUEST['package'], '..') !== false)
redirectexit('action=packages');


Código: [Seleccione]
function PackageList()
{
global $txt, $scripturl, $boarddir, $context, $sourcedir;

require_once($sourcedir . '/Subs-Package.php');

// No package?  Show him or her the door.
if (!isset($_REQUEST['package']) || $_REQUEST['package'] == '')



Código: [Seleccione]
function PackageList()
{
global $txt, $scripturl, $boarddir, $context, $sourcedir;

require_once($sourcedir . '/Subs-Package.php');

// No package?  Show him or her the door.
if (empty($_REQUEST['package']) || preg_match('~[^\\w0-9.\\-_]~', $_REQUEST['package']) === 1 || strpos($_REQUEST['package'], '..') !== false)

Código: [Seleccione]
function ExamineFile()
{
global $txt, $scripturl, $boarddir, $context, $sourcedir;

require_once($sourcedir . '/Subs-Package.php');

// No package?  Show him or her the door.
if (!isset($_REQUEST['package']) || $_REQUEST['package'] == '')


Código: [Seleccione]
function ExamineFile()
{
global $txt, $scripturl, $boarddir, $context, $sourcedir;

checkSession('get');

require_once($sourcedir . '/Subs-Package.php');

// No package?  Show him or her the door.
if (empty($_REQUEST['package']) || preg_match('~[^\\w0-9.\\-_]~', $_REQUEST['package']) === 1 || strpos($_REQUEST['package'], '..') !== false)


Código: [Seleccione]
$context['filedata'] = '<img src="' . $scripturl . '?action=packages;sa=examine;package=' . $_REQUEST['package'] . ';file=' . $_REQUEST['file'] . ';raw" alt="' . $_REQUEST['file'] . '" />';


Código: [Seleccione]
$context['filedata'] = '<img src="' . $scripturl . '?action=packages;sa=examine;package=' . $_REQUEST['package'] . ';file=' . $_REQUEST['file'] . ';raw;sesc=' . $context['session_id'] . '" alt="' . $_REQUEST['file'] . '" />';


Código: [Seleccione]
function FlushInstall()
{
global $boarddir, $sourcedir;

Código: [Seleccione]
function FlushInstall()
{
global $boarddir, $sourcedir;

checkSession('get');

Código: [Seleccione]
// Delete a package.
function PackageRemove()
{
global $scripturl, $boarddir;


Código: [Seleccione]
// Delete a package.
function PackageRemove()
{
global $scripturl, $boarddir;

checkSession('get');


$sourcedir/QueryString.php

Pesquisar e alterar...
Código: [Seleccione]
* Software Version:           SMF 1.1.5                                           *


Código: [Seleccione]
* Software Version:           SMF 1.1.7                                           *

Código: [Seleccione]
parse_str(preg_replace('/&(\w+)(?=&|$)/', '&$1=', strtr($_SERVER['QUERY_STRING'], array(';?' => '&', ';' => '&'))), $_GET);


Código: [Seleccione]
parse_str(preg_replace('/&(\w+)(?=&|$)/', '&$1=', strtr($_SERVER['QUERY_STRING'], array(';?' => '&', ';' => '&', '%00' => '', "\0" => ''))), $_GET);


$sourcedir/Subs-Graphics.php
Pesquisar e alterar
Código: [Seleccione]
* Software Version:           SMF 1.1.6                                           *

Código: [Seleccione]
* Software Version:           SMF 1.1.7                                           *

Código: [Seleccione]
fwrite($fp, fetch_web_data($url));


Código: [Seleccione]
$fileContents = fetch_web_data($url);

// Though not an exhaustive list, better safe than sorry.
if (preg_match('~(iframe|\\<\\?php|\\<\\?|\\<%|html|eval|body|script)~', $fileContents) === 1)
{
fclose($fp);
return false;
}

fwrite($fp, $fileContents);


$sourcedir/Themes.php
Pesquisar e Alterar
Código: [Seleccione]
* Software Version:           SMF 1.1.2                                           *

Código: [Seleccione]
* Software Version:           SMF 1.1.7                                           *

Código: [Seleccione]
// Use a specific theme?

Código: [Seleccione]
$reservedVars = array(
'actual_theme_url',
'actual_images_url',
'base_theme_dir',
'base_theme_url',
'default_images_url',
'default_theme_dir',
'default_theme_url',
'default_template',
'images_url',
'number_recent_posts',
'smiley_sets_default',
'theme_dir',
'theme_id',
'theme_layers',
'theme_templates',
'theme_url',
);

// Can't change reserved vars.
if (in_array(strtolower($_GET['var']), $reservedVars))
redirectexit($settings['images_url'] . '/blank.gif');

// Use a specific theme?


$themedir/Packages.template.php
Pesquisar e alterar
Código: [Seleccione]
// Version: 1.1; Packages

Código: [Seleccione]
// Version: 1.1.7; Packages

Código: [Seleccione]
</form>';
}

function template_extract_package()

Código: [Seleccione]
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
}

function template_extract_package()

Código: [Seleccione]
<li><a href="', $scripturl, '?action=packages;sa=examine;package=', $context['filename'], ';file=', $fileinfo['filename'], '" title="', $txt[305], '">', $fileinfo['filename'], '</a> (', $fileinfo['size'], ' ', $txt['package_bytes'], ')</li>';

Código: [Seleccione]
<li><a href="', $scripturl, '?action=packages;sa=examine;package=', $context['filename'], ';file=', $fileinfo['filename'], ';sesc=', $context['session_id'], '" title="', $txt[305], '">', $fileinfo['filename'], '</a> (', $fileinfo['size'], ' ', $txt['package_bytes'], ')</li>';

Código: [Seleccione]
<td>', $file['version'], '</td>
<td align="right"><a href="', $scripturl, '?action=packages;sa=uninstall;package=', $file['filename'], '">[ ', $txt['smf198b'], ' ]</a></td>
</tr>';

echo '
</table>
<br />
<a href="', $scripturl, '?action=packages;sa=flush">[ ', $txt['smf198d'], ' ]</a>';


Código: [Seleccione]
<td>', $file['version'], '</td>
<td align="right"><a href="', $scripturl, '?action=packages;sa=uninstall;package=', $file['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['smf198b'], ' ]</a></td>
</tr>';

echo '
</table>
<br />
<a href="', $scripturl, '?action=packages;sa=flush;sesc=', $context['session_id'], '">[ ', $txt['smf198d'], ' ]</a>';


Código: [Seleccione]
foreach ($context['available_mods'] as $i => $package)
{
echo '
<tr>
<td>', ++$i, '.</td>
<td>', $package['name'], '</td>
<td>
', $package['version'];

if ($package['is_installed'] && !$package['is_newer'])
echo '
<img src="', $settings['images_url'], '/icons/package_', $package['is_current'] ? 'installed' : 'old', '.gif" alt="" width="12" height="11" align="middle" style="margin-left: 2ex;" />';

echo '
</td>
<td align="right">';

if ($package['can_uninstall'])
echo '
<a href="', $scripturl, '?action=packages;sa=uninstall;package=', $package['filename'], '">[ ', $txt['smf198b'], ' ]</a>';
elseif ($package['can_upgrade'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package_upgrade'], ' ]</a>';
elseif ($package['can_install'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package11'], ' ]</a>';

echo '
<a href="', $scripturl, '?action=packages;sa=list;package=', $package['filename'], '">[ ', $txt['package14'], ' ]</a>
<a href="', $scripturl, '?action=packages;sa=remove;package=', $package['filename'], '"', $package['is_installed'] && $package['is_current'] ? ' onclick="return confirm(\'' . $txt['package_delete_bad'] . '\');"' : '', '>[ ', $txt['package52'], ' ]</a>


Código: [Seleccione]
foreach ($context['available_mods'] as $i => $package)
{
echo '
<tr>
<td>', ++$i, '.</td>
<td>', $package['name'], '</td>
<td>
', $package['version'];

if ($package['is_installed'] && !$package['is_newer'])
echo '
<img src="', $settings['images_url'], '/icons/package_', $package['is_current'] ? 'installed' : 'old', '.gif" alt="" width="12" height="11" align="middle" style="margin-left: 2ex;" />';

echo '
</td>
<td align="right">';

if ($package['can_uninstall'])
echo '
<a href="', $scripturl, '?action=packages;sa=uninstall;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['smf198b'], ' ]</a>';
elseif ($package['can_upgrade'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['package_upgrade'], ' ]</a>';
elseif ($package['can_install'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['package11'], ' ]</a>';

echo '
<a href="', $scripturl, '?action=packages;sa=list;package=', $package['filename'], '">[ ', $txt['package14'], ' ]</a>
<a href="', $scripturl, '?action=packages;sa=remove;package=', $package['filename'], ';sesc=', $context['session_id'], '"', $package['is_installed'] && $package['is_current'] ? ' onclick="return confirm(\'' . $txt['package_delete_bad'] . '\');"' : '', '>[ ', $txt['package52'], ' ]</a>


Código: [Seleccione]
foreach ($context['available_avatars'] as $i => $package)
{
echo '
<tr>
<td>', ++$i, '.</td>
<td>', $package['name'], '</td>
<td>', $package['version'];

if ($package['is_installed'] && !$package['is_newer'])
echo '
<img src="', $settings['images_url'], '/icons/package_', $package['is_current'] ? 'installed' : 'old', '.gif" alt="" width="12" height="11" align="middle" style="margin-left: 2ex;" />';

echo '
</td>
<td align="right">';

if ($package['can_uninstall'])
echo '
<a href="', $scripturl, '?action=packages;sa=uninstall;package=', $package['filename'], '">[ ', $txt['smf198b'], ' ]</a>';
elseif ($package['can_upgrade'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package_upgrade'], ' ]</a>';
elseif ($package['can_install'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package11'], ' ]</a>';

echo '
<a href="', $scripturl, '?action=packages;sa=list;package=', $package['filename'], '">[ ', $txt['package14'], ' ]</a>
<a href="', $scripturl, '?action=packages;sa=remove;package=', $package['filename'], '">[ ', $txt['package52'], ' ]</a>


Código: [Seleccione]
foreach ($context['available_avatars'] as $i => $package)
{
echo '
<tr>
<td>', ++$i, '.</td>
<td>', $package['name'], '</td>
<td>', $package['version'];

if ($package['is_installed'] && !$package['is_newer'])
echo '
<img src="', $settings['images_url'], '/icons/package_', $package['is_current'] ? 'installed' : 'old', '.gif" alt="" width="12" height="11" align="middle" style="margin-left: 2ex;" />';

echo '
</td>
<td align="right">';

if ($package['can_uninstall'])
echo '
<a href="', $scripturl, '?action=packages;sa=uninstall;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['smf198b'], ' ]</a>';
elseif ($package['can_upgrade'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['package_upgrade'], ' ]</a>';
elseif ($package['can_install'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['package11'], ' ]</a>';

echo '
<a href="', $scripturl, '?action=packages;sa=list;package=', $package['filename'], '">[ ', $txt['package14'], ' ]</a>
<a href="', $scripturl, '?action=packages;sa=remove;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['package52'], ' ]</a>


Código: [Seleccione]
foreach ($context['available_languages'] as $i => $package)
{
echo '
<tr>
<td>' . ++$i . '.</td>
<td>' . $package['name'] . '</td>
<td>' . $package['version'];

if ($package['is_installed'] && !$package['is_newer'])
echo '
<img src="', $settings['images_url'], '/icons/package_', $package['is_current'] ? 'installed' : 'old', '.gif" alt="" width="12" height="11" align="middle" style="margin-left: 2ex;" />';

echo '
</td>
<td align="right">';

if ($package['can_uninstall'])
echo '
<a href="', $scripturl, '?action=packages;sa=uninstall;package=', $package['filename'], '">[ ', $txt['smf198b'], ' ]</a>';
elseif ($package['can_upgrade'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package_upgrade'], ' ]</a>';
elseif ($package['can_install'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package11'], ' ]</a>';

echo '
<a href="', $scripturl, '?action=packages;sa=list;package=', $package['filename'], '">[ ', $txt['package14'], ' ]</a>
<a href="', $scripturl, '?action=packages;sa=remove;package=', $package['filename'], '">[ ', $txt['package52'], ' ]</a>


Código: [Seleccione]
foreach ($context['available_languages'] as $i => $package)
{
echo '
<tr>
<td>' . ++$i . '.</td>
<td>' . $package['name'] . '</td>
<td>' . $package['version'];

if ($package['is_installed'] && !$package['is_newer'])
echo '
<img src="', $settings['images_url'], '/icons/package_', $package['is_current'] ? 'installed' : 'old', '.gif" alt="" width="12" height="11" align="middle" style="margin-left: 2ex;" />';

echo '
</td>
<td align="right">';

if ($package['can_uninstall'])
echo '
<a href="', $scripturl, '?action=packages;sa=uninstall;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['smf198b'], ' ]</a>';
elseif ($package['can_upgrade'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['package_upgrade'], ' ]</a>';
elseif ($package['can_install'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['package11'], ' ]</a>';

echo '
<a href="', $scripturl, '?action=packages;sa=list;package=', $package['filename'], '">[ ', $txt['package14'], ' ]</a>
<a href="', $scripturl, '?action=packages;sa=remove;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['package52'], ' ]</a>


Código: [Seleccione]
foreach ($context['available_other'] as $i => $package)
{
echo '
<tr>
<td>' . ++$i . '.</td>
<td>' . $package['name'] . '</td>
<td>' . $package['version'];

if ($package['is_installed'] && !$package['is_newer'])
echo '
<img src="', $settings['images_url'], '/icons/package_', $package['is_current'] ? 'installed' : 'old', '.gif" alt="" width="12" height="11" align="middle" style="margin-left: 2ex;" />';

echo '
</td>
<td align="right">';

if ($package['can_uninstall'])
echo '
<a href="', $scripturl, '?action=packages;sa=uninstall;package=', $package['filename'], '">[ ', $txt['smf198b'], ' ]</a>';
elseif ($package['can_upgrade'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package_upgrade'], ' ]</a>';
elseif ($package['can_install'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package11'], ' ]</a>';

echo '
<a href="', $scripturl, '?action=packages;sa=list;package=', $package['filename'], '">[ ', $txt['package14'], ' ]</a>
<a href="', $scripturl, '?action=packages;sa=remove;package=', $package['filename'], '"', $package['is_installed'] ? ' onclick="return confirm(\'' . $txt['package_delete_bad'] . '\');"' : '', '>[ ', $txt['package52'], ' ]</a>

Código: [Seleccione]
foreach ($context['available_other'] as $i => $package)
{
echo '
<tr>
<td>' . ++$i . '.</td>
<td>' . $package['name'] . '</td>
<td>' . $package['version'];

if ($package['is_installed'] && !$package['is_newer'])
echo '
<img src="', $settings['images_url'], '/icons/package_', $package['is_current'] ? 'installed' : 'old', '.gif" alt="" width="12" height="11" align="middle" style="margin-left: 2ex;" />';

echo '
</td>
<td align="right">';

if ($package['can_uninstall'])
echo '
<a href="', $scripturl, '?action=packages;sa=uninstall;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['smf198b'], ' ]</a>';
elseif ($package['can_upgrade'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['package_upgrade'], ' ]</a>';
elseif ($package['can_install'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['package11'], ' ]</a>';

echo '
<a href="', $scripturl, '?action=packages;sa=list;package=', $package['filename'], '">[ ', $txt['package14'], ' ]</a>
<a href="', $scripturl, '?action=packages;sa=remove;package=', $package['filename'], ';sesc=', $context['session_id'], '"', $package['is_installed'] ? ' onclick="return confirm(\'' . $txt['package_delete_bad'] . '\');"' : '', '>[ ', $txt['package52'], ' ]</a>


ficheiro em anexo seguranca  $boarddir/Packages
« Última modificação: 07 de Junho de 2009, 07:46 por candidosa2 »

Offline AlaStar

  • Iniciar SmfPt
  • *
  • Mensagens: 43
  • Rank: 2
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #1 em: 09 de Novembro de 2008, 01:39 »
Obrigado candidosa2, vou testar  wink

no meu fórum não funcionam ficheiros .htaccess, já tentei usar anteriormente e não dá, os administradores do host desactivaram isso, é importante esse anexo ??
« Última modificação: 09 de Novembro de 2008, 01:48 por AlaStar »

Offline AlaStar

  • Iniciar SmfPt
  • *
  • Mensagens: 43
  • Rank: 2
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #2 em: 09 de Novembro de 2008, 04:12 »
só me falta alterar o ficheiro $sourcedir/Subs-Graphics.php

não percebi aqui se é para colocar antes ou depois ou se para substituir

Código: [Seleccione]
fwrite($fp, fetch_web_data($url));


Código: [Seleccione]
$fileContents = fetch_web_data($url);

// Though not an exhaustive list, better safe than sorry.
if (preg_match('~(iframe|\\<\\?php|\\<\\?|\\<%|html|eval|body|script)~', $fileContents) === 1)
{
fclose($fp);
return false;
}

fwrite($fp, $fileContents);


será que me pode dizer candidosa2, se faz favor, obrigado  wink

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #3 em: 09 de Novembro de 2008, 06:21 »
Tudo e para pesquisar e depois substituir
Exemplo pesquisar por
Código: [Seleccione]
fwrite($fp, fetch_web_data($url));

e trocar por
Código: [Seleccione]
$fileContents = fetch_web_data($url);

// Though not an exhaustive list, better safe than sorry.
if (preg_match('~(iframe|\\<\\?php|\\<\\?|\\<%|html|eval|body|script)~', $fileContents) === 1)
{
fclose($fp);
return false;
}

fwrite($fp, $fileContents);


o ficheiro .htaccess nao existia e novo tens que colocar na pasta Packages aonde ficam mos mods instalados


Offline AlaStar

  • Iniciar SmfPt
  • *
  • Mensagens: 43
  • Rank: 2
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #4 em: 10 de Novembro de 2008, 03:41 »
Obrigado candidosa2  wink

quanto ao ficheiro .htaccess já coloquei há mesma ;)


como é que posso actualizar a base de dados da v1.1.6 para a v1.1.7, onde é que posso ir buscar o ficheiro upload.php ??

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #5 em: 10 de Novembro de 2008, 04:41 »
Em que versão esta a tua base de dado se estiver na 1.1.6 esta certo não precisa porque a 1.1.7 não mexe na base de dado... só são ficheiros
Conforme os meu textes ele não pediu Upgrad database

Offline AlaStar

  • Iniciar SmfPt
  • *
  • Mensagens: 43
  • Rank: 2
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #6 em: 10 de Novembro de 2008, 05:07 »
a minha base de dados está na v1.1.6.

anteriormente disse upload.php mas queria dizer upgrade.php.

eu penso que seja preciso fazer upgrade à base de dados para a v1.1.7, sempre foi preciso, será que basta usar o ficheiro upgrade.php para fazer upgrade à base de dados, ou é preciso usar mais alguma coisa ??

é que eu normalmente usava só o Small update, mas tinha que voltar a instalar os mod's todos há mão  sad

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #7 em: 10 de Novembro de 2008, 05:50 »
sim podes fazer se for isso
esta no anexo o ficheiro
Basta copiar para pasta do forum upgrade.php ele vai correr

Offline AlaStar

  • Iniciar SmfPt
  • *
  • Mensagens: 43
  • Rank: 2
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #8 em: 10 de Novembro de 2008, 21:09 »
ok, obrigado candidosa2  wink

vou experimentar e depois digo alguma coisa.

Offline andre-

  • Iniciar SmfPt
  • *
  • Mensagens: 72
  • Rank: 2
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #9 em: 23 de Novembro de 2008, 00:05 »
estou usando a versao do smf 1.1.5 quero atualizar para versao 1.1.7 gostaria de saber sem o procedimento poder sem usando, pois tento atualizar automaticamento via path so que da erro...

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #10 em: 23 de Novembro de 2008, 00:10 »
sim pode mais tem que fazer Backup
dos ficheiros....


Offline pedrox

  • Iniciar SmfPt
  • *
  • Mensagens: 13
  • Rank: 0
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #11 em: 24 de Novembro de 2008, 21:42 »
Desculpem, estou baralhado, qual das opções  aqui eu uso para actualizar o meu smf de 115 para 117 ?  wink

Eu já tentei actualizar substituindo os ficheiros com a versão upgrade (smf_1-1-7_upgrade) para a versão 117 mas o fórum continua na versão 115... e agora queria tentar fazer isso manualmente. O que me aconselham fazer ?
« Última modificação: 24 de Novembro de 2008, 21:49 por pedrox »

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #12 em: 24 de Novembro de 2008, 23:08 »
Podes tentar a opção manual que funciona 100%
porque este fórum foi feito manualmente


Offline pedrox

  • Iniciar SmfPt
  • *
  • Mensagens: 13
  • Rank: 0
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #13 em: 25 de Novembro de 2008, 02:21 »
Modifiquei as 3 primeiras pastas e o fórum desapareceu... Tive de repor tudo novamente. Felizmente tinha guardado cópias...

O meu fórum é 115 e tentei atualizar para 117, seguindo as instruções neste poste
Eu fiz as substituições, exactamente, como indica ai. Não entendo porque não resultou... ???
« Última modificação: 25 de Novembro de 2008, 02:30 por pedrox »

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Re: 1.1.6 para 1.1.7 Upgrad
« Responder #14 em: 25 de Novembro de 2008, 05:19 »
Algum procedimento esta a fazer mal...tem algum servidor no pc so pra fazer textes
porque funciona 100%
agora se fizer alguma coisa mal ai sim que nao vai funcionar