Changeset 170

User picture

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

Affected files

Added extras/trunk/activity/ip_root/plugins/activity/docs/index.html

Show contents

Updated extras/trunk/activity/ip_root/templates/default/activity/flash_body.tpl Download diff

169170
3
<head>
3
<head>
4
<script language="JavaScript" type="text/javascript">
4
<script language="JavaScript" type="text/javascript">
5
<!--
5
<!--
6
window.status="{BEST_USER_SCORE}"
6
window.status = "{BEST_USER_SCORE}";
7
// -->
7
// -->
8
</script>
8
</script>
9
</head>
9
</head>
10
<title>{BEST_USER_SCORE}</title>
10
<title>{BEST_USER_SCORE}</title>
11
<body bgcolor="#000000" oncontextmenu="javascript:return false">
11
<body bgcolor="#000000" oncontextmenu="return false;">
12
<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="100%" height="100%">
12
<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="100%" height="100%">
13
<param name="movie" value="{PATH}{SWFNAME}">
13
<param name="movie" value="{PATH}{SWFNAME}">
14
<param name="quality" value="high">
14
<param name="quality" value="high">

Updated extras/trunk/activity/ip_root/templates/default/activity/flash_body2.tpl Download diff

169170
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html dir="{S_CONTENT_DIRECTION}">
2
<html dir="{S_CONTENT_DIRECTION}">
3
<head>
3
<head>
4
5
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
6
<meta http-equiv="content-style-type" content="text/css" />
7
{META}
8
{META_TAG}
9
{NAV_LINKS}
10
<title>{BEST_USER_SCORE}</title>
11
<link rel="shortcut icon" href="{FULL_SITE_PATH}images/favicon.ico" />
12
<link rel="stylesheet" href="{FULL_SITE_PATH}{T_TPL_PATH}style_{CSS_COLOR}.css" type="text/css" />
13
<!-- BEGIN css_style_include -->
14
<link rel="stylesheet" href="{FULL_SITE_PATH}{T_TPL_PATH}{css_style_include.CSS_FILE}" type="text/css" />
15
<!-- END css_style_include -->
16
<!-- BEGIN css_include -->
17
<link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}{css_include.CSS_FILE}" type="text/css" />
18
<!-- END css_include -->
19
20
<!-- INCLUDE overall_inc_header_js.tpl -->
21
4
<script language="JavaScript" type="text/javascript">
22
<script language="JavaScript" type="text/javascript">
5
<!--
23
<!--
6
window.status="{BEST_USER_SCORE}"
24
window.status = "{BEST_USER_SCORE}";
7
// -->
25
// -->
8
</script>
26
</script>
27
9
</head>
28
</head>
10
<title>{BEST_USER_SCORE}</title>
29
<body oncontextmenu="return false;">
11
<body oncontextmenu="javascript:return false">
30
12
<div class="forumline nav-div">
31
<div class="forumline nav-div">
13
	<p class="nav-header">
32
	<p class="nav-header">
14
		<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>
33
		<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>
...
...
24
<tr><td class="row-header"><span>{L_GAME}</span></td></tr>
43
<tr><td class="row-header"><span>{L_GAME}</span></td></tr>
25
<tr>
44
<tr>
26
	<td>
45
	<td>
27
		<table width="760" align="center" valign="top" cellspacing="0" cellpadding="0" border="0">
46
		<table width="760" align="center" cellspacing="0" cellpadding="0" border="0">
28
		<tr>
47
		<tr>
29
			<td width="565" valign="top">
48
			<td width="565" valign="top">
30
				<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}">
49
				<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}">
...
...
35
				</object>
54
				</object>
36
			</td>
55
			</td>
37
			<td width="190" valign="top">
56
			<td width="190" valign="top">
38
				<table class="forumline" width="180" align="center" valign="top" cellspacing="0" cellpadding="0" border="0">
57
				<table class="forumline" width="180" align="center" cellspacing="0" cellpadding="0"
border="0">
39
				<tr><th colspan="2"><img src="{T_IMAGE}" alt="" />&nbsp;&nbsp;{T_HOLDER}&nbsp;&nbsp;<img
src="{T_IMAGE}" alt="" /></th></tr>
58
				<tr><th colspan="2"><img src="{T_IMAGE}" alt="" />&nbsp;&nbsp;{T_HOLDER}&nbsp;&nbsp;<img
src="{T_IMAGE}" alt="" /></th></tr>
40
				<tr><td class="spaceRow" colspan="2"><img src="{SPACER}" height="3" alt=""
/></td></tr>
59
				<tr><td class="spaceRow" colspan="2"><img src="{SPACER}" height="3" alt=""
/></td></tr>
41
				<tr><td class="row1 row-center"><span
class="gensmall"><b>{T_HOLDER_1}</b></span></td></tr>
60
				<tr><td class="row1 row-center"><span
class="gensmall"><b>{T_HOLDER_1}</b></span></td></tr>
...
...
52
				<tr><td class="row1 row-center"><b>{U_PLAY_POPUP}</b></td></tr>
71
				<tr><td class="row1 row-center"><b>{U_PLAY_POPUP}</b></td></tr>
