Changeset 170
Author: Mighty Gorgon
(2010/02/03 19:00) About 2 years ago
Bugs fixed: * Simple header and footer in proSilver and other templates which doesn't need Nifty * Colors check-in in YouTube BBCode * Corrected an SQL in forums list block * Forums ID not updated correctly when updating * Fixed a bug in Digests (not sure it is definitely fixed yet) * Fixed a bug in breadcrumbs when searching new topics * Wrong BBCode switch processing in fetchposts.php

window.status="{BEST_USER_SCORE}"window.status = "{BEST_USER_SCORE}";<title>{BEST_USER_SCORE}</title><title>{BEST_USER_SCORE}</title><body bgcolor="#000000" oncontextmenu="javascript:return false"><body bgcolor="#000000" oncontextmenu="return false;"><param name="movie" value="{PATH}{SWFNAME}"><param name="movie" value="{PATH}{SWFNAME}"><html dir="{S_CONTENT_DIRECTION}"><html dir="{S_CONTENT_DIRECTION}"><meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />{META}{META_TAG}{NAV_LINKS}<title>{BEST_USER_SCORE}</title><link rel="shortcut icon" href="{FULL_SITE_PATH}images/favicon.ico" /><link rel="stylesheet" href="{FULL_SITE_PATH}{T_TPL_PATH}style_{CSS_COLOR}.css" type="text/css" /><link rel="stylesheet" href="{FULL_SITE_PATH}{T_TPL_PATH}{css_style_include.CSS_FILE}" type="text/css" /><link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}{css_include.CSS_FILE}" type="text/css" />window.status="{BEST_USER_SCORE}"window.status = "{BEST_USER_SCORE}";<title>{BEST_USER_SCORE}</title><body oncontextmenu="return false;"><body oncontextmenu="javascript:return false"><a href="{U_PORTAL}" class="nav">{L_HOME}</a>{NAV_SEP}<a href="{U_ACTIVITY}" class="nav">{L_ACTIVITY}</a>{NAV_SEP}<a href="#top" class="nav-current">{L_GAME}</a><a href="{U_PORTAL}" class="nav">{L_HOME}</a>{NAV_SEP}<a href="{U_ACTIVITY}" class="nav">{L_ACTIVITY}</a>{NAV_SEP}<a href="#top" class="nav-current">{L_GAME}</a><tr><td class="row-header"><span>{L_GAME}</span></td></tr><tr><td class="row-header"><span>{L_GAME}</span></td></tr><table width="760" align="center" valign="top" cellspacing="0" cellpadding="0" border="0"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" id="inetangel" name="activitygame" width="{WIDTH}" height="{HEIGHT}"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" id="inetangel" name="activitygame" width="{WIDTH}" height="{HEIGHT}"><table class="forumline" width="180" align="center" valign="top" cellspacing="0" cellpadding="0" border="0"><tr><th colspan="2"><img src="{T_IMAGE}" alt="" /> {T_HOLDER} <img src="{T_IMAGE}" alt="" /></th></tr><tr><th colspan="2"><img src="{T_IMAGE}" alt="" /> {T_HOLDER} <img src="{T_IMAGE}" alt="" /></th></tr><tr><td class="spaceRow" colspan="2"><img src="{SPACER}" height="3" alt="" /></td></tr><tr><td class="spaceRow" colspan="2"><img src="{SPACER}" height="3" alt="" /></td></tr><tr><td class="row1 row-center"><span class="gensmall"><b>{T_HOLDER_1}</b></span></td></tr><tr><td class="row1 row-center"><span class="gensmall"><b>{T_HOLDER_1}</b></span></td></tr><tr><td class="row1 row-center"><b>{U_PLAY_POPUP}</b></td></tr><tr><td class="row1 row-center"><b>{U_PLAY_POPUP}</b></td></tr><table class="forumline" width="180" align="center" valign="bottom" cellspacing="0" cellpadding="0" border="0"><tr><th colspan="2" align="center" valign="middle">{R_TITLE}</th></tr><tr><th colspan="2" align="center" valign="middle">{R_TITLE}</th></tr><tr><td class="spaceRow" colspan="2"><img src="{SPACER}" height="3" alt="" /></td></tr><tr><td class="spaceRow" colspan="2"><img src="{SPACER}" height="3" alt="" /></td></tr>{{$sql = 'SELECT user_id$sql = "SELECT user_idFROM '. USERS_TABLE ."FROM " . USERS_TABLE . "WHERE username = '$username'WHERE username = '" . $username . "'{{$sql_where = 'AND f.main_type = \'c\'';{{$forum_icon = '<img src="' . $images['nav_menu_sep'] . '" alt="" title="" style="vertical-align: middle;" />';$template->assign_block_vars('cat_row.forum_row', array($template->assign_block_vars('cat_row.forum_row', array({{$bbcode->allow_bbcode = ($config['allow_bbcode'] && $userdata['user_allowbbcode'] && $posts[$i]['allow_bbcode']);$bbcode->allow_bbcode = ($config['allow_bbcode'] && $userdata['user_allowbbcode'] && $posts[$i]['enable_bbcode']) ? true : false;$bbcode->allow_html = (($config['allow_html'] && $userdata['user_allowhtml']) || $config['allow_html_only_for_admins']) && $posts[$i]['enable_html'];$bbcode->allow_html = ((($config['allow_html'] && $userdata['user_allowhtml']) || $config['allow_html_only_for_admins']) && $posts[$i]['enable_html']) ? true : false;if ($config['allow_smilies'] && !$lofi)$bbcode->allow_smilies = ($config['allow_smilies'] && $posts[$i]['enable_smilies'] && !$lofi) ? true : false;{$bbcode->allow_smilies = $config['allow_smilies'];}else{$bbcode->allow_smilies = false;}{{$bbcode->allow_bbcode = ($config['allow_bbcode'] && $userdata['user_allowbbcode'] && $posts[$i]['allow_bbcode']);$bbcode->allow_bbcode = ($config['allow_bbcode'] && $userdata['user_allowbbcode'] && $posts[$i]['enable_bbcode']) ? true : false;$bbcode->allow_html = (($config['allow_html'] && $userdata['user_allowhtml']) || $config['allow_html_only_for_admins']) && $posts[$i]['enable_html'];$bbcode->allow_html = ((($config['allow_html'] && $userdata['user_allowhtml']) || $config['allow_html_only_for_admins']) && $posts[$i]['enable_html']) ? true : false;$bbcode->allow_smilies = ($config['allow_smilies'] && !$lofi) ? $config['allow_smilies'] : false;$bbcode->allow_smilies = ($config['allow_smilies'] && $posts[$i]['enable_smilies'] && !$lofi) ? true : false;{{if ($color_1 || $color_1)if ($color_1 || $color_2){{$color_append .= ($color_1 ? ('&color1=0x' . str_replace('#', '', $color_1)) : '');$color_append .= ($color_1 ? ('&color1=0x' . str_replace('#', '', $color_1)) : '');$color_append .= ($color_2 ? ('&color2=0x' . str_replace('#', '', $color_2)) : '');$color_append .= ($color_2 ? ('&color2=0x' . str_replace('#', '', $color_2)) : '');die('Hacking attempt');die('Hacking attempt');define('ICYPHOENIX_VERSION', '1.3.5.58');define('ICYPHOENIX_VERSION', '1.3.6.59');define('FOUNDER_ID', '2');define('FOUNDER_ID', '2');if (!empty($config['plugins']['feedbacks']['enabled']))$feedbacks_received = '';if (!empty($config['plugins']['feedbacks']['enabled']) && !empty($config['plugins']['feedbacks']['dir'])){{define('MG_ROOT_PATH', IP_ROOT_PATH . 'mg/');include(IP_ROOT_PATH . PLUGINS_PATH . $config['plugins']['feedbacks']['dir'] . 'common.' . PHP_EXT);include_once(MG_ROOT_PATH . 'includes/functions_feedbacks.' . PHP_EXT);include_once(MG_ROOT_PATH . 'common.' . PHP_EXT);include_once(MG_ROOT_PATH . 'language/lang_' . $config['default_lang'] . '/lang_mg.' . PHP_EXT);include_once(MG_ROOT_PATH . 'language/lang_' . $config['default_lang'] . '/lang_feedbacks.' . PHP_EXT);$feedbacks_received = '';{{$feedbacks_received = (($feedbacks_details['feedbacks_count'] > 0) ? ('[ <a href="' . append_sid(MG_FEEDBACKS_FILE . '?' . POST_USERS_URL . '=' . $profiledata['user_id']) . '">' . $feedbacks_details['feedbacks_count'] . '</a> ] <img src="' . $feedbacks_average_img . '" style="vertical-align:middle;" alt="' . $feedbacks_average . '" title="' . $feedbacks_average . '" />') : '');$feedbacks_received = (($feedbacks_details['feedbacks_count'] > 0) ? ('[ <a href="' . append_sid(PLUGINS_FEEDBACKS_FILE . '?' . POST_USERS_URL . '=' . $profiledata['user_id']) . '">' . $feedbacks_details['feedbacks_count'] . '</a> ] <img src="' . $feedbacks_average_img . '" style="vertical-align:middle;" alt="' . $feedbacks_average . '" title="' . $feedbacks_average . '" />') : '');define('FORUM_CAT', 0);define('FORUM_CAT', 0);{{if (defined('FIX_FORUMS') && FIX_FORUMS)if (defined('FIX_FORUMS') && FIX_FORUMS){{empty_cache_folders();if (function_exists('empty_cache_folders')){empty_cache_folders();}echo('<div class="post-text">' . "\n");echo('<div class="post-text">' . "\n");UPDATE phpbb_config SET config_value = '1.3.5.58' WHERE config_name = 'ip_version';UPDATE phpbb_config SET config_value = '1.3.6.59' WHERE config_name = 'ip_version';INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('version', '.0.23');INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('version', '.0.23');INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('ip_version', '1.3.5.58');INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('ip_version', '1.3.6.59');INSERT INTO `phpbb_album_config` (`config_name`, `config_value`) VALUES ('fap_version', '1.5.0');INSERT INTO `phpbb_album_config` (`config_name`, `config_value`) VALUES ('fap_version', '1.5.0');## INSERT INTO phpbb_link_config (config_name, config_value) VALUES ('site_logo', 'http://www.mightygorgon.com/images/banners/banner_mightygorgon.gif');## INSERT INTO phpbb_link_config (config_name, config_value) VALUES ('site_logo', 'http://www.mightygorgon.com/images/banners/banner_mightygorgon.gif');## INSERT INTO phpbb_link_config (config_name, config_value) VALUES ('site_url', 'http://www.mightygorgon.com/');## INSERT INTO phpbb_link_config (config_name, config_value) VALUES ('site_url', 'http://www.mightygorgon.com/');$sql[] = "INSERT INTO " . $table_prefix . "config VALUES ('ip_version', '" . $ip_version . "')";$sql[] = "INSERT INTO " . $table_prefix . "config VALUES ('ip_version', '" . $ip_version . "')";$ip_version = '1.3.5.58';$ip_version = '1.3.6.59';$this_msg = preg_replace('/\\n/', '<br />', $this_msg);$this_msg = preg_replace('/\\n/', '<br />', $this_msg);$bbcode->allow_html = ($config['allow_html'] ? $config['allow_html'] : false);if (empty($bbcode) && class_exists('bbcode'))$bbcode->allow_bbcode = ($config['allow_bbcode'] ? $config['allow_bbcode'] : true);{$bbcode->allow_smilies = ($config['allow_smilies'] ? $config['allow_smilies'] : true);unset($bbcode);$bbcode = new bbcode();}$bbcode->allow_html = (isset($config['allow_html']) ? $config['allow_html'] : false);$bbcode->allow_bbcode = (isset($config['allow_bbcode']) ? $config['allow_bbcode'] : true);$bbcode->allow_smilies = (isset($config['allow_smilies']) ? $config['allow_smilies'] : true);if ($bbcode->allow_bbcode == false)if (empty($bbcode->allow_bbcode)){{$this_msg = str_replace("\n", "<br />", preg_replace("/\r\n/", "\n", $this_msg));$this_msg = str_replace("\n", "<br />", preg_replace("/\r\n/", "\n", $this_msg));$l_forum = (($show_results == 'topics') ? ('<a href="' . append_sid(CMS_PAGE_SEARCH . '?search_id=' . $search_id . $search_url_add . '&psort=cat') . '">' . $lang['Forum'] . '</a>') : $lang['Forum']);//$l_forum = (($show_results == 'topics') ? ('<a href="' . append_sid(CMS_PAGE_SEARCH . '?search_id=' . $search_id . $search_url_add . '&psort=cat') . '">' . $lang['Forum'] . '</a>') : $lang['Forum']);$l_forum = $lang['Forum'];{{{{request = new ActiveXObject("Microsoft.XMLHTTP");request = new ActiveXObject("Microsoft.XMLHTTP");{{eval("request.onreadystatechange = " + changehandler);eval("request.onreadystatechange = " + changehandler);{{{{while (((charindex = text.indexOf('%s')) >= 0) && (i < repl.length))while (((charindex = text.indexOf('%s')) >= 0) && (i < repl.length)){{{{{{{{{{{{{{{{{{text = text.substring(0, pos) + unescape('%u' + parseInt(num.substring(2, num.length-1)).toString(16)) + text.substring(pos+num.length, text.length);text = text.substring(0, pos) + unescape('%u' + parseInt(num.substring(2, num.length-1)).toString(16)) + text.substring(pos+num.length, text.length);<link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}{css_include.CSS_FILE}" type="text/css" /><link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}{css_include.CSS_FILE}" type="text/css" /><link rel="stylesheet" href="{FULL_SITE_PATH}{T_TPL_PATH}style_css.{PHP_EXT}?color={CSS_COLOR}&lang={CURRENT_TPL_LANG}" type="text/css" /><!-- <link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}nifty/nifty_corners.css" type="text/css" /> --><!-- <link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}nifty/nifty_corners.css" type="text/css" /> --><script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}nifty/nifty_cube.js"></script><script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}nifty/nifty_cube.js"></script><script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}nifty/nifty_layout.js"></script><script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}nifty/nifty_layout.js"></script>$this_date = create_date('md', time(), $config['board_timezone']);$this_date = create_date('md', time(), $config['board_timezone']);if (!empty($config['plugins']['feedbacks']['enabled']))$feedback_disabled = true;if (!empty($config['plugins']['feedbacks']['enabled']) && !empty($config['plugins']['feedbacks']['dir'])){{define('MG_ROOT_PATH', IP_ROOT_PATH . 'mg/');include(IP_ROOT_PATH . PLUGINS_PATH . $config['plugins']['feedbacks']['dir'] . 'common.' . PHP_EXT);include_once(MG_ROOT_PATH . 'includes/functions_feedbacks.' . PHP_EXT);$feedbacks_allowed_forums = explode(',', PLUGINS_FEEDBACKS_FORUMS);include_once(MG_ROOT_PATH . 'common.' . PHP_EXT);include_once(MG_ROOT_PATH . 'language/lang_' . $config['default_lang'] . '/lang_mg.' . PHP_EXT);include_once(MG_ROOT_PATH . 'language/lang_' . $config['default_lang'] . '/lang_feedbacks.' . PHP_EXT);$feedbacks_allowed_forums = explode(',', MG_FEEDBACKS_FORUMS);{{{{$feedbacks_received = (($feedbacks_details['feedbacks_count'] > 0) ? ($lang['FEEDBACKS_RECEIVED'] . ': [ <a href="' . append_sid(MG_FEEDBACKS_FILE . '?' . POST_USERS_URL . '=' . $postrow[$i]['user_id']) . '">' . $feedbacks_details['feedbacks_count'] . '</a> ]<br /><img src="' . $feedbacks_average_img . '" alt="' . $feedbacks_average . '" title="' . $feedbacks_average . '" /><br />') : '');$feedbacks_received = (($feedbacks_details['feedbacks_count'] > 0) ? ($lang['FEEDBACKS_RECEIVED'] . ': [ <a href="' . append_sid(PLUGINS_FEEDBACKS_FILE . '?' . POST_USERS_URL . '=' . $postrow[$i]['user_id']) . '">' . $feedbacks_details['feedbacks_count'] . '</a> ]<br /><img src="' . $feedbacks_average_img . '" alt="' . $feedbacks_average . '" title="' . $feedbacks_average . '" /><br />') : '');{{$feedback_add = ' <a href="' . append_sid(MG_FEEDBACKS_FILE . '?mode=input&' . POST_TOPIC_URL . '=' . $topic_id . '&' . POST_USERS_URL . '=' . $postrow[$i]['user_id']) . '">' . $lang['FEEDBACK_ADD'] . '</a><br />';$feedback_add = ' <a href="' . append_sid(PLUGINS_FEEDBACKS_FILE . '?mode=input&' . POST_TOPIC_URL . '=' . $topic_id . '&' . POST_USERS_URL . '=' . $postrow[$i]['user_id']) . '">' . $lang['FEEDBACK_ADD'] . '</a><br />';{{