SydneyfunneL 06.02.2009 20:22:37
* Software Version: SMF 1.1.7 ** Software Version: SMF 1.1.8 *$forum_version = 'SMF 1.1.7';$forum_version = 'SMF 1.1.8';* Software Version: SMF 1.1.7 ** Software Version: SMF 1.1.8 *// Clear any "relative" URL. Since "server" is not present, "relative" is garbage.
unset($_GET['relative']);// 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;
}* Software Version: SMF 1.1.7 ** Software Version: SMF 1.1.8 ** Software Version: SMF 1.1.6 ** Software Version: SMF 1.1.8 *// Check whether a form has been submitted twice.
function checkSubmitOnce($action, $is_fatal = true)
{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)
{// Version: 1.1.7; Packages// Version: 1.1.8; Packagesfunction template_package_list()
{function template_package_confirm()
{
global $context, $settings, $options, $txt, $scripturl;
echo '
' . $context['page_title'] . '
', $context['confirm_message'], '
[ ', $txt['package_confirm_proceed'], ' ] [ ', $txt['package_confirm_go_back'], ' ]
';
}
function template_package_list()
{* Software Version: SMF 1.1.5 ** Software Version: SMF 1.1.8 *preg_match_all('~\[(' . $myTag . ')=([^\]]*?)\](.+?)\[/(' . $myTag . ')\]~is', $message, $matches);preg_match_all('~\[(' . $myTag . ')=([^\]]*?)\](?:(.+?)\[/(' . $myTag . ')\])?~is', $message, $matches);if (!$hasEqualSign)
$this_close = $matches[3][$k];
else
$this_close = $matches[4][$k];$this_close = $hasEqualSign ? (empty($matches[4][$k]) ? '' : $matches[4][$k]) : $matches[3][$k];$replaces['[' . $matches[1][$k] . '=' . $matches[2][$k] . ']' . $matches[3][$k] . '[/' . $matches[4][$k] . ']'] = '[' . $this_tag . '=' . $replace . ']' . $matches[3][$k] . '[/' . $this_close . ']';$replaces[$matches[0][$k]] = '[' . $this_tag . '=' . $replace . ']' . (empty($matches[4][$k]) ? '' : $matches[3][$k] . '[/' . $this_close . ']');