53
				</table>
72
				</table>
54
				<br /><br />
73
				<br /><br />
55
				<table class="forumline" width="180" align="center" valign="bottom" cellspacing="0" cellpadding="0" border="0">
74
				<table class="forumline" width="180" align="center" cellspacing="0" cellpadding="0"
border="0">
56
				<tr><th colspan="2" align="center" valign="middle">{R_TITLE}</th></tr>
75
				<tr><th colspan="2" align="center" valign="middle">{R_TITLE}</th></tr>
57
				<tr><td class="spaceRow" colspan="2"><img src="{SPACER}" height="3" alt=""
/></td></tr>
76
				<tr><td class="spaceRow" colspan="2"><img src="{SPACER}" height="3" alt=""
/></td></tr>
58
				<!-- BEGIN runner -->
77
				<!-- BEGIN runner -->
...
...
70
	</td>
89
	</td>
71
</tr>
90
</tr>
72
</table>
91
</table>
92
73
</body>
93
</body>
74
</html>
94
</html>

Added extras/trunk/downloads/ip_root/plugins/downloads/docs/index.html

Show contents

Updated ip/trunk/ajax.php Download diff

169170
151
	$username_row = false;
151
	$username_row = false;
152
	if (($mode == 'checkusername_pm') || (($mode == 'search_user') && !$has_wildcards))
152
	if (($mode == 'checkusername_pm') || (($mode == 'search_user') && !$has_wildcards))
153
	{
153
	{
154
		$sql = 'SELECT user_id
154
		$sql = "SELECT user_id
155
						FROM '. USERS_TABLE ."
155
						FROM " . USERS_TABLE . "
156
						WHERE username = '$username'
156
						WHERE username = '" . $username . "'
157
						AND user_id <> " . ANONYMOUS;
157
						AND user_id <> " . ANONYMOUS;
158
		$db->sql_return_on_error(true);
158
		$db->sql_return_on_error(true);
159
		$result = $db->sql_query($sql);
159
		$result = $db->sql_query($sql);

Updated ip/trunk/blocks/forum_list.php Download diff

169170
46
			}
46
			}
47
			else
47
			else
48
			{
48
			{
49
				$sql_where = '';
49
				$sql_where = 'AND f.main_type = \'c\'';
50
			}
50
			}
51
			$sql = "SELECT f.* FROM " . FORUMS_TABLE . " f
51
			$sql = "SELECT f.* FROM " . FORUMS_TABLE . " f
52
				WHERE f.auth_view = " . AUTH_ALL . "
52
				WHERE f.auth_view = " . AUTH_ALL . "
