kup{a}pazl | 20 Mart 2009 12:56 | SMF 1.1.8 manueL KuruLum.. Simple Machines, 1.1.7 sürümünde bulunan bazı açıklar nedeniyle SMF 1.1.8 sürümünü duyuruyor. En yakın zamanda forumunuzu yeni sürüme yükseltmenizi tavsiye ediyoruz. $boarddir/index.php
Kod: (bul) Kod:
* Software Version: SMF 1.1.7 Kod: (degistir) Kod:
* Software Version: SMF 1.1.8 Kod: (bul) Kod:
$forum_version = 'SMF 1.1.7'; Kod: (degistir) Kod:
$forum_version = 'SMF 1.1.8'; $sourcedir/PackageGet.php
Kod: (bul) Kod:
* Software Version: SMF 1.1.7 Kod: (degistir) Kod:
* Software Version: SMF 1.1.8 Kod: (bul) Kod:
// Clear any "relative" URL. Since "server" is not present, "relative" is garbage.
unset($_GET['relative']); Kod: (degistir) Kod:
// Clear any "relative" URL. Since "server" is not present, "relative" is garbage. unset($_GET['relative']);
$token = checkConfirm('get_absolute_url'); if ($token !== true) { $context['sub_template'] = 'package_confirm';
$context['page_title'] = $txt['smf183']; $context['confirm_message'] = sprintf($txt['package_confirm_view_package_content'], htmlspecialchars($_GET['absolute'])); $context['proceed_href'] = $scripturl . '?action=packageget;sa=browse;absolute=' . urlencode($_GET['absolute']) . ';confirm=' . $token;
return; } $sourcedir/Packages.php
Kod: (bul) Kod:
* Software Version: SMF 1.1.7 Kod: (degistir) Kod:
* Software Version: SMF 1.1.8 $sourcedir/Security.php
Kod: (bul) Kod:
* Software Version: SMF 1.1.6 Kod: (degistir) Kod:
* Software Version: SMF 1.1.8 Kod: (bul) Kod:
// Check whether a form has been submitted twice. function checkSubmitOnce($action, $is_fatal = true) {
Kod: (degistir) Kod:
function checkConfirm($action) { global $modSettings;
if (isset($_GET['confirm']) && isset($_SESSION['confirm_' . $action]) && md5($_GET['confirm'] . $_SERVER['HTTP_USER_AGENT']) !== $_SESSION['confirm_' . $action]) return true;
else { $token = md5(mt_rand() . session_id() . (string) microtime() . $modSettings['rand_seed']); $_SESSION['confirm_' . $action] = md5($token, $_SERVER['HTTP_USER_AGENT']);
return $token; } }
// Check whether a form has been submitted twice. function checkSubmitOnce($action, $is_fatal = true) { $themedir/Packages.template.php
Kod: (bul) Kod:
// Version: 1.1.7; Packages Kod: (degistir) Kod:
// Version: 1.1.8; Packages Kod: (bul) Kod:
function template_package_list() {
Kod: (degistir) Kod:
function template_package_confirm() { global $context, $settings, $options, $txt, $scripturl;
echo ' <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor"> <tr class="titlebg"> <td>' . $context['page_title'] . '</td> </tr> <tr> <td width="100%" align="left" valign="middle" class="windowbg2"> ', $context['confirm_message'], '<br /> <br /> <a href="', $context['proceed_href'], '">[ ', $txt['package_confirm_proceed'], ' ]</a> <a href="javascript:history.go(-1);">[ ', $txt['package_confirm_go_back'], ' ]</a> </td> </tr> </table>'; }
function template_package_list() { $sourcedir/Subs-Post.php
Kod: (bul) Kod:
* Software Version: SMF 1.1.5 Kod: (degistir) Kod:
* Software Version: SMF 1.1.8 Kod: (bul) Kod:
preg_match_all('~\[(' . $myTag . ')=([^\]]*?)\](.+?)\[/(' . $myTag . ' Kod: (degistir) Kod:
preg_match_all('~\[(' . $myTag . ')=([^\]]*?)\](?:(.+?)\[/(' . $myTag . ')\])?~is', $message, $matches); Kod: (bul) Kod:
if (!$hasEqualSign)
$this_close = $matches[3][$k];
else
$this_close = $matches[4][$k]; Kod: (degistir) Kod:
$this_close = $hasEqualSign ? (empty($matches[4][$k]) ? '' : $matches[4
Kod: (bul) Kod:
$replaces['[' . $matches[1][$k] . '=' . $matches[2][$k] . ']' . $matches[3][$k] . '[/' . $matches[4][$k] . ']'] = '[' . $this_tag . '=' . $replace . ']' . $matches[3][$k] . '[/' . $this_close . ']'; Kod: (degistir) Kod:
$replaces[$matches[0][$k]] = '[' . $this_tag . '=' . $replace . ']' . (empty($matches[4][$k]) ? '' : $matches[3][$k] . '[/' . $this_close . ']');
Teşekkürler,
Simple Machines [Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] |