...
...
91
				{
91
				{
92
					$forum_name = stripslashes($menu_cat_item_data['forum_name']);
92
					$forum_name = stripslashes($menu_cat_item_data['forum_name']);
93
					$forum_link = append_sid(CMS_PAGE_VIEWFORUM . '?' . POST_FORUM_URL . '=' . $menu_cat_item_data['forum_id']);
93
					$forum_link = append_sid(CMS_PAGE_VIEWFORUM . '?' . POST_FORUM_URL . '=' . $menu_cat_item_data['forum_id']);
94
					$forum_icon = '<img src="' . $images['nav_menu_sep'] . '" alt="" title="" style="vertical-align:middle;" />';
94
					$forum_icon = '<img src="' . $images['nav_menu_sep'] . '" alt="" title="" style="vertical-align: middle;" />';
95
95
96
					$template->assign_block_vars('cat_row.forum_row', array(
96
					$template->assign_block_vars('cat_row.forum_row', array(
97
						'FORUM_ITEM' => $forum_name,
97
						'FORUM_ITEM' => $forum_name,

Updated ip/trunk/fetchposts.php Download diff

169170
50
		$i = 0;
50
		$i = 0;
51
		do
51
		do
52
		{
52
		{
53
			$posts[$i]['enable_bbcode'] = $row['enable_bbcode'];
54
			$posts[$i]['enable_html'] = $row['enable_html'];
53
			$posts[$i]['enable_smilies'] = $row['enable_smilies'];
55
			$posts[$i]['enable_smilies'] = $row['enable_smilies'];
56
			$posts[$i]['enable_autolinks_acronyms'] = $row['enable_autolinks_acronyms'];
54
			$posts[$i]['post_text'] = $row['post_text'];
57
			$posts[$i]['post_text'] = $row['post_text'];
55
			$posts[$i]['forum_id'] = $row['forum_id'];
58
			$posts[$i]['forum_id'] = $row['forum_id'];
56
			$posts[$i]['topic_id'] = $row['topic_id'];
59
			$posts[$i]['topic_id'] = $row['topic_id'];
...
...
65
68
66
			$message_compiled = empty($posts[$i]['post_text_compiled']) ? false : $posts[$i]['post_text_compiled'];
69
			$message_compiled = empty($posts[$i]['post_text_compiled']) ? false : $posts[$i]['post_text_compiled'];
67
70
68
			$bbcode->allow_bbcode = ($config['allow_bbcode'] && $userdata['user_allowbbcode'] && $posts[$i]['allow_bbcode']);
71
			$bbcode->allow_bbcode = ($config['allow_bbcode'] && $userdata['user_allowbbcode'] && $posts[$i]['enable_bbcode']) ? true : false;
69
			$bbcode->allow_html = (($config['allow_html'] && $userdata['user_allowhtml']) || $config['allow_html_only_for_admins']) && $posts[$i]['enable_html'];
72
			$bbcode->allow_html = ((($config['allow_html'] && $userdata['user_allowhtml']) || $config['allow_html_only_for_admins']) && $posts[$i]['enable_html']) ? true : false;
70
			if ($config['allow_smilies'] && !$lofi)
73
			$bbcode->allow_smilies = ($config['allow_smilies'] && $posts[$i]['enable_smilies'] && !$lofi) ? true : false;
71
			{
72
				$bbcode->allow_smilies = $config['allow_smilies'];
73
			}
74
			else
75
			{
76
				$bbcode->allow_smilies = false;
77
			}
78
74
79
			$clean_tags = false;
75
			$clean_tags = false;
80
			if ((strlen($posts[$i]['post_text']) > $text_length) && ($text_length > 0))
76
			if ((strlen($posts[$i]['post_text']) > $text_length) && ($text_length > 0))
...
...
190
		$i = 0;
186
		$i = 0;
191
		do
187
		do
192
		{
188
		{
189
			$posts[$i]['enable_bbcode'] = $row['enable_bbcode'];
190
			$posts[$i]['enable_html'] = $row['enable_html'];
193
			$posts[$i]['enable_smilies'] = $row['enable_smilies'];
191
			$posts[$i]['enable_smilies'] = $row['enable_smilies'];
194
			$posts[$i]['enable_autolinks_acronyms'] = $row['enable_autolinks_acronyms'];
192
			$posts[$i]['enable_autolinks_acronyms'] = $row['enable_autolinks_acronyms'];
195
			$posts[$i]['post_text'] = $row['post_text'];
193
			$posts[$i]['post_text'] = $row['post_text'];
...
...
209
207
210
			$message_compiled = empty($posts[$i]['post_text_compiled']) ? false : $posts[$i]['post_text_compiled'];
208
			$message_compiled = empty($posts[$i]['post_text_compiled']) ? false : $posts[$i]['post_text_compiled'];
211
209
212
			$bbcode->allow_bbcode = ($config['allow_bbcode'] && $userdata['user_allowbbcode'] && $posts[$i]['allow_bbcode']);
210
			$bbcode->allow_bbcode = ($config['allow_bbcode'] && $userdata['user_allowbbcode'] && $posts[$i]['enable_bbcode']) ? true : false;
213
			$bbcode->allow_html = (($config['allow_html'] && $userdata['user_allowhtml']) || $config['allow_html_only_for_admins']) && $posts[$i]['enable_html'];
211
			$bbcode->allow_html = ((($config['allow_html'] && $userdata['user_allowhtml']) || $config['allow_html_only_for_admins']) && $posts[$i]['enable_html']) ? true : false;
214
			$bbcode->allow_smilies = ($config['allow_smilies'] && !$lofi) ? $config['allow_smilies'] : false;
212
			$bbcode->allow_smilies = ($config['allow_smilies'] && $posts[$i]['enable_smilies'] && !$lofi) ? true : false;
215
213
216
			$clean_tags = false;
214
			$clean_tags = false;
217
			if ((strlen($posts[$i]['post_text']) > $text_length) && ($text_length > 0))
215
			if ((strlen($posts[$i]['post_text']) > $text_length) && ($text_length > 0))

Updated ip/trunk/includes/bbcode.php Download diff

169170
2135
				elseif ($tag === 'youtube')
2135
				elseif ($tag === 'youtube')
2136
				{
2136
				{
2137
					$color_append = '';
2137
					$color_append = '';
2138
					if ($color_1 || $color_1)
2138
					if ($color_1 || $color_2)
2139
					{
2139
					{
2140
						$color_append .= ($color_1 ? ('&amp;color1=0x' . str_replace('#', '', $color_1)) : '');
2140
						$color_append .= ($color_1 ? ('&amp;color1=0x' . str_replace('#', '', $color_1)) : '');
2141
						$color_append .= ($color_2 ? ('&amp;color2=0x' . str_replace('#', '', $color_2)) : '');
2141
						$color_append .= ($color_2 ? ('&amp;color2=0x' . str_replace('#', '', $color_2)) : '');

Updated ip/trunk/includes/constants.php Download diff

169170
20
	die('Hacking attempt');
20
	die('Hacking attempt');
21
}
21
}
22
22
23
define('ICYPHOENIX_VERSION', '1.3.5.58');
23
define('ICYPHOENIX_VERSION', '1.3.6.59');
24
24
25
// FOUNDER ID, this is the ID used to send Welcome and Birthday PM
25
// FOUNDER ID, this is the ID used to send Welcome and Birthday PM
26
define('FOUNDER_ID', '2');
26
define('FOUNDER_ID', '2');

Added ip/trunk/includes/log_connections.php

Show contents

Updated ip/trunk/includes/usercp_viewprofile.php Download diff

169170
465
display_upload_attach_box_limits($profiledata['user_id']);
465
display_upload_attach_box_limits($profiledata['user_id']);
466
466
467
// Mighty Gorgon - Feedbacks - BEGIN
467
// Mighty Gorgon - Feedbacks - BEGIN
468
if (!empty($config['plugins']['feedbacks']['enabled']))
468
$feedbacks_received = '';
469
if (!empty($config['plugins']['feedbacks']['enabled']) && !empty($config['plugins']['feedbacks']['dir']))
469
{
470
{
470
	define('MG_ROOT_PATH', IP_ROOT_PATH . 'mg/');
471
	include(IP_ROOT_PATH . PLUGINS_PATH . $config['plugins']['feedbacks']['dir'] . 'common.' . PHP_EXT);
471
	include_once(MG_ROOT_PATH . 'includes/functions_feedbacks.' . PHP_EXT);
472
	include_once(MG_ROOT_PATH . 'common.' . PHP_EXT);
473
	include_once(MG_ROOT_PATH . 'language/lang_' . $config['default_lang'] . '/lang_mg.' . PHP_EXT);
474
	include_once(MG_ROOT_PATH . 'language/lang_' . $config['default_lang'] . '/lang_feedbacks.' . PHP_EXT);
475
476
	$feedbacks_received = '';
477
	$feedbacks_details = get_user_feedbacks_received($profiledata['user_id']);
472
	$feedbacks_details = get_user_feedbacks_received($profiledata['user_id']);
478
	if ($feedbacks_details['feedbacks_count'] > 0)
473
	if ($feedbacks_details['feedbacks_count'] > 0)
479
	{
474
	{
480
		$feedbacks_average = (($feedbacks_details['feedbacks_count'] > 0) ? (round($feedbacks_details['feedbacks_sum'] / $feedbacks_details['feedbacks_count'], 1))
: 0);
475
		$feedbacks_average = (($feedbacks_details['feedbacks_count'] > 0) ? (round($feedbacks_details['feedbacks_sum'] / $feedbacks_details['feedbacks_count'], 1))
: 0);
481
		$feedbacks_average_img = IP_ROOT_PATH . 'images/feedbacks/' . build_feedback_rating_image($feedbacks_average);
476
		$feedbacks_average_img = IP_ROOT_PATH . 'images/feedbacks/' . build_feedback_rating_image($feedbacks_average);
482
		$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> ]&nbsp;&nbsp;<img src="' . $feedbacks_average_img . '" style="vertical-align:middle;" alt="' . $feedbacks_average . '" title="' . $feedbacks_average . '" />') : '');
477
		$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> ]&nbsp;&nbsp;<img src="' . $feedbacks_average_img . '" style="vertical-align:middle;" alt="' . $feedbacks_average . '" title="' . $feedbacks_average . '" />') : '');
483
	}
478
	}
484
}
479
}
485
// Mighty Gorgon - Feedbacks - END
480
// Mighty Gorgon - Feedbacks - END

Updated ip/trunk/install/includes/functions_install.php Download diff

169170
2274
			define('FORUM_CAT', 0);
2274
			define('FORUM_CAT', 0);
2275
		}
2275
		}
2276
2276
2277
		/*
2277
		$sql = 'SHOW TABLES LIKE ' . CATEGORIES_TABLE;
2278
		$sql = 'SHOW TABLES LIKE ' . CATEGORIES_TABLE;
2278
		$result = $db->sql_query($sql);
2279
		$result = $db->sql_query($sql);
2279
		$row = $db->sql_fetchrow($result);
2280
		$row = $db->sql_fetchrow($result);
...
...
2281
		{
2282
		{
2282
			return false;
2283
			return false;
2283
		}
2284
		}
2285
		*/
2284
2286
2285
		// Determine the highest id used within the old forums table (we add the categories after the forum ids)
2287
		// Determine the highest id used within the old forums table (we add the categories after the forum ids)
2286
		$sql = 'SELECT MAX(forum_id) AS max_forum_id
2288
		$sql = 'SELECT MAX(forum_id) AS max_forum_id

Updated ip/trunk/install/includes/ip_tools.php Download diff

169170
568
		if (defined('FIX_FORUMS') && FIX_FORUMS)
568
		if (defined('FIX_FORUMS') && FIX_FORUMS)
569
		{
569
		{
570
			$page_framework->convert_forums();
570
			$page_framework->convert_forums();
571
			empty_cache_folders();
571
			if (function_exists('empty_cache_folders'))
572
			{
573
				empty_cache_folders();
574
			}
572
		}
575
		}
573
		$page_framework->table_begin($lang['IcyPhoenix'] . ' - ' . $lang['UpdateInProgress'], 'row-post');
576
		$page_framework->table_begin($lang['IcyPhoenix'] . ' - ' . $lang['UpdateInProgress'], 'row-post');
574
		echo('<div class="post-text">' . "\n");
577
		echo('<div class="post-text">' . "\n");

Updated ip/trunk/install/schemas/db_update_054.sql Download diff

169170
189
UPDATE phpbb_config SET config_value = '3.0.7' WHERE config_name = 'upi2db_version';
189
UPDATE phpbb_config SET config_value = '3.0.7' WHERE config_name = 'upi2db_version';
190
UPDATE phpbb_album_config SET config_value = '1.5.0' WHERE config_name = 'fap_version';
190
UPDATE phpbb_album_config SET config_value = '1.5.0' WHERE config_name = 'fap_version';
191
UPDATE phpbb_config SET config_value = '.0.23' WHERE config_name = 'version';
191
UPDATE phpbb_config SET config_value = '.0.23' WHERE config_name = 'version';
192
UPDATE phpbb_config SET config_value = '1.3.5.58' WHERE config_name = 'ip_version';
192
UPDATE phpbb_config SET config_value = '1.3.6.59' WHERE config_name = 'ip_version';

Updated ip/trunk/install/schemas/mysql_basic.sql Download diff

169170
1
## Better leaving these input at the beginning... so they will be inserted as first values into tables
1
## Better leaving these input at the beginning... so they will be inserted as first values into tables
2
## Roll on version
2
## Roll on version
3
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('version', '.0.23');
3
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('version', '.0.23');
4
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('ip_version', '1.3.5.58');
4
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('ip_version', '1.3.6.59');
5
INSERT INTO `phpbb_album_config` (`config_name`, `config_value`) VALUES ('fap_version', '1.5.0');
5
INSERT INTO `phpbb_album_config` (`config_name`, `config_value`) VALUES ('fap_version', '1.5.0');
6
## INSERT INTO phpbb_link_config (config_name, config_value) VALUES ('site_logo', 'http://www.mightygorgon.com/images/banners/banner_mightygorgon.gif');
6
## INSERT INTO phpbb_link_config (config_name, config_value) VALUES ('site_logo', 'http://www.mightygorgon.com/images/banners/banner_mightygorgon.gif');
7
## INSERT INTO phpbb_link_config (config_name, config_value) VALUES ('site_url', 'http://www.mightygorgon.com/');
7
## INSERT INTO phpbb_link_config (config_name, config_value) VALUES ('site_url', 'http://www.mightygorgon.com/');

Updated ip/trunk/install/schemas/sql_update_ip.php Download diff

169170
60
	case '13457': $current_ip_version = '1.3.4.57'; break;
60
	case '13457': $current_ip_version = '1.3.4.57'; break;
61
	case '13558': $current_ip_version = '1.3.5.58'; break;
61
	case '13558': $current_ip_version = '1.3.5.58'; break;
62
	case '13659': $current_ip_version = '1.3.6.59'; break;
62
	case '13659': $current_ip_version = '1.3.6.59'; break;
63
	case '13760': $current_ip_version = '1.3.7.60'; break;
63
}
64
}
64
65
65
// Icy Phoenix Part...
66
// Icy Phoenix Part...
...
...
3736
3737
3737
		/* Updating from IP 1.3.6.59 */
3738
		/* Updating from IP 1.3.6.59 */
3738
		case '1.3.6.59':
3739
		case '1.3.6.59':
3740
3741
		/* Updating from IP 1.3.7.60 */
3742
		case '1.3.7.60':
3739
	}
3743
	}
3740
3744
3741
	$sql[] = "INSERT INTO " . $table_prefix . "config VALUES ('ip_version', '" . $ip_version . "')";
3745
	$sql[] = "INSERT INTO " . $table_prefix . "config VALUES ('ip_version', '" . $ip_version . "')";

Updated ip/trunk/install/schemas/versions.php Download diff

169170
23
// Versioning
23
// Versioning
24
$fap_version = '1.5.0';
24
$fap_version = '1.5.0';
25
$phpbb_version = '.0.23';
25
$phpbb_version = '.0.23';
26
$ip_version = '1.3.5.58';
26
$ip_version = '1.3.6.59';
27
27
28
// CHMOD
28
// CHMOD
29
$chmod_777 = array();
29
$chmod_777 = array();

Updated ip/trunk/mail_digests.php Download diff

169170
398
				$this_msg = preg_replace('/\\n/', '<br />', $this_msg);
398
				$this_msg = preg_replace('/\\n/', '<br />', $this_msg);
399
				$msg .= $this_msg . $line_break;
399
				$msg .= $this_msg . $line_break;
400
				*/
400
				*/
401
				$bbcode->allow_html = ($config['allow_html'] ? $config['allow_html'] : false);
401
				if (empty($bbcode) && class_exists('bbcode'))
402
				$bbcode->allow_bbcode = ($config['allow_bbcode'] ? $config['allow_bbcode'] : true);
402
				{
403
				$bbcode->allow_smilies = ($config['allow_smilies'] ? $config['allow_smilies'] : true);
403
					unset($bbcode);
404
					$bbcode = new bbcode();
405
				}
406
				$bbcode->allow_html = (isset($config['allow_html']) ? $config['allow_html'] : false);
407
				$bbcode->allow_bbcode = (isset($config['allow_bbcode']) ? $config['allow_bbcode'] : true);
408
				$bbcode->allow_smilies = (isset($config['allow_smilies']) ? $config['allow_smilies'] : true);
404
				$post_text = $bbcode->parse($post_text);
409
				$post_text = $bbcode->parse($post_text);
405
				$this_msg = '<td class="row1"><div class="post-text">' . $post_text . '</div></td>';
410
				$this_msg = '<td class="row1"><div class="post-text">' . $post_text . '</div></td>';
406
				if ($bbcode->allow_bbcode == false)
411
				if (empty($bbcode->allow_bbcode))
407
				{
412
				{
408
					$this_msg = str_replace("\n", "<br />", preg_replace("/\r\n/", "\n", $this_msg));
413
					$this_msg = str_replace("\n", "<br />", preg_replace("/\r\n/", "\n", $this_msg));
409
				}
414
				}

Updated ip/trunk/search.php Download diff

169170
1856
		$s_hidden_fields = '';
1856
		$s_hidden_fields = '';
1857
		$s_hidden_fields .= '<input type="hidden" name="search_id" value="' . $search_id . '" />';
1857
		$s_hidden_fields .= '<input type="hidden" name="search_id" value="' . $search_id . '" />';
1858
		$s_hidden_fields .= '<input type="hidden" name="search_mode" value="' . $search_mode . '" />';
1858
		$s_hidden_fields .= '<input type="hidden" name="search_mode" value="' . $search_mode . '" />';
1859
		$l_forum = (($show_results == 'topics') ? ('<a href="' . append_sid(CMS_PAGE_SEARCH . '?search_id=' . $search_id . $search_url_add .
'&amp;psort=cat') . '">' . $lang['Forum'] . '</a>') : $lang['Forum']);
1859
		//$l_forum = (($show_results == 'topics') ? ('<a href="' . append_sid(CMS_PAGE_SEARCH . '?search_id=' . $search_id . $search_url_add . '&amp;psort=cat') . '">' . $lang['Forum'] . '</a>') : $lang['Forum']);
1860
		$l_forum = $lang['Forum'];
1860
1861
1861
		$template->assign_vars(array(
1862
		$template->assign_vars(array(
1862
			'PAGINATION' => generate_pagination($base_url, $total_match_count, $per_page, $start),
1863
			'PAGINATION' => generate_pagination($base_url, $total_match_count, $per_page, $start),

Updated ip/trunk/templates/common/js/ajax/ajax_core.js Download diff

169170
82
	{
82
	{
83
		submitmethod = 'GET';
83
		submitmethod = 'GET';
84
	}
84
	}
85
	
85
86
	//Use the native object available in all browsers (IE >= 7)
86
	//Use the native object available in all browsers (IE >= 7)
87
	if (window.XMLHttpRequest)
87
	if (window.XMLHttpRequest)
88
	{
88
	{
...
...
95
		request = new ActiveXObject("Microsoft.XMLHTTP");
95
		request = new ActiveXObject("Microsoft.XMLHTTP");
96
		var is_activex = true;
96
		var is_activex = true;
97
	}
97
	}
98
	
98
99
	if (!request)
99
	if (!request)
100
	{
100
	{
101
		return false;
101
		return false;
102
	}
102
	}
103
	
103
104
	eval("request.onreadystatechange = " + changehandler);
104
	eval("request.onreadystatechange = " + changehandler);
105
	if (submitmethod == 'POST')
105
	if (submitmethod == 'POST')
106
	{
106
	{
...
...
123
			request.send(null);
123
			request.send(null);
124
		}
124
		}
125
	}
125
	}
126
	
126
127
	return true;
127
	return true;
128
}
128
}
129
129
...
...
198
	{
198
	{
199
		var repl = replacements;
199
		var repl = replacements;
200
	}
200
	}
201
	
201
202
	while (((charindex = text.indexOf('%s')) >= 0) && (i < repl.length))
202
	while (((charindex = text.indexOf('%s')) >= 0) && (i < repl.length))
203
	{
203
	{
204
		var temptext = text.substr(0, charindex);
204
		var temptext = text.substr(0, charindex);
205
		text = temptext + repl[i] + text.substr(charindex+2, text.length);
205
		text = temptext + repl[i] + text.substr(charindex+2, text.length);
206
		i++;
206
		i++;
207
	}
207
	}
208
	
208
209
	return text;
209
	return text;
210
}
210
}
211
211
...
...
227
	{
227
	{
228
		return '';
228
		return '';
229
	}
229
	}
230
	
230
231
	var part = '';
231
	var part = '';
232
	var i = text.length;
232
	var i = text.length;
233
	do
233
	do
...
...
236
		i--;
236
		i--;
237
	} while ((part == ' ') || (part == '\n') || (part == '\r'));
237
	} while ((part == ' ') || (part == '\n') || (part == '\r'));
238
	text = text.substring(0, i+1);
238
	text = text.substring(0, i+1);
239
	
239
240
	return text;
240
	return text;
241
}
241
}
242
	
242
243
function ltrim(text)
243
function ltrim(text)
244
{
244
{
245
	if (text == '')
245
	if (text == '')
246
	{
246
	{
247
		return '';
247
		return '';
248
	}
248
	}
249
	
249
250
	var part = '';
250
	var part = '';
251
	var i = 0;
251
	var i = 0;
252
	do
252
	do
...
...
255
		i++;
255
		i++;
256
	} while ((part == ' ') || (part == '\n') || (part == '\r'));
256
	} while ((part == ' ') || (part == '\n') || (part == '\r'));
257
	text = text.substring(i-1, text.length);
257
	text = text.substring(i-1, text.length);
258
	
258
259
	return text;
259
	return text;
260
}
260
}
261
261
...
...
282
	{
282
	{
283
		newtext = '&nbsp;';
283
		newtext = '&nbsp;';
284
	}
284
	}
285
	
285
286
	if (obj.innerText)
286
	if (obj.innerText)
287
	{
287
	{
288
		obj.innerText = newtext;
288
		obj.innerText = newtext;
...
...
317
		{
317
		{
318
			return fields;
318
			return fields;
319
		}
319
		}
320
		
320
321
		for (var i = 0; i < res.length; i++)
321
		for (var i = 0; i < res.length; i++)
322
		{
322
		{
323
			var field = new Array();
323
			var field = new Array();
...
...
325
			field[0] = RegExp.$1;
325
			field[0] = RegExp.$1;
326
			res[i].match(/\<.+?\>((.|\s)+)\<\/.+?\>/gm);
326
			res[i].match(/\<.+?\>((.|\s)+)\<\/.+?\>/gm);
327
			field[1] = unhtmlspecialchars(RegExp.$1);
327
			field[1] = unhtmlspecialchars(RegExp.$1);
328
			
328
329
			fields[i] = field;
329
			fields[i] = field;
330
		}
330
		}
331
	}
331
	}
332
	
332
333
	return fields;
333
	return fields;
334
}
334
}
335
335
...
...
359
		{
359
		{
360
			return text;
360
			return text;
361
		}
361
		}
362
		
362
363
		text = text.substring(0, pos) + unescape('%u' + parseInt(num.substring(2, num.length-1)).toString(16)) + text.substring(pos+num.length, text.length);
363
		text = text.substring(0, pos) + unescape('%u' + parseInt(num.substring(2, num.length-1)).toString(16)) + text.substring(pos+num.length, text.length);
364
	}
364
	}
365
	
365
366
	return text;
366
	return text;
367
}
367
}

Updated ip/trunk/templates/default/default.cfg Download diff

169170
706
	'S_HEADER_BANNER' => (empty($header_banner_text) ? false : true),
706
	'S_HEADER_BANNER' => (empty($header_banner_text) ? false : true),
707
	'S_HIGHSLIDE' => ($config['thumbnail_highslide'] ? true : false),
707
	'S_HIGHSLIDE' => ($config['thumbnail_highslide'] ? true : false),
708
	'S_LIGHTBOX' => ((!$config['thumbnail_highslide'] && $config['thumbnail_lightbox']) ? true : false),
708
	'S_LIGHTBOX' => ((!$config['thumbnail_highslide'] && $config['thumbnail_lightbox']) ? true : false),
709
	'S_NIFTY' => (isset($nifty_corners) ? $nifty_corners : true),
709
	'IS_XMAS' => $is_xmas,
710
	'IS_XMAS' => $is_xmas,
710
	'S_XMAS_GFX' => (($config['xmas_gfx'] == true) ? true : false),
711
	'S_XMAS_GFX' => (($config['xmas_gfx'] == true) ? true : false),
711
	'S_XMAS_FX' => (($config['xmas_fx'] == true) ? true : false),
712
	'S_XMAS_FX' => (($config['xmas_fx'] == true) ? true : false),

Added ip/trunk/templates/default/rating_box.tpl

Show contents

Updated ip/trunk/templates/default/simple_header.tpl Download diff

169170
23
<link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}{css_include.CSS_FILE}" type="text/css" />
23
<link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}{css_include.CSS_FILE}" type="text/css" />
24
<!-- END css_include -->
24
<!-- END css_include -->
25
25
26
<!-- IF IS_PROSILVER -->
27
<link rel="stylesheet" href="{FULL_SITE_PATH}{T_TPL_PATH}style_css.{PHP_EXT}?color={CSS_COLOR}&amp;lang={CURRENT_TPL_LANG}"
type="text/css" />
28
<!-- ENDIF -->
29
26
<!-- INCLUDE overall_inc_header_js.tpl -->
30
<!-- INCLUDE overall_inc_header_js.tpl -->
27
31
32
<!-- IF S_NIFTY -->
28
<!-- Nifty Start -->
33
<!-- Nifty Start -->
29
<!-- <link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}nifty/nifty_corners.css" type="text/css" /> -->
34
<!-- <link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}nifty/nifty_corners.css" type="text/css" /> -->
30
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}nifty/nifty_cube.js"></script>
35
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}nifty/nifty_cube.js"></script>
31
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}nifty/nifty_layout.js"></script>
36
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}nifty/nifty_layout.js"></script>
32
<!-- Nifty End -->
37
<!-- Nifty End -->
38
<!-- ENDIF -->
33
39
34
</head>
40
</head>
35
<body <!-- IF S_SLIDESHOW_SCRIPT -->onload="runSlideShow()"<!-- ENDIF -->>
41
<body <!-- IF S_SLIDESHOW_SCRIPT -->onload="runSlideShow()"<!-- ENDIF -->>

Updated ip/trunk/viewtopic.php Download diff

169170
1433
$this_date = create_date('md', time(), $config['board_timezone']);
1433
$this_date = create_date('md', time(), $config['board_timezone']);
1434
1434
1435
// Mighty Gorgon - Feedbacks - BEGIN
1435
// Mighty Gorgon - Feedbacks - BEGIN
1436
if (!empty($config['plugins']['feedbacks']['enabled']))
1436
$feedback_disabled = true;
1437
if (!empty($config['plugins']['feedbacks']['enabled']) && !empty($config['plugins']['feedbacks']['dir']))
1437
{
1438
{
1438
	define('MG_ROOT_PATH', IP_ROOT_PATH . 'mg/');
1439
	include(IP_ROOT_PATH . PLUGINS_PATH . $config['plugins']['feedbacks']['dir'] . 'common.' . PHP_EXT);
1439
	include_once(MG_ROOT_PATH . 'includes/functions_feedbacks.' . PHP_EXT);
1440
	$feedbacks_allowed_forums = explode(',', PLUGINS_FEEDBACKS_FORUMS);
1440
	include_once(MG_ROOT_PATH . 'common.' . PHP_EXT);
1441
	include_once(MG_ROOT_PATH . 'language/lang_' . $config['default_lang'] . '/lang_mg.' . PHP_EXT);
1442
	include_once(MG_ROOT_PATH . 'language/lang_' . $config['default_lang'] . '/lang_feedbacks.' . PHP_EXT);
1443
	$feedbacks_allowed_forums = explode(',', MG_FEEDBACKS_FORUMS);
1444
	$feedback_disabled = false;
1441
	$feedback_disabled = false;
1445
	if (!in_array($forum_id, $feedbacks_allowed_forums))
1442
	if (!in_array($forum_id, $feedbacks_allowed_forums))
1446
	{
1443
	{
...
...
2207
		{
2204
		{
2208
			$feedbacks_average = (($feedbacks_details['feedbacks_count'] > 0) ? (round($feedbacks_details['feedbacks_sum'] / $feedbacks_details['feedbacks_count'],
1)) : 0);
2205
			$feedbacks_average = (($feedbacks_details['feedbacks_count'] > 0) ? (round($feedbacks_details['feedbacks_sum'] / $feedbacks_details['feedbacks_count'],
1)) : 0);
2209
			$feedbacks_average_img = IP_ROOT_PATH . 'images/feedbacks/' . build_feedback_rating_image($feedbacks_average);
2206
			$feedbacks_average_img = IP_ROOT_PATH . 'images/feedbacks/' . build_feedback_rating_image($feedbacks_average);
2210
			$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 />') : '');
2207
			$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 />') : '');
2211
		}
2208
		}
2212
		if (can_user_give_feedbacks_topic($userdata['user_id'], $topic_id) && can_user_give_feedbacks_global($userdata['user_id'], $topic_id) &&
($userdata['user_id'] != $postrow[$i]['user_id']))
2209
		if (can_user_give_feedbacks_topic($userdata['user_id'], $topic_id) && can_user_give_feedbacks_global($userdata['user_id'], $topic_id) &&
($userdata['user_id'] != $postrow[$i]['user_id']))
2213
		{
2210
		{
2214
			$feedback_add = '&nbsp;&nbsp;<a href="' . append_sid(MG_FEEDBACKS_FILE . '?mode=input&amp;' . POST_TOPIC_URL . '=' . $topic_id . '&amp;' . POST_USERS_URL . '=' . $postrow[$i]['user_id']) . '">' . $lang['FEEDBACK_ADD'] . '</a><br />';
2211
			$feedback_add = '&nbsp;&nbsp;<a href="' . append_sid(PLUGINS_FEEDBACKS_FILE . '?mode=input&amp;' . POST_TOPIC_URL . '=' . $topic_id . '&amp;' . POST_USERS_URL . '=' . $postrow[$i]['user_id']) . '">' . $lang['FEEDBACK_ADD'] . '</a><br />';
2215
		}
2212
		}
2216
	}
2213
	}
2217
	// Mighty Gorgon - Feedbacks - END
2214
	// Mighty Gorgon - Feedbacks - END

Updated styles/prosilver_ip/prosilver_ip.cfg Download diff

169170
23
$img_fade = '';
23
$img_fade = '';
24
$img_fade_nm = '';
24
$img_fade_nm = '';
25
$menu_sep_char = '&bull;';
25
$menu_sep_char = '&bull;';
26
$nifty_corners = false;
26
27
27
if (($config['xmas_gfx'] == 1) && ($color == 'blue'))
28
if (($config['xmas_gfx'] == 1) && ($color == 'blue'))
28
{
29
{