Changeset 163

User picture

Author: Mighty Gorgon

(2010/01/17 09:58) About 2 years ago

Tags release updated to 1.3.0.53a

Affected files

Updated ip/tags/release_1_3_0_53/adm/admin_account.php Download diff

162163
131
131
132
			$emailer->assign_vars(array(
132
			$emailer->assign_vars(array(
133
				'SUBJECT' => $subject,
133
				'SUBJECT' => $subject,
134
				'TEXT' => sprintf($text, $board_config['sitename']),
134
				'TEXT' => sprintf($text, ip_stripslashes($board_config['sitename'])),
135
				'USERNAME' => $mail['username'],
135
				'USERNAME' => $mail['username'],
136
				'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
136
				'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . ip_stripslashes($board_config['board_email_sig'])) : '',
137
				)
137
				)
138
			);
138
			);
139
			$emailer->send();
139
			$emailer->send();

Updated ip/tags/release_1_3_0_53/adm/admin_album_cat.php Download diff

162163
446
			if ($db->sql_numrows($result) > 0)
446
			if ($db->sql_numrows($result) > 0)
447
			{
447
			{
448
				$parent_cat_id = 0;
448
				$parent_cat_id = 0;
449
				if (isset($lang[$board_config['sitename']]))
449
				if (isset($lang[ip_stripslashes($board_config['sitename'])]))
450
					$parent_cat_title = sprintf($lang['Forum_Index'], $lang[$board_config['sitename']]);
450
					$parent_cat_title = sprintf($lang['Forum_Index'], $lang[ip_stripslashes($board_config['sitename'])]);
451
				else
451
				else
452
					$parent_cat_title = sprintf($lang['Forum_Index'], $board_config['sitename']);
452
					$parent_cat_title = sprintf($lang['Forum_Index'], ip_stripslashes($board_config['sitename']));
453
453
454
				//it is so set the indicator that we are deleting a parent category
454
				//it is so set the indicator that we are deleting a parent category
455
				$parent_cat_deleted = true;
455
				$parent_cat_deleted = true;
...
...
512
					}
512
					}
513
513
514
					$file_part = explode('.', strtolower($pic_filename));
514
					$file_part = explode('.', strtolower($pic_filename));
515
					$pic_filetype = $file_part[count($file_part) - 1];
515
					$pic_filetype = $file_part[sizeof($file_part) - 1];
516
					$pic_filename_only = substr($pic_filename, 0, strlen($pic_filename) - strlen($pic_filetype) - 1);
516
					$pic_filename_only = substr($pic_filename, 0, strlen($pic_filename) - strlen($pic_filetype) - 1);
517
					$pic_base_path = ALBUM_UPLOAD_PATH;
517
					$pic_base_path = IP_ROOT_PATH . ALBUM_UPLOAD_PATH;
518
					$pic_extra_path = '';
518
					$pic_extra_path = '';
519
					$pic_new_filename = $pic_extra_path . $pic_filename;
519
					$pic_new_filename = $pic_extra_path . $pic_filename;
520
					$pic_fullpath = $pic_base_path . $pic_new_filename;
520
					$pic_fullpath = $pic_base_path . $pic_new_filename;
521
					$pic_thumbnail = $picrow[$i]['pic_thumbnail'];
521
					$pic_thumbnail = $filerow[$i]['pic_thumbnail'];
522
					$pic_thumbnail_fullpath = ALBUM_CACHE_PATH . $pic_thumbnail;
522
					$pic_thumbnail_fullpath = IP_ROOT_PATH . ALBUM_CACHE_PATH . $pic_thumbnail;
523
523
524
					if (USERS_SUBFOLDERS_ALBUM == true)
524
					if (USERS_SUBFOLDERS_ALBUM == true)
525
					{
525
					{
526
						if (count($pic_path) == 2)
526
						if (sizeof($pic_path) == 2)
527
						{
527
						{
528
							$pic_extra_path = $pic_path[0] . '/';
528
							$pic_extra_path = $pic_path[0] . '/';
529
							$pic_thumbnail_path = ALBUM_CACHE_PATH . $pic_extra_path;
529
							$pic_base_full_path = IP_ROOT_PATH . ALBUM_UPLOAD_PATH . $pic_extra_path;
530
							if (is_dir($pic_path_only))
530
							$pic_thumbnail_path = IP_ROOT_PATH . ALBUM_CACHE_PATH . $pic_extra_path;
531
							if (is_dir($pic_base_full_path))
531
							{
532
							{
532
								$pic_new_filename = $pic_extra_path . $pic_filename;
533
								$pic_new_filename = $pic_extra_path . $pic_filename;
533
								$pic_fullpath = $pic_base_path . $pic_new_filename;
534
								$pic_fullpath = $pic_base_path . $pic_new_filename;
...
...
541
					}
542
					}
542
543
543
					@unlink($pic_thumbnail_fullpath);
544
					@unlink($pic_thumbnail_fullpath);
544
					@unlink(ALBUM_MED_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
545
					@unlink(IP_ROOT_PATH . ALBUM_MED_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
545
					@unlink(ALBUM_WM_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
546
					@unlink(IP_ROOT_PATH . ALBUM_WM_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
546
					@unlink($pic_fullpath);
547
					@unlink($pic_fullpath);
547
				}
548
				}
548
549

Updated ip/tags/release_1_3_0_53/adm/admin_force_read.php Download diff

162163
68
68
69
	echo "<table class=\"forumline\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"
border=\"0\">";
69
	echo "<table class=\"forumline\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"
border=\"0\">";
70
	echo "	<tr>";
70
	echo "	<tr>";
71
	echo "		<th class=\"thHead\" colspan=\"2\">";
71
	echo "		<th colspan=\"2\">";
72
	echo "			". $lang['Ftr_admin_users'];
72
	echo "			". $lang['Ftr_admin_users'];
73
	echo "		</th>";
73
	echo "		</th>";
74
	echo "	</tr>";
74
	echo "	</tr>";
75
	echo "</table>";
75
	echo "</table>";
76
	echo '<br /><br />';
76
	echo '<br /><br />';
77
77
78
	$sql = "SELECT COUNT(user) AS total
78
	$sql = "SELECT COUNT(user) AS total FROM ". FORCE_READ_USERS_TABLE;
79
			FROM ". FORCE_READ_USERS_TABLE;
80
	if (!($result = $db->sql_query($sql)))
79
	if (!($result = $db->sql_query($sql)))
81
	{
80
	{
82
		message_die(GENERAL_ERROR, $lang['Ftr_total_user_error'], '', __LINE__, __FILE__, $sql);
81
		message_die(GENERAL_ERROR, $lang['Ftr_total_user_error'], '', __LINE__, __FILE__, $sql);
...
...
137
		$time = $row1['time'];
136
		$time = $row1['time'];
138
		$time = strftime("%b. %d, %Y @ %H:%M:%S", $time);
137
		$time = strftime("%b. %d, %Y @ %H:%M:%S", $time);
139
138
140
		$q = "SELECT username
139
		$q = "SELECT username, user_color, user_active
141
			FROM ". USERS_TABLE ."
140
			FROM ". USERS_TABLE ."
142
			WHERE user_id = '$user'";
141
			WHERE user_id = " . $user;
143
		$r = $db -> sql_query($q);
142
		$r = $db -> sql_query($q);
144
		$row = $db -> sql_fetchrow($r);
143
		$row = $db -> sql_fetchrow($r);
145
		$name = $row['username'];
144
		$name = $row['username'];
...
...
147
		echo "	<tr>";
146
		echo "	<tr>";
148
		echo "		<td class=\"row2\" width=\"50%\" valign=\"middle\">";
147
		echo "		<td class=\"row2\" width=\"50%\" valign=\"middle\">";
149
		echo "			<span class=\"genmed\">";
148
		echo "			<span class=\"genmed\">";
150
		echo "				<a href=\"". append_sid($_SERVER['PHP_SELF'] ."?mode=delete_user&user=". $user) ."\">$name</a>";
149
		echo "				" . colorize_username($user, $name, $row['user_color'], $row['user_active']) . "&nbsp;[<a href=\"" . append_sid($_SERVER['PHP_SELF'] . "?mode=delete_user&amp;user=" . $user) ."\">" . $lang['Delete'] . "</a>]";
151
		echo "			</span>";
150
		echo "			</span>";
152
		echo "		</td>";
151
		echo "		</td>";
153
		echo "		<td class=\"row2\" width=\"50%\" valign=\"middle\">";
152
		echo "		<td class=\"row2\" width=\"50%\" valign=\"middle\">";

Updated ip/tags/release_1_3_0_53/adm/admin_forums.php Download diff

162163
455
			// Make sure forums cache is empty before creating user_tree
455
			// Make sure forums cache is empty before creating user_tree
456
			empty_cache_folders(FORUMS_CACHE_FOLDER);
456
			empty_cache_folders(FORUMS_CACHE_FOLDER);
457
			empty_cache_folders(TOPICS_CACHE_FOLDER);
457
			empty_cache_folders(TOPICS_CACHE_FOLDER);
458
			empty_cache_folders(SQL_CACHE_FOLDER);
458
			admin_check_cat();
459
			admin_check_cat();
459
			get_user_tree($userdata);
460
			get_user_tree($userdata);
460
			move_tree('Root', 0, 0);
461
			move_tree('Root', 0, 0);
...
...
475
			}
476
			}
476
			// Empty forums cache again... just to be really sure we are not messing up things!
477
			// Empty forums cache again... just to be really sure we are not messing up things!
477
			empty_cache_folders(FORUMS_CACHE_FOLDER);
478
			empty_cache_folders(FORUMS_CACHE_FOLDER);
479
			empty_cache_folders(TOPICS_CACHE_FOLDER);
480
			empty_cache_folders(SQL_CACHE_FOLDER);
478
			cache_tree(true);
481
			cache_tree(true);
479
			board_stats();
482
			board_stats();
480
483
...
...
610
			}
613
			}
611
			empty_cache_folders(FORUMS_CACHE_FOLDER);
614
			empty_cache_folders(FORUMS_CACHE_FOLDER);
612
			empty_cache_folders(TOPICS_CACHE_FOLDER);
615
			empty_cache_folders(TOPICS_CACHE_FOLDER);
616
			empty_cache_folders(SQL_CACHE_FOLDER);
613
			cache_tree(true);
617
			cache_tree(true);
614
			board_stats();
618
			board_stats();
615
			if($_POST['notify_enable'] != '1')
619
			if($_POST['notify_enable'] != '1')
...
...
681
			// Make sure cache is empty again...
685
			// Make sure cache is empty again...
682
			empty_cache_folders(FORUMS_CACHE_FOLDER);
686
			empty_cache_folders(FORUMS_CACHE_FOLDER);
683
			empty_cache_folders(TOPICS_CACHE_FOLDER);
687
			empty_cache_folders(TOPICS_CACHE_FOLDER);
688
			empty_cache_folders(SQL_CACHE_FOLDER);
684
			cache_tree(true);
689
			cache_tree(true);
685
			board_stats();
690
			board_stats();
686
691
...
...
849
			$message = $lang['Forums_updated'] . '<br /><br />' . sprintf($lang['Click_return_forumadmin'], '<a href="' . append_sid('admin_forums.'
. PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' .
PHP_EXT . '?pane=right') . '">', '</a>');
854
			$message = $lang['Forums_updated'] . '<br /><br />' . sprintf($lang['Click_return_forumadmin'], '<a href="' . append_sid('admin_forums.'
. PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' .
PHP_EXT . '?pane=right') . '">', '</a>');
850
			empty_cache_folders(FORUMS_CACHE_FOLDER);
855
			empty_cache_folders(FORUMS_CACHE_FOLDER);
851
			empty_cache_folders(TOPICS_CACHE_FOLDER);
856
			empty_cache_folders(TOPICS_CACHE_FOLDER);
857
			empty_cache_folders(SQL_CACHE_FOLDER);
852
			cache_tree(true);
858
			cache_tree(true);
853
			board_stats();
859
			board_stats();
854
			$err = admin_check_cat();
860
			$err = admin_check_cat();
...
...
970
976
971
				include(IP_ROOT_PATH . 'includes/prune.' . PHP_EXT);
977
				include(IP_ROOT_PATH . 'includes/prune.' . PHP_EXT);
972
				prune($from_id, 0, true); // Delete everything from forum
978
				prune($from_id, 0, true); // Delete everything from forum
979
				empty_cache_folders(FORUMS_CACHE_FOLDER);
980
				empty_cache_folders(TOPICS_CACHE_FOLDER);
981
				empty_cache_folders(SQL_CACHE_FOLDER);
982
				sync('forum', $from_id);
973
			}
983
			}
974
			else
984
			else
975
			{
985
			{
...
...
1027
				}
1037
				}
1028
				empty_cache_folders(FORUMS_CACHE_FOLDER);
1038
				empty_cache_folders(FORUMS_CACHE_FOLDER);
1029
				empty_cache_folders(TOPICS_CACHE_FOLDER);
1039
				empty_cache_folders(TOPICS_CACHE_FOLDER);
1040
				empty_cache_folders(SQL_CACHE_FOLDER);
1030
				sync('forum', $to_id);
1041
				sync('forum', $to_id);
1031
			}
1042
			}
1032
1043
...
...
1160
			}
1171
			}
1161
			empty_cache_folders(FORUMS_CACHE_FOLDER);
1172
			empty_cache_folders(FORUMS_CACHE_FOLDER);
1162
			empty_cache_folders(TOPICS_CACHE_FOLDER);
1173
			empty_cache_folders(TOPICS_CACHE_FOLDER);
1174
			empty_cache_folders(SQL_CACHE_FOLDER);
1163
			cache_tree(true);
1175
			cache_tree(true);
1164
			board_stats();
1176
			board_stats();
1165
			$sql = "DELETE FROM " . FORUMS_WATCH_TABLE . "
1177
			$sql = "DELETE FROM " . FORUMS_WATCH_TABLE . "
...
...
1294
			$message = $lang['Forums_updated'] . '<br /><br />' . sprintf($lang['Click_return_forumadmin'], '<a href="' . append_sid('admin_forums.'
. PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' .
PHP_EXT . '?pane=right') . '">', '</a>');
1306
			$message = $lang['Forums_updated'] . '<br /><br />' . sprintf($lang['Click_return_forumadmin'], '<a href="' . append_sid('admin_forums.'
. PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' .
PHP_EXT . '?pane=right') . '">', '</a>');
1295
			empty_cache_folders(FORUMS_CACHE_FOLDER);
1307
			empty_cache_folders(FORUMS_CACHE_FOLDER);
1296
			empty_cache_folders(TOPICS_CACHE_FOLDER);
1308
			empty_cache_folders(TOPICS_CACHE_FOLDER);
1309
			empty_cache_folders(SQL_CACHE_FOLDER);
1297
			cache_tree(true);
1310
			cache_tree(true);
1298
			board_stats();
1311
			board_stats();
1299
			$err = admin_check_cat();
1312
			$err = admin_check_cat();
...
...
1313
			move_tree(POST_FORUM_URL, $forum_id, $move);
1326
			move_tree(POST_FORUM_URL, $forum_id, $move);
1314
			empty_cache_folders(FORUMS_CACHE_FOLDER);
1327
			empty_cache_folders(FORUMS_CACHE_FOLDER);
1315
			empty_cache_folders(TOPICS_CACHE_FOLDER);
1328
			empty_cache_folders(TOPICS_CACHE_FOLDER);
1329
			empty_cache_folders(SQL_CACHE_FOLDER);
1316
			cache_tree(true);
1330
			cache_tree(true);
1317
			board_stats();
1331
			board_stats();
1318
			$show_index = true;
1332
			$show_index = true;
...
...
1329
			$cat_id = $tree['id'][$tree['keys'][$main]];
1343
			$cat_id = $tree['id'][$tree['keys'][$main]];
1330
			empty_cache_folders(FORUMS_CACHE_FOLDER);
1344
			empty_cache_folders(FORUMS_CACHE_FOLDER);
1331
			empty_cache_folders(TOPICS_CACHE_FOLDER);
1345
			empty_cache_folders(TOPICS_CACHE_FOLDER);
1346
			empty_cache_folders(SQL_CACHE_FOLDER);
1332
			cache_tree(true);
1347
			cache_tree(true);
1333
			board_stats();
1348
			board_stats();
1334
			$show_index = true;
1349
			$show_index = true;
...
...
1452
$template->assign_vars(array(
1467
$template->assign_vars(array(
1453
	'SPACER' => $images['spacer'],
1468
	'SPACER' => $images['spacer'],
1454
	'NAV_CAT_DESC' => $nav_cat_desc,
1469
	'NAV_CAT_DESC' => $nav_cat_desc,
1455
	'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']),
1470
	'L_INDEX' => sprintf($lang['Forum_Index'], ip_stripslashes($board_config['sitename'])),
1456
	)
1471
	)
1457
);
1472
);
1458
1473

Updated ip/tags/release_1_3_0_53/adm/admin_forums_extend.php Download diff

162163
1456
		$s_hidden_fields .= '<input type="hidden" name="selected_id" value="' . $selected_id . '" />';
1456
		$s_hidden_fields .= '<input type="hidden" name="selected_id" value="' . $selected_id . '" />';
1457
		$s_hidden_fields .= '<input type="hidden" name="fid" value="' . $fid . '" />';
1457
		$s_hidden_fields .= '<input type="hidden" name="fid" value="' . $fid . '" />';
1458
		$template->assign_vars(array(
1458
		$template->assign_vars(array(
1459
			'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']),
1459
			'L_INDEX' => sprintf($lang['Forum_Index'], ip_stripslashes($board_config['sitename'])),
1460
			'NAV_CAT_DESC' => admin_get_nav_cat_desc($selected_id),
1460
			'NAV_CAT_DESC' => admin_get_nav_cat_desc($selected_id),
1461
			'S_HIDDEN_FIELDS' => $s_hidden_fields,
1461
			'S_HIDDEN_FIELDS' => $s_hidden_fields,
1462
			'U_INDEX' => append_sid('./admin_forums_extend.' . PHP_EXT),
1462
			'U_INDEX' => append_sid('./admin_forums_extend.' . PHP_EXT),
...
...
1628
	$s_hidden_fields = '';
1628
	$s_hidden_fields = '';
1629
	$s_hidden_fields .= '<input type="hidden" name="selected_id" value="' . $selected_id . '" />';
1629
	$s_hidden_fields .= '<input type="hidden" name="selected_id" value="' . $selected_id . '" />';
1630
	$template->assign_vars(array(
1630
	$template->assign_vars(array(
1631
		'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']),
1631
		'L_INDEX' => sprintf($lang['Forum_Index'], ip_stripslashes($board_config['sitename'])),
1632
		'NAV_CAT_DESC' => admin_get_nav_cat_desc($selected_id),
1632
		'NAV_CAT_DESC' => admin_get_nav_cat_desc($selected_id),
1633
		'S_HIDDEN_FIELDS' => $s_hidden_fields,
1633
		'S_HIDDEN_FIELDS' => $s_hidden_fields,
1634
		'U_INDEX' => append_sid('./admin_forums_extend.' . PHP_EXT),
1634
		'U_INDEX' => append_sid('./admin_forums_extend.' . PHP_EXT),

Updated ip/tags/release_1_3_0_53/adm/admin_megamail.php Download diff

162163
349
			$server_url = create_server_url();
349
			$server_url = create_server_url();
350
			$pm_inbox_link = $server_url . 'privmsg.' . PHP_EXT . '?folder=inbox';
350
			$pm_inbox_link = $server_url . 'privmsg.' . PHP_EXT . '?folder=inbox';
351
			$pm_inbox_link = (!$board_config['html_email']) ? $pm_inbox_link : ('<a href="' . $pm_inbox_link . '">' . $pm_inbox_link . '</a>');
351
			$pm_inbox_link = (!$board_config['html_email']) ? $pm_inbox_link : ('<a href="' . $pm_inbox_link . '">' . $pm_inbox_link . '</a>');
352
			$message = str_replace(array('{SITENAME}', '{U_INBOX}'), array($board_config['sitename'], $pm_inbox_link), $lang['PM_NOTIFICATION']);
352
			$message = str_replace(array('{SITENAME}', '{U_INBOX}'), array(ip_stripslashes($board_config['sitename']), $pm_inbox_link), $lang['PM_NOTIFICATION']);
353
			$message = (!$board_config['html_email']) ? str_replace('<br />', "\r\n", $message) : $message;
353
			$message = (!$board_config['html_email']) ? str_replace('<br />', "\r\n", $message) : $message;
354
		}
354
		}
355
355
356
		$emailer->assign_vars(array(
356
		$emailer->assign_vars(array(
357
			'SITENAME' => $board_config['sitename'],
357
			'SITENAME' => ip_stripslashes($board_config['sitename']),
358
			'BOARD_EMAIL' => $board_config['board_email'],
358
			'BOARD_EMAIL' => $board_config['board_email'],
359
			'MESSAGE' => $message
359
			'MESSAGE' => $message
360
			)
360
			)
...
...
415
		$url = append_sid('admin_megamail.' . PHP_EXT . '?mail_id=' . $mail_data['mail_id'] . '&amp;mail_session_id=' . $mail_data['mailsession_id']);
415
		$url = append_sid('admin_megamail.' . PHP_EXT . '?mail_id=' . $mail_data['mail_id'] . '&amp;mail_session_id=' . $mail_data['mailsession_id']);
416
416
417
		$look_up_array = array(
417
		$look_up_array = array(
418
			"\"",
418
			'\"',
419
			'"',
419
			"<",
420
			"<",
420
			">",
421
			">",
421
			"\n",
422
			"\n",
...
...
423
		);
424
		);
424
425
425
		$replacement_array = array(
426
		$replacement_array = array(
426
			"\\\"",
427
			'&q_mg;',
428
			'\"',
427
			"&lt_mg;",
429
			"&lt_mg;",
428
			"&gt_mg;",
430
			"&gt_mg;",
429
			"\\n",
431
			"\\n",

Updated ip/tags/release_1_3_0_53/adm/admin_profile_fields.php Download diff

162163
31
$no_page_header = false;
31
$no_page_header = false;
32
require('./pagestart.' . PHP_EXT);
32
require('./pagestart.' . PHP_EXT);
33
include_once(IP_ROOT_PATH . 'includes/functions_profile.' . PHP_EXT);
33
include_once(IP_ROOT_PATH . 'includes/functions_profile.' . PHP_EXT);
34
$db->clear_cache('profile_fields_');
34
35
35
if(!isset($_GET['mode']) || !isset($_GET['pfid']))
36
if(!isset($_GET['mode']) || !isset($_GET['pfid']))
36
{
37
{
...
...
58
		'L_ADD_FIELD_TITLE' => $lang['add_field_title'],
59
		'L_ADD_FIELD_TITLE' => $lang['add_field_title'],
59
		'L_ADD_FIELD_EXPLAIN' => $lang['add_field_explain'],
60
		'L_ADD_FIELD_EXPLAIN' => $lang['add_field_explain'],
60
61
61
		'S_ADD_FIELD_ACTION' => append_sid("$filename?mode=update&pfid=x")
62
		'S_ADD_FIELD_ACTION' => append_sid($filename . '?mode=update&amp;pfid=x')
62
		));
63
		)
64
	);
63
}
65
}
64
elseif($mode == 'update')
66
elseif($mode == 'update')
65
{
67
{
...
...
67
69
68
	$name = htmlspecialchars($_POST['field_name']);
70
	$name = htmlspecialchars($_POST['field_name']);
69
	if(empty($name))
71
	if(empty($name))
72
	{
70
		message_die(GENERAL_ERROR,$lang['enter_a_name']);
73
		message_die(GENERAL_ERROR,$lang['enter_a_name']);
74
	}
71
75
72
	$description = htmlspecialchars($_POST['field_descrition']);
76
	$description = htmlspecialchars($_POST['field_descrition']);
73
77
...
...
83
	$radio_default_value = htmlspecialchars($_POST['radio_default_value']);
87
	$radio_default_value = htmlspecialchars($_POST['radio_default_value']);
84
	$radio_values = explode("\n",str_replace("\r",'',$radio_values));
88
	$radio_values = explode("\n",str_replace("\r",'',$radio_values));
85
	if(empty($radio_default_value))
89
	if(empty($radio_default_value))
90
	{
86
		$radio_default_value = $radio_values[0];
91
		$radio_default_value = $radio_values[0];
92
	}
87
	$temp = '';
93
	$temp = '';
88
	foreach($radio_values as $val)
94
	foreach($radio_values as $val)
95
	{
89
		$temp .= $val . ',';
96
		$temp .= $val . ',';
97
	}
90
	$radio_values = substr($temp,0,strlen($temp)-1);
98
	$radio_values = substr($temp,0,strlen($temp)-1);
91
99
92
	$checkbox_values = htmlspecialchars($_POST['checkbox_values']);
100
	$checkbox_values = htmlspecialchars($_POST['checkbox_values']);
...
...
97
		$check_default_values = explode("\n",str_replace("\r",'',$check_default_values));
105
		$check_default_values = explode("\n",str_replace("\r",'',$check_default_values));
98
		$temp = '';
106
		$temp = '';
99
		foreach($check_default_values as $val)
107
		foreach($check_default_values as $val)
108
		{
100
			$temp .= $val . ',';
109
			$temp .= $val . ',';
110
		}
101
		$check_default_values = substr($temp,0,strlen($temp)-1);
111
		$check_default_values = substr($temp,0,strlen($temp)-1);
102
	}
112
	}
103
	$temp = '';
113
	$temp = '';
104
	foreach($checkbox_values as $val)
114
	foreach($checkbox_values as $val)
115
	{
105
		$temp .= $val . ',';
116
		$temp .= $val . ',';
117
	}
106
	$checkbox_values = substr($temp,0,strlen($temp)-1);
118
	$checkbox_values = substr($temp,0,strlen($temp)-1);
107
119
108
	$required = intval($_POST['required']);
120
	$required = intval($_POST['required']);
...
...
118
		$sql = "SELECT field_name FROM " . PROFILE_FIELDS_TABLE . "
130
		$sql = "SELECT field_name FROM " . PROFILE_FIELDS_TABLE . "
119
			WHERE field_name='$name'";
131
			WHERE field_name='$name'";
120
		if(!($result = $db->sql_query($sql)))
132
		if(!($result = $db->sql_query($sql)))
133
		{
121
			message_die(GENERAL_ERROR,'Could not query database for field name information','',__LINE__,__FILE__,$sql);
134
			message_die(GENERAL_ERROR,'Could not query database for field name information','',__LINE__,__FILE__,$sql);
135
		}
122
		$temp = $db->sql_fetchrowset($result);
136
		$temp = $db->sql_fetchrowset($result);
123
		if(!empty($temp))
137
		if(!empty($temp))
138
		{
124
			message_die(GENERAL_ERROR,$lang['field_exists']);
139
			message_die(GENERAL_ERROR,$lang['field_exists']);
125
	}
140
	}
141
	}
126
142
127
	if($pfid == 'x')
143
	if($pfid == 'x')
144
	{
128
		$die_message = 'Could not insert new profile field';
145
		$die_message = 'Could not insert new profile field';
146
	}
129
	else
147
	else
148
	{
130
		$die_message = 'Could not update profile information';
149
		$die_message = 'Could not update profile information';
150
	}
131
151
132
	if($pfid != 'x')
152
	if($pfid != 'x')
133
	{
153
	{
134
		$sql = "SELECT field_name FROM " . PROFILE_FIELDS_TABLE . "
154
		$sql = "SELECT field_name FROM " . PROFILE_FIELDS_TABLE . "
135
			WHERE field_id = $pfid";
155
			WHERE field_id = $pfid";
136
		if(!($result = $db->sql_query($sql)))
156
		if(!($result = $db->sql_query($sql)))
157
		{
137
			message_die(GENERAL_ERROR,'Could not find old name','',__LINE__,__FILE__,$sql);
158
			message_die(GENERAL_ERROR,'Could not find old name','',__LINE__,__FILE__,$sql);
159
		}
138
		$old_name = $db->sql_fetchrow($result);
160
		$old_name = $db->sql_fetchrow($result);
139
		$old_name = text_to_column($old_name['field_name']);
161
		$old_name = text_to_column($old_name['field_name']);
140
	}
162
	}
...
...
185
	}
207
	}
186
208
187
	if(!$db->sql_query($sql))
209
	if(!$db->sql_query($sql))
210
	{
188
		message_die(GENERAL_ERROR, $die_message, '', __LINE__, __FILE__, $sql);
211
		message_die(GENERAL_ERROR, $die_message, '', __LINE__, __FILE__, $sql);
212
	}
189
213
190
	if($pfid != 'x')
214
	if($pfid != 'x')
191
	{
215
	{
...
...
211
		}
235
		}
212
	}
236
	}
213
237
214
	$sql = "ALTER TABLE " . USERS_TABLE . "
238
	$sql = "ALTER TABLE " . USERS_TABLE . " ADD $name";
215
		ADD $name";
216
	switch($type)
239
	switch($type)
217
	{
240
	{
218
		case TEXT_FIELD:
241
		case TEXT_FIELD:
...
...
228
	}
251
	}
229
252
230
	if($pfid == 'x' && !$db->sql_query($sql))
253
	if($pfid == 'x' && !$db->sql_query($sql))
254
	{
231
		message_die(GENERAL_ERROR,'Could not expand users table for new profile field.','',__LINE__,__FILE__,$sql);
255
		message_die(GENERAL_ERROR,'Could not expand users table for new profile field.','',__LINE__,__FILE__,$sql);
256
	}
232
257
233
	$sql = "SELECT user_id FROM " . USERS_TABLE;
258
	$sql = "SELECT user_id FROM " . USERS_TABLE;
234
	if(!($result = $db->sql_query($sql)))
259
	if(!($result = $db->sql_query($sql)))
260
	{
235
		message_die(GENERAL_ERROR,'Could not retrieve use and profile information','',__LINE__,__FILE__,$sql);
261
		message_die(GENERAL_ERROR,'Could not retrieve use and profile information','',__LINE__,__FILE__,$sql);
262
	}
236
263
237
	$user_id_array = array();
264
	$user_id_array = array();
238
	while($temp = $db->sql_fetchrow($result))$user_id_array[] = $temp['user_id'];
265
	while($temp = $db->sql_fetchrow($result))
266
	{
267
		$user_id_array[] = $temp['user_id'];
268
	}
239
269
240
	if($pfid == 'x')
270
	if($pfid == 'x')
271
	{
241
		foreach($user_id_array as $user_id)
272
		foreach($user_id_array as $user_id)
242
		{
273
		{
243
			$sql = "UPDATE " . USERS_TABLE . "
274
			$sql = "UPDATE " . USERS_TABLE . "
...
...
263
			$sql = sprintf($sql,"'$val'");
294
			$sql = sprintf($sql,"'$val'");
264
295
265
			if(!$db->sql_query($sql))
296
			if(!$db->sql_query($sql))
297
			{
266
				message_die(GENERAL_ERROR,'Could not update users with default values','',__LINE__,__FILE__,$sql);
298
				message_die(GENERAL_ERROR,'Could not update users with default values','',__LINE__,__FILE__,$sql);
267
		}
299
		}
300
		}
301
	}
268
302
269
	$template->assign_vars(array(
303
	$template->assign_vars(array(
270
		'MESSAGE_TITLE' => $pfid == 'x' ? $lang['profile_field_created'] : $lang['profile_field_updated'],
304
		'MESSAGE_TITLE' => $pfid == 'x' ? $lang['profile_field_created'] : $lang['profile_field_updated'],
271
		'MESSAGE_TEXT' => $lang['field_success'] . '<br /><br />' . $create_second_field_link));
305
		'MESSAGE_TEXT' => $lang['field_success'] . '<br /><br />' . $create_second_field_link
306
		)
307
	);
272
}
308
}
273
elseif($mode == 'edit')
309
elseif($mode == 'edit')
274
{
310
{
...
...
284
			'L_ACTION' => $lang['profile_field_action'],
320
			'L_ACTION' => $lang['profile_field_action'],
285
			'L_EDIT' => $lang['Edit'],
321
			'L_EDIT' => $lang['Edit'],
286
			'L_DELETE' => $lang['Delete']
322
			'L_DELETE' => $lang['Delete']
287
			));
323
			)
324
		);
288
325
289
		$profile_rows = get_fields();
326
		$profile_rows = get_fields();
290
327
291
		if(count($profile_rows) == 0)
328
		if(count($profile_rows) == 0)
329
		{
292
			$template->assign_block_vars('switch_no_fields',array('NO_FIELDS_EXIST' => $lang['no_profile_fields_exist']));
330
			$template->assign_block_vars('switch_no_fields',array('NO_FIELDS_EXIST' => $lang['no_profile_fields_exist']));
331
		}
293
		else
332
		else
294
		{
333
		{
295
			$template->assign_block_vars('switch_fields',array());
334
			$template->assign_block_vars('switch_fields',array());
...
...
300
				$id = $val['field_id'];
339
				$id = $val['field_id'];
301
				$name = $val['field_name'];
340
				$name = $val['field_name'];
302
341
303
				$edit_url = append_sid("$filename?mode=edit&pfid=$id");
342
				$edit_url = append_sid($filename . '?mode=edit&amp;pfid=' . $id);
304
				$delete_url = append_sid("$filename?mode=delete&pfid=$id");
343
				$delete_url = append_sid($filename . '?mode=delete&amp;pfid=' . $id);
305
344
306
				$template->assign_block_vars('switch_fields.profile_fields',array(
345
				$template->assign_block_vars('switch_fields.profile_fields',array(
307
					'ROW_CLASS' => $row,
346
					'ROW_CLASS' => $row,
...
...
310
349
311
					'U_PROFILE_FIELD_EDIT' => $edit_url,
350
					'U_PROFILE_FIELD_EDIT' => $edit_url,
312
					'U_PROFILE_FIELD_DELETE' => $delete_url
351
					'U_PROFILE_FIELD_DELETE' => $delete_url
313
					));
352
					)
353
				);
314
			}
354
			}
315
		}
355
		}
316
	}
356
	}
...
...
354
			'L_ADD_FIELD_TITLE' => $lang['edit_field_title'],
394
			'L_ADD_FIELD_TITLE' => $lang['edit_field_title'],
355
			'L_ADD_FIELD_EXPLAIN' => $lang['edit_field_explain'],
395
			'L_ADD_FIELD_EXPLAIN' => $lang['edit_field_explain'],
356
396
357
			'S_ADD_FIELD_ACTION' => append_sid("$filename?mode=update&pfid=$pfid")
397
			'S_ADD_FIELD_ACTION' => append_sid($filename . '?mode=update&amp;pfid=' . $pfid)
358
			));
398
			)
399
		);
359
	}
400
	}
360
}
401
}
361
elseif($mode == 'delete')
402
elseif($mode == 'delete')
...
...
363
	$field_name = get_fields('WHERE field_id = '.$pfid,false,'field_name');
404
	$field_name = get_fields('WHERE field_id = '.$pfid,false,'field_name');
364
	$name = text_to_column($field_name['field_name']);
405
	$name = text_to_column($field_name['field_name']);
365
406
366
	$del_link = '<a href="' . append_sid("$filename?mode=confirmdelete&pfid=$pfid&name=$name") . '">' . $lang['Yes'] . '</a>';
407
	$del_link = '<a href="' . append_sid($filename . '?mode=confirmdelete&amp;pfid=' . $pfid . '&amp;name=' . $name) . '">' . $lang['Yes'] . '</a>';
367
	$nodel_link = sprintf($lang['index_link'],$lang['No']);
408
	$nodel_link = sprintf($lang['index_link'],$lang['No']);
368
409
369
	$template->set_filenames(array('body' => ADM_TPL . 'admin_message_body.tpl'));
410
	$template->set_filenames(array('body' => ADM_TPL . 'admin_message_body.tpl'));
370
	$template->assign_vars(array(
411
	$template->assign_vars(array(
371
		'MESSAGE_TITLE' => sprintf($lang['double_check_delete'],$field_name['field_name']),
412
		'MESSAGE_TITLE' => sprintf($lang['double_check_delete'],$field_name['field_name']),
372
		'MESSAGE_TEXT' => $del_link . ' &nbsp; ' . $nodel_link
413
		'MESSAGE_TEXT' => $del_link . ' &nbsp; ' . $nodel_link
373
		));
414
		)
415
	);
374
}
416
}
375
elseif($mode == 'confirmdelete')
417
elseif($mode == 'confirmdelete')
376
{
418
{
377
	$sql = "DELETE FROM " . PROFILE_FIELDS_TABLE . "
419
	$sql = "DELETE FROM " . PROFILE_FIELDS_TABLE . "
378
		WHERE field_id = $pfid";
420
		WHERE field_id = $pfid";
379
	if(!$db->sql_query($sql))
421
	if(!$db->sql_query($sql))
422
	{
380
		message_die(GENERAL_ERROR,'Could not delete profile form database','',__LINE__,__FILE__,$sql);
423
		message_die(GENERAL_ERROR,'Could not delete profile form database','',__LINE__,__FILE__,$sql);
424
	}
381
425
382
	$name = $_GET['name'];
426
	$name = $_GET['name'];
383
	$sql = "ALTER TABLE " . USERS_TABLE . "
427
	$sql = "ALTER TABLE " . USERS_TABLE . "
384
		DROP COLUMN $name";
428
		DROP COLUMN $name";
385
	if(!$db->sql_query($sql))
429
	if(!$db->sql_query($sql))
430
	{
386
		message_die(GENERAL_ERROR,'Could not remove column from '.USERS_TABLE,'',__LINE__,__FILE__,$sql);
431
		message_die(GENERAL_ERROR,'Could not remove column from '.USERS_TABLE,'',__LINE__,__FILE__,$sql);
432
	}
387
433
388
	$template->set_filenames(array('body' => ADM_TPL . 'admin_message_body.tpl'));
434
	$template->set_filenames(array('body' => ADM_TPL . 'admin_message_body.tpl'));
389
	$template->assign_vars(array(
435
	$template->assign_vars(array(
390
		'MESSAGE_TITLE' => $lang['field_deleted'],
436
		'MESSAGE_TITLE' => $lang['field_deleted'],
391
		'MESSAGE_TEXT' => $lang['click_here_here']
437
		'MESSAGE_TEXT' => $lang['click_here_here']
392
		));
438
		)
439
	);
393
}
440
}
394
441
395
$template->assign_vars(array(
442
$template->assign_vars(array(
...
...
462
	'S_AUTHOR' => AUTHOR,
509
	'S_AUTHOR' => AUTHOR,
463
	'S_ABOVE_SIGNATURE' => ABOVE_SIGNATURE,
510
	'S_ABOVE_SIGNATURE' => ABOVE_SIGNATURE,
464
	'S_BELOW_SIGNATURE' => BELOW_SIGNATURE
511
	'S_BELOW_SIGNATURE' => BELOW_SIGNATURE
465
	));
512
	)
513
);
466
514
467
$template->pparse('body');
515
$template->pparse('body');
468
516
517
$db->clear_cache('profile_fields_');
469
include('./page_footer_admin.' . PHP_EXT);
518
include('./page_footer_admin.' . PHP_EXT);
470
?>
519
?>

Updated ip/tags/release_1_3_0_53/adm/admin_replace.php Download diff

162163
28
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
28
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
29
require('./pagestart.' . PHP_EXT);
29
require('./pagestart.' . PHP_EXT);
30
30
31
$str_old = trim(htmlspecialchars($HTTP_POST_VARS['str_old']));
31
$str_old = trim(htmlspecialchars($_POST['str_old']));
32
$str_new = trim(htmlspecialchars($HTTP_POST_VARS['str_new']));
32
$str_new = trim(htmlspecialchars($_POST['str_new']));
33
33
34
if ($_POST['submit'] && !empty($str_old) && $str_old != $str_new)
34
if ($_POST['submit'] && !empty($str_old) && $str_old != $str_new)
35
{
35
{

Added ip/tags/release_1_3_0_53/adm/admin_tickets.php

Show contents

Updated ip/tags/release_1_3_0_53/adm/admin_ug_auth.php Download diff

162163
263
			else
263
			else
264
			{
264
			{
265
				$change_acl_list = array();
265
				$change_acl_list = array();
266
				$used_forums = array();
266
				$forums_processed = array();
267
				for($j = 0; $j < count($forum_auth_fields); $j++)
267
				for($j = 0; $j < count($forum_auth_fields); $j++)
268
				{
268
				{
269
					$auth_field = $forum_auth_fields[$j];
269
					$auth_field = $forum_auth_fields[$j];
270
					while(list($forum_id, $value) = @each($_POST['private_' . $auth_field]))
270
					while(list($forum_id, $value) = @each($_POST['private_' . $auth_field]))
271
					{
271
					{
272
						$change_acl_list[$forum_id][$auth_field] = $value;
272
						// Mighty Gorgon: I have moved this part of code in this cycle to be able to use $forum_id var, otherwhise it was not assigned...
273
					}
273
						// FORUMS AUTH MOVED CODE - BEGIN
274
274
						if (!isset($forums_processed[$forum_id]))
275
					if (!isset($used_forums[$forum_id]))
276
					{
275
					{
277
						$sql = ($mode == 'user') ? ("SELECT aa.*, g.group_single_user FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug,
" . GROUPS_TABLE. " g WHERE ug.user_id = $user_id AND g.group_id = ug.group_id AND aa.group_id = ug.group_id AND aa.forum_id = $forum_id AND
g.group_single_user = 1") : ("SELECT * FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = $group_id AND forum_id = $forum_id");
276
						$sql = ($mode == 'user') ? ("SELECT aa.*, g.group_single_user FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug,
" . GROUPS_TABLE. " g WHERE ug.user_id = $user_id AND g.group_id = ug.group_id AND aa.group_id = ug.group_id AND aa.forum_id = $forum_id AND
g.group_single_user = 1") : ("SELECT * FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = $group_id AND forum_id = $forum_id");
278
						if (!($result = $db->sql_query($sql)))
277
						if (!($result = $db->sql_query($sql)))
...
...
286
								$change_acl_list[$forum_id][$forum_auth_fields[$k]] = $row[$forum_auth_fields[$k]];
285
								$change_acl_list[$forum_id][$forum_auth_fields[$k]] = $row[$forum_auth_fields[$k]];
287
							}
286
							}
288
						}
287
						}
289
						$used_forums[$forum_id] = 1;
288
							$forums_processed[$forum_id] = 1;
289
						}
290
						/*
291
						*/
292
						// FORUMS AUTH MOVED CODE - END
293
						$change_acl_list[$forum_id][$auth_field] = $value;
290
					}
294
					}
291
				}
295
				}
292
			}
296
			}
...
...
350
				{
354
				{
351
					$auth_field = $forum_auth_fields[$j];
355
					$auth_field = $forum_auth_fields[$j];
352
356
353
					if($forum_access[$i][$auth_field] == AUTH_ACL && isset($change_acl_list[$forum_id][$auth_field]))
357
					if(($forum_access[$i][$auth_field] == AUTH_ACL) && isset($change_acl_list[$forum_id][$auth_field]))
354
					{
358
					{
355
						if ((empty($auth_access[$forum_id]['auth_mod']) &&
359
						if ((empty($auth_access[$forum_id]['auth_mod']) &&
356
							(isset($auth_access[$forum_id][$auth_field]) && $change_acl_list[$forum_id][$auth_field] != $auth_access[$forum_id][$auth_field]) ||
360
							(isset($auth_access[$forum_id][$auth_field]) && ($change_acl_list[$forum_id][$auth_field] != $auth_access[$forum_id][$auth_field])) ||
357
							(!isset($auth_access[$forum_id][$auth_field]) && !empty($change_acl_list[$forum_id][$auth_field]))) ||
361
							(!isset($auth_access[$forum_id][$auth_field]) && !empty($change_acl_list[$forum_id][$auth_field]))) ||
358
							!empty($update_mod_status[$forum_id])
362
							!empty($update_mod_status[$forum_id])
359
						)
363
						)
...
...
374
							}
378
							}
375
						}
379
						}
376
						elseif ((empty($auth_access[$forum_id]['auth_mod']) &&
380
						elseif ((empty($auth_access[$forum_id]['auth_mod']) &&
377
							(isset($auth_access[$forum_id][$auth_field]) && $change_acl_list[$forum_id][$auth_field] == $auth_access[$forum_id][$auth_field])) && $forum_auth_action[$forum_id] == 'delete')
381
							(isset($auth_access[$forum_id][$auth_field]) && ($change_acl_list[$forum_id][$auth_field] == $auth_access[$forum_id][$auth_field]))) && ($forum_auth_action[$forum_id] == 'delete'))
378
						{
382
						{
379
							$forum_auth_action[$forum_id] = 'update';
383
							$forum_auth_action[$forum_id] = 'update';
380
						}
384
						}
...
...
1031
1035
1032
		'U_USER_OR_GROUP' => append_sid('admin_ug_auth.' . PHP_EXT),
1036
		'U_USER_OR_GROUP' => append_sid('admin_ug_auth.' . PHP_EXT),
1033
		'U_SWITCH_MODE' => $u_switch_mode,
1037
		'U_SWITCH_MODE' => $u_switch_mode,
1034
		'SPACER' => './../' . $images['spacer'],
1035
		'INC_SPAN' => $max_level + 1,
1038
		'INC_SPAN' => $max_level + 1,
1036
		'S_COLUMN_SPAN' => $s_column_span + $max_level+2,
1039
		'S_COLUMN_SPAN' => $s_column_span + $max_level+2,
1037
		'S_AUTH_ACTION' => append_sid('admin_ug_auth.' . PHP_EXT),
1040
		'S_AUTH_ACTION' => append_sid('admin_ug_auth.' . PHP_EXT),

Updated ip/tags/release_1_3_0_53/adm/admin_user_ban.php Download diff

162163
141
	}
141
	}
142
142
143
	$email_list = array();
143
	$email_list = array();
144
	if ( isset($_POST['ban_email']) )
144
	if (isset($_POST['ban_email']))
145
	{
145
	{
146
		// CrackerTracker v5.x
146
		// CrackerTracker v5.x
147
		if ( !empty($_POST['ban_email']) )
147
		if (!empty($_POST['ban_email']))
148
		{
148
		{
149
			include_once(IP_ROOT_PATH . 'ctracker/constants.' . PHP_EXT);
149
			include_once(IP_ROOT_PATH . 'ctracker/constants.' . PHP_EXT);
150
			$temp_userdata = get_userdata(CT_FIRST_ADMIN_UID, false);
150
			$founder_id = (defined('FOUNDER_ID') ? FOUNDER_ID : get_founder_id());
151
			if( !$temp_userdata )
151
			$temp_userdata = get_userdata($founder_id, false);
152
			if(!$temp_userdata)
152
			{
153
			{
153
				message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] );
154
				message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
154
			}
155
			}
155
156
156
			if ( $temp_userdata['user_email'] == $_POST['ban_email'] )
157
			if ($temp_userdata['user_email'] == $_POST['ban_email'])
157
			{
158
			{
158
				message_die(GENERAL_MESSAGE, $lang['ctracker_gmb_1stadmin']);
159
				message_die(GENERAL_MESSAGE, $lang['ctracker_gmb_1stadmin']);
159
			}
160
			}

Updated ip/tags/release_1_3_0_53/adm/admin_user_bantron.php Download diff

162163
76
	}
76
	}
77
	elseif ($_POST['ban_expire_time_mode'] == 'relative')
77
	elseif ($_POST['ban_expire_time_mode'] == 'relative')
78
	{
78
	{
79
		$ban_expire_time = strtotime('+' . $_POST['ban_expire_time_relative'] . ' ' . $_POST['ban_expire_time_relative_units']);
79
		$ban_expire_time = @strtotime('+' . $_POST['ban_expire_time_relative'] . ' ' . $_POST['ban_expire_time_relative_units']);
80
	}
80
	}
81
	elseif ($_POST['ban_expire_time_mode'] == 'absolute')
81
	elseif ($_POST['ban_expire_time_mode'] == 'absolute')
82
	{
82
	{
83
		$ban_expire_time = strtotime($_POST['ban_expire_time_absolute_hour'] . ':' . $_POST['ban_expire_time_absolute_minute'] . ' ' .
$_POST['ban_expire_time_absolute_ampm'] .' '. $_POST['ban_expire_time_absolute_month'] . '/' . $_POST['ban_expire_time_absolute_mday'] . '/' .
$_POST['ban_expire_time_absolute_year']);
83
		$ban_expire_time = @strtotime($_POST['ban_expire_time_absolute_hour'] . ':' . $_POST['ban_expire_time_absolute_minute'] . ' ' . $_POST['ban_expire_time_absolute_ampm'] .' '. $_POST['ban_expire_time_absolute_month'] . '/' . $_POST['ban_expire_time_absolute_mday'] . '/' . $_POST['ban_expire_time_absolute_year']);
84
	}
84
	}
85
85
86
	$user_list = array ();
86
	$user_list = array ();
...
...
477
477
478
		if (isset($row['ban_expire_time']))
478
		if (isset($row['ban_expire_time']))
479
		{
479
		{
480
			$ban_expire_time = getdate($row['ban_expire_time']);
480
			$ban_expire_time = @getdate($row['ban_expire_time']);
481
481
482
			if ($ban_expire_time['hours'] < 13)
482
			if ($ban_expire_time['hours'] < 13)
483
			{
483
			{

Updated ip/tags/release_1_3_0_53/adm/admin_userlist.php Download diff

162163
462
					$emailer->set_subject($lang['Group_added']);
462
					$emailer->set_subject($lang['Group_added']);
463
463
464
					$emailer->assign_vars(array(
464
					$emailer->assign_vars(array(
465
						'SITENAME' => $board_config['sitename'],
465
						'SITENAME' => ip_stripslashes($board_config['sitename']),
466
						'GROUP_NAME' => $group_name,
466
						'GROUP_NAME' => $group_name,
467
						'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
467
						'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . ip_stripslashes($board_config['board_email_sig'])) : '',
468
						'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . '=' . $group_id
468
						'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . '=' . $group_id
469
						)
469
						)
470
					);
470
					);

Updated ip/tags/release_1_3_0_53/adm/admin_voting.php Download diff

162163
152
	));
152
	));
153
153
154
// Assign Username array
154
// Assign Username array
155
$sql = "SELECT DISTINCT u.user_id, u.username" .
155
$sql = "SELECT DISTINCT u.user_id, u.username, u.user_active, u.user_color
156
		" FROM " . USERS_TABLE . " AS u , " . VOTE_USERS_TABLE . " AS vv" .
156
		FROM " . USERS_TABLE . " AS u , " . VOTE_USERS_TABLE . " AS vv
157
		" WHERE u.user_id = vv.vote_user_id";
157
		WHERE u.user_id = vv.vote_user_id";
158
158
159
if(!($result = $db->sql_query($sql)))
159
if(!($result = $db->sql_query($sql)))
160
{
160
{
161
	message_die(GENERAL_ERROR, 'Could not query users.', '', __LINE__, __FILE__, $sql);
161
	message_die(GENERAL_ERROR, 'Could not query users.', '', __LINE__, __FILE__, $sql);
162
}
162
}
163
163
164
$users_arr[] = array();
164
while ($row = $db->sql_fetchrow($result))
165
while ($row = $db->sql_fetchrow($result))
165
{
166
{
166
		$user_id = $row['user_id'];
167
		$user_id = $row['user_id'];
167
		$username = $row['username'];
168
		$username = $row['username'];
168
		$user_arr[$user_id] = $username;
169
		$user_arr[$user_id] = $username;
170
	$users_arr[$user_id]['user_id'] = $row['user_id'];
171
	$users_arr[$user_id]['username'] = $row['username'];
172
	$users_arr[$user_id]['user_active'] = $row['user_active'];
173
	$users_arr[$user_id]['user_color'] = $row['user_color'];
169
}
174
}
170
175
171
// Assign poll options array
176
// Assign poll options array
172
$sql = "SELECT *" .
177
$sql = "SELECT *
173
		" FROM ". VOTE_RESULTS_TABLE .
178
		FROM " . VOTE_RESULTS_TABLE . "
174
		" ORDER BY vote_id";
179
		ORDER BY vote_id";
175
180
176
if(!($result = $db->sql_query($sql)))
181
if(!($result = $db->sql_query($sql)))
177
{
182
{
...
...
184
	$vote_option_id = $row['vote_option_id'];
189
	$vote_option_id = $row['vote_option_id'];
185
	$vote_option_text = $row['vote_option_text'];
190
	$vote_option_text = $row['vote_option_text'];
186
	$vote_result = $row['vote_result'];
191
	$vote_result = $row['vote_result'];
187
	$option_arr[$vote_id][$vote_option_id]["text"] = $vote_option_text;
192
	$option_arr[$vote_id][$vote_option_id]['text'] = $vote_option_text;
188
	$option_arr[$vote_id][$vote_option_id]["result"] = $vote_result;
193
	$option_arr[$vote_id][$vote_option_id]['result'] = $vote_result;
189
}
194
}
190
195
191
// Assign individual vote results
196
// Assign individual vote results
192
$sql = "SELECT vote_id, vote_user_id, vote_cast" .
197
$sql = "SELECT vote_id, vote_user_id, vote_cast
193
		" FROM ". VOTE_USERS_TABLE .
198
		FROM " . VOTE_USERS_TABLE . "
194
		" ORDER BY vote_id";
199
		ORDER BY vote_id";
195
200
196
if(!($result = $db->sql_query($sql)))
201
if(!($result = $db->sql_query($sql)))
197
{
202
{
...
...
207
}
212
}
208
213
209
214
210
$sql ="SELECT *" .
215
$sql ="SELECT *
211
		" FROM ". VOTE_DESC_TABLE .
216
		FROM " . VOTE_DESC_TABLE . "
212
		" ORDER BY " . $order_by;
217
		ORDER BY " . $order_by;
213
218
214
if(!($result = $db->sql_query($sql)))
219
if(!($result = $db->sql_query($sql)))
215
{
220
{
...
...
222
227
223
while ($row = $db->sql_fetchrow($result))
228
while ($row = $db->sql_fetchrow($result))
224
{
229
{
225
	$topic_row_color = (($i % 2) == 0) ? "row1" : "row2";
230
	$topic_row_color = (($i % 2) == 0) ? 'row1' : 'row2';
226
	$vote_id = $row['vote_id'];
231
	$vote_id = $row['vote_id'];
227
	$vote_text = $row['vote_text'];
232
	$vote_text = $row['vote_text'];
228
	$topic_id = $row['topic_id'];
233
	$topic_id = $row['topic_id'];
...
...
232
237
233
	if (time() < $vote_end)
238
	if (time() < $vote_end)
234
	{
239
	{
235
		$vote_duration = (date ("m/d/y",$vote_start)) . " - " . (date ("m/d/y",$vote_end)) . "(ongoing)";
240
		$vote_duration = (date ('Y/m/d', $vote_start)) . " - " . (date ('Y/m/d', $vote_end)) . " (ongoing)";
236
	}
241
	}
237
	elseif ($vote_length == 0)
242
	elseif ($vote_length == 0)
238
	{
243
	{
239
		$vote_duration = (date ("m/d/y",$vote_start)) . " - " . "Infinite .." ;
244
		$vote_duration = (date ('Y/m/d', $vote_start)) . " - " . "Infinite..." ;
240
	}
245
	}
241
	else
246
	else
242
	{
247
	{
243
		$vote_duration = (date ("m/d/y",$vote_start)) . " - " . (date ("m/d/y",$vote_end)) . "(completed)" ;
248
		$vote_duration = (date ('Y/m/d', $vote_start)) . " - " . (date ('Y/m/d', $vote_end)) . " (completed)" ;
244
	}
249
	}
245
250
246
	$user = "";
251
	$user = '';
247
	$users = "";
252
	$users = '';
248
	$user_option_arr = "";
253
	$user_option_arr = '';
249
254
250
	if (count($voter_arr[$vote_id]) > 0)
255
	if (count($voter_arr[$vote_id]) > 0)
251
	{
256
	{
252
		foreach($voter_arr[$vote_id] as $user_id => $option_id)
257
		foreach($voter_arr[$vote_id] as $user_id => $option_id)
253
		{
258
		{
254
			$user .= $user_arr[$user_id].", ";
259
			$current_username = colorize_username($users_arr[$user_id]['user_id'], $users_arr[$user_id]['username'], $users_arr[$user_id]['user_color'], $users_arr[$user_id]['user_active']);
255
			$user_option_arr[$option_id] .= $user_arr[$user_id].", ";
260
			$user .= $current_username . ', ';
261
			$user_option_arr[$option_id] .= $current_username . ', ';
256
		}
262
		}
257
			$user = substr($user, "0", strrpos($user, ", "));
263
		$user = substr($user, '0', strrpos($user, ', '));
258
	}
264
	}
259
265
260
	$template->assign_block_vars('votes', array(
266
	$template->assign_block_vars('votes', array(
261
		'COLOR' => $topic_row_color,
267
		'COLOR' => $topic_row_color,
262
		'LINK' => IP_ROOT_PATH . VIEWTOPIC_MG . '?t=' . $topic_id,
268
		'LINK' => IP_ROOT_PATH . VIEWTOPIC_MG . '?' . POST_TOPIC_URL . '=' . $topic_id,
263
		'DESCRIPTION' => $vote_text,
269
		'DESCRIPTION' => $vote_text,
264
		'USER' => $user,
270
		'USER' => $user,
265
		'ENDDATE' => $vote_end,
271
		'ENDDATE' => $vote_end,
...
...
275
			$option_text = $elem['text'];
281
			$option_text = $elem['text'];
276
			$option_result = $elem['result'];
282
			$option_result = $elem['result'];
277
			$user = $user_option_arr[$vote_option_id];
283
			$user = $user_option_arr[$vote_option_id];
278
			$user = substr($user, "0", strrpos($user, ", "));
284
			$user = substr($user, '0', strrpos($user, ', '));
279
285
280
			$template->assign_block_vars('votes.detail', array(
286
			$template->assign_block_vars('votes.detail', array(
281
				'OPTION' => $option_text,
287
				'OPTION' => $option_text,
282
				'RESULT' => $option_result,
288
				'RESULT' => $option_result,
283
				'USER' => $user
289
				'USER' => $user
284
			));
290
				)
291
			);
285
		}
292
		}
286
	}
293
	}
287
294
...
...
290
}
297
}
291
298
292
// Pagination routine
299
// Pagination routine
293
//
294
$sql = "SELECT count(*) AS total" .
300
$sql = "SELECT count(*) AS total" .
295
		" FROM " . VOTE_DESC_TABLE .
301
		" FROM " . VOTE_DESC_TABLE .
296
		" WHERE vote_id > 0";
302
		" WHERE vote_id > 0";
...
...
314
	)
320
	)
315
);
321
);
316
322
317
// I'm the boss...need the info...
318
//
319
$template->pparse('pollbody');
323
$template->pparse('pollbody');
320
324
321
include('./page_footer_admin.' . PHP_EXT);
325
include('./page_footer_admin.' . PHP_EXT);

Updated ip/tags/release_1_3_0_53/adm/page_header_admin.php Download diff

162163
139
	'S_CONTENT_DIR_LEFT' => $lang['LEFT'],
139
	'S_CONTENT_DIR_LEFT' => $lang['LEFT'],
140
	'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'],
140
	'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'],
141
141
142
	'SITENAME' => $board_config['sitename'],
142
	'SITENAME' => ip_stripslashes($board_config['sitename']),
143
	'PAGE_TITLE' => $page_title,
143
	'PAGE_TITLE' => $page_title,
144
144
145
	// AJAX Features - BEGIN
145
	// AJAX Features - BEGIN
...
...
148
	// AJAX Features - END
148
	// AJAX Features - END
149
149
150
	'L_ADMIN' => $lang['Admin'],
150
	'L_ADMIN' => $lang['Admin'],
151
	'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']),
151
	'L_INDEX' => sprintf($lang['Forum_Index'], ip_stripslashes($board_config['sitename'])),
152
	'L_FAQ' => $lang['FAQ'],
152
	'L_FAQ' => $lang['FAQ'],
153
153
154
	'U_INDEX' => append_sid(IP_ROOT_PATH . FORUM_MG),
154
	'U_INDEX' => append_sid(IP_ROOT_PATH . FORUM_MG),

Updated ip/tags/release_1_3_0_53/album_download.php Download diff

162163
200
	// $archive = new tar_file('archive.tar'); // save as tar
200
	// $archive = new tar_file('archive.tar'); // save as tar
201
	// $archive = new gzip_file('archive.tgz'); // save as gzip
201
	// $archive = new gzip_file('archive.tgz'); // save as gzip
202
202
203
	$archive->set_options(array('inmemory' => 1, 'storepaths' => 0, 'comment' => 'Archived photos from ' . $board_config['sitename']));
203
	$archive->set_options(array('inmemory' => 1, 'storepaths' => 0, 'comment' => 'Archived photos from ' . ip_stripslashes($board_config['sitename'])));
204
	$DLpics = array();
204
	$DLpics = array();
205
	while($row = $db->sql_fetchrow($result))
205
	while($row = $db->sql_fetchrow($result))
206
	{
206
	{

Updated ip/tags/release_1_3_0_53/album_modcp.php Download diff

162163
1032
				$file_part = explode('.', strtolower($pic_filename));
1032
				$file_part = explode('.', strtolower($pic_filename));
1033
				$pic_filetype = $file_part[count($file_part) - 1];
1033
				$pic_filetype = $file_part[count($file_part) - 1];
1034
				$pic_filename_only = substr($pic_filename, 0, strlen($pic_filename) - strlen($pic_filetype) - 1);
1034
				$pic_filename_only = substr($pic_filename, 0, strlen($pic_filename) - strlen($pic_filetype) - 1);
1035
				$pic_base_path = ALBUM_UPLOAD_PATH;
1035
				$pic_base_path = IP_ROOT_PATH . ALBUM_UPLOAD_PATH;
1036
				$pic_extra_path = '';
1036
				$pic_extra_path = '';
1037
				$pic_new_filename = $pic_extra_path . $pic_filename;
1037
				$pic_new_filename = $pic_extra_path . $pic_filename;
1038
				$pic_fullpath = $pic_base_path . $pic_new_filename;
1038
				$pic_fullpath = $pic_base_path . $pic_new_filename;
...
...
1231
				}
1231
				}
1232
1232
1233
				$file_part = explode('.', strtolower($pic_filename));
1233
				$file_part = explode('.', strtolower($pic_filename));
1234
				$pic_filetype = $file_part[count($file_part) - 1];
1234
				$pic_filetype = $file_part[sizeof($file_part) - 1];
1235
				$pic_filename_only = substr($pic_filename, 0, strlen($pic_filename) - strlen($pic_filetype) - 1);
1235
				$pic_filename_only = substr($pic_filename, 0, strlen($pic_filename) - strlen($pic_filetype) - 1);
1236
				$pic_base_path = ALBUM_UPLOAD_PATH;
1236
				$pic_base_path = IP_ROOT_PATH . ALBUM_UPLOAD_PATH;
1237
				$pic_extra_path = '';
1237
				$pic_extra_path = '';
1238
				$pic_new_filename = $pic_extra_path . $pic_filename;
1238
				$pic_new_filename = $pic_extra_path . $pic_filename;
1239
				$pic_fullpath = $pic_base_path . $pic_new_filename;
1239
				$pic_fullpath = $pic_base_path . $pic_new_filename;
1240
				$pic_thumbnail = $filerow[$i]['pic_thumbnail'];
1240
				$pic_thumbnail = $filerow[$i]['pic_thumbnail'];
1241
				$pic_thumbnail_fullpath = ALBUM_CACHE_PATH . $pic_thumbnail;
1241
				$pic_thumbnail_fullpath = IP_ROOT_PATH . ALBUM_CACHE_PATH . $pic_thumbnail;
1242
1242
1243
				if (USERS_SUBFOLDERS_ALBUM == true)
1243
				if (USERS_SUBFOLDERS_ALBUM == true)
1244
				{
1244
				{
1245
					if (count($pic_path) == 2)
1245
					if (sizeof($pic_path) == 2)
1246
					{
1246
					{
1247
						$pic_extra_path = $pic_path[0] . '/';
1247
						$pic_extra_path = $pic_path[0] . '/';
1248
						$pic_thumbnail_path = ALBUM_CACHE_PATH . $pic_extra_path;
1248
						$pic_base_full_path = IP_ROOT_PATH . ALBUM_UPLOAD_PATH . $pic_extra_path;
1249
						if (is_dir($pic_path_only))
1249
						$pic_thumbnail_path = IP_ROOT_PATH . ALBUM_CACHE_PATH . $pic_extra_path;
1250
						if (is_dir($pic_base_full_path))
1250
						{
1251
						{
1251
							$pic_new_filename = $pic_extra_path . $pic_filename;
1252
							$pic_new_filename = $pic_extra_path . $pic_filename;
1252
							$pic_fullpath = $pic_base_path . $pic_new_filename;
1253
							$pic_fullpath = $pic_base_path . $pic_new_filename;
...
...
1260
				}
1261
				}
1261
1262
1262
				@unlink($pic_thumbnail_fullpath);
1263
				@unlink($pic_thumbnail_fullpath);
1263
				@unlink(ALBUM_MED_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
1264
				@unlink(IP_ROOT_PATH . ALBUM_MED_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
1264
				@unlink(ALBUM_WM_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
1265
				@unlink(IP_ROOT_PATH . ALBUM_WM_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
1265
				@unlink($pic_fullpath);
1266
				@unlink($pic_fullpath);
1266
			}
1267
			}
1267
1268

Updated ip/tags/release_1_3_0_53/album_personal_cat_admin.php Download diff

162163
646
				//set the indicator that we are deleting a parent category
646
				//set the indicator that we are deleting a parent category
647
				$parent_cat_deleted = true;
647
				$parent_cat_deleted = true;
648
648
649
				if (isset($lang[$board_config['sitename']]))
649
				if (isset($lang[ip_stripslashes($board_config['sitename'])]))
650
				{
650
				{
651
					$parent_cat_title = sprintf($lang['Forum_Index'], $lang[$board_config['sitename']]);
651
					$parent_cat_title = sprintf($lang['Forum_Index'], $lang[ip_stripslashes($board_config['sitename'])]);
652
				}
652
				}
653
				else
653
				else
654
				{
654
				{
655
					$parent_cat_title = sprintf($lang['Forum_Index'], $board_config['sitename']);
655
					$parent_cat_title = sprintf($lang['Forum_Index'], ip_stripslashes($board_config['sitename']));
656
				}
656
				}
657
657
658
				//... then check if the selected category is a child to another category
658
				//... then check if the selected category is a child to another category
...
...
715
					$file_part = explode('.', strtolower($pic_filename));
715
					$file_part = explode('.', strtolower($pic_filename));
716
					$pic_filetype = $file_part[count($file_part) - 1];
716
					$pic_filetype = $file_part[count($file_part) - 1];
717
					$pic_filename_only = substr($pic_filename, 0, strlen($pic_filename) - strlen($pic_filetype) - 1);
717
					$pic_filename_only = substr($pic_filename, 0, strlen($pic_filename) - strlen($pic_filetype) - 1);
718
					$pic_base_path = ALBUM_UPLOAD_PATH;
718
					$pic_base_path = IP_ROOT_PATH . ALBUM_UPLOAD_PATH;
719
					$pic_extra_path = '';
719
					$pic_extra_path = '';
720
					$pic_new_filename = $pic_extra_path . $pic_filename;
720
					$pic_new_filename = $pic_extra_path . $pic_filename;
721
					$pic_fullpath = $pic_base_path . $pic_new_filename;
721
					$pic_fullpath = $pic_base_path . $pic_new_filename;
722
					$pic_thumbnail = $picrow[$i]['pic_thumbnail'];
722
					$pic_thumbnail = $picrow[$i]['pic_thumbnail'];
723
					$pic_thumbnail_fullpath = ALBUM_CACHE_PATH . $pic_thumbnail;
723
					$pic_thumbnail_fullpath = IP_ROOT_PATH . ALBUM_CACHE_PATH . $pic_thumbnail;
724
724
725
					if (USERS_SUBFOLDERS_ALBUM == true)
725
					if (USERS_SUBFOLDERS_ALBUM == true)
726
					{
726
					{
727
						if (count($pic_path) == 2)
727
						if (count($pic_path) == 2)
728
						{
728
						{
729
							$pic_extra_path = $pic_path[0] . '/';
729
							$pic_extra_path = $pic_path[0] . '/';
730
							$pic_thumbnail_path = ALBUM_CACHE_PATH . $pic_extra_path;
730
							$pic_thumbnail_path = IP_ROOT_PATH . ALBUM_CACHE_PATH . $pic_extra_path;
731
							if (is_dir($pic_path_only))
731
							if (is_dir($pic_path_only))
732
							{
732
							{
733
								$pic_new_filename = $pic_extra_path . $pic_filename;
733
								$pic_new_filename = $pic_extra_path . $pic_filename;
...
...
742
					}
742
					}
743
743
744
					@unlink($pic_thumbnail_fullpath);
744
					@unlink($pic_thumbnail_fullpath);
745
					@unlink(ALBUM_MED_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
745
					@unlink(IP_ROOT_PATH . ALBUM_MED_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
746
					@unlink(ALBUM_WM_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
746
					@unlink(IP_ROOT_PATH . ALBUM_WM_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
747
					@unlink($pic_fullpath);
747
					@unlink($pic_fullpath);
748
				}
748
				}
749
749

Updated ip/tags/release_1_3_0_53/album_rdf.php Download diff

162163
87
if ( !$no_limit && isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) )
87
if ( !$no_limit && isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) )
88
{
88
{
89
	$NotErrorFlag = true;
89
	$NotErrorFlag = true;
90
	$NotModifiedSince = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
90
	$NotModifiedSince = @strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
91
	if($NotModifiedSince > 0)
91
	if($NotModifiedSince > 0)
92
	{
92
	{
93
		$sql_limit_time = "AND pic_time > " . $NotModifiedSince;
93
		$sql_limit_time = "AND pic_time > " . $NotModifiedSince;
...
...
141
	}
141
	}
142
}
142
}
143
143
144
$board_config['sitename'] = str_replace('&', '&amp;', $board_config['sitename']);
144
$board_config['sitename'] = str_replace('&', '&amp;', ip_stripslashes($board_config['sitename']));
145
$board_config['site_desc'] = str_replace('&', '&amp;', $board_config['site_desc']);
145
$board_config['site_desc'] = str_replace('&', '&amp;', ip_stripslashes($board_config['site_desc']));
146
146
147
// Create RSS header
147
// Create RSS header
148
$rdf_header = '<?xml version="1.0" encoding="ISO-8859-2" ?>
148
$rdf_header = '<?xml version="1.0" encoding="ISO-8859-2" ?>
...
...
161
$rdf = $rdf_header . $rdf . $rdf_footer;
161
$rdf = $rdf_header . $rdf . $rdf_footer;
162
162
163
// Discritics Replace
163
// Discritics Replace
164
$rdf = str_replace("&auml;", "ä", $rdf);
164
$rdf = str_replace("&auml;", "ä", $rdf);
165
$rdf = str_replace("&ouml;", "ö", $rdf);
165
$rdf = str_replace("&ouml;", "ö", $rdf);
166
$rdf = str_replace("&uuml;", "ü", $rdf);
166
$rdf = str_replace("&uuml;", "ü", $rdf);
167
167
168
// Output the RDF
168
// Output the RDF
169
echo $rdf;
169
echo $rdf;

Updated ip/tags/release_1_3_0_53/album_rss.php Download diff

162163
87
// End check permissions
87
// End check permissions
88
$NotErrorFlag = false;
88
$NotErrorFlag = false;
89
$sql_limit_time = "";
89
$sql_limit_time = "";
90
if ( !$no_limit && isset($HTTP_SERVER_VARS['HTTP_IF_MODIFIED_SINCE']) )
90
if ( !$no_limit && isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) )
91
{
91
{
92
	$NotErrorFlag = true;
92
	$NotErrorFlag = true;
93
	$NotModifiedSince = strtotime($HTTP_SERVER_VARS['HTTP_IF_MODIFIED_SINCE']);
93
	$NotModifiedSince = @strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
94
	if($NotModifiedSince > 0)
94
	if($NotModifiedSince > 0)
95
	{
95
	{
96
		$sql_limit_time = "AND pic_time > " . $NotModifiedSince;
96
		$sql_limit_time = "AND pic_time > " . $NotModifiedSince;
...
...
145
	}
145
	}
146
}
146
}
147
147
148
$board_config['sitename'] = str_replace('&', '&amp;', $board_config['sitename']);
148
$board_config['sitename'] = str_replace('&', '&amp;', ip_stripslashes($board_config['sitename']));
149
$board_config['site_desc'] = str_replace('&', '&amp;', $board_config['site_desc']);
149
$board_config['site_desc'] = str_replace('&', '&amp;', $board_config['site_desc']);
150
150
151
// Create RSS header
151
// Create RSS header
...
...
172
$rss = $rss_header . $rss . $rss_footer;
172
$rss = $rss_header . $rss . $rss_footer;
173
173
174
// Discritics Replace
174
// Discritics Replace
175
$rss = str_replace("&auml;", "ä", $rss);
175
$rss = str_replace("&auml;", "ä", $rss);
176
$rss = str_replace("&ouml;", "ö", $rss);
176
$rss = str_replace("&ouml;", "ö", $rss);
177
$rss = str_replace("&uuml;", "ü", $rss);
177
$rss = str_replace("&uuml;", "ü", $rss);
178
178
179
// Output the RSS
179
// Output the RSS
180
echo $rss;
180
echo $rss;

Updated ip/tags/release_1_3_0_53/album_upload.php Download diff

162163
1323
1323
1324
					$emailer->assign_vars(array(
1324
					$emailer->assign_vars(array(
1325
						'USERNAME' => $to_users['username'],
1325
						'USERNAME' => $to_users['username'],
1326
						'SITENAME' => $board_config['sitename'],
1326
						'SITENAME' => ip_stripslashes($board_config['sitename']),
1327
						'EMAIL_SIG' => str_replace('<br />', "\n", "----- \n" . $board_config['board_email_sig']),
1327
						'EMAIL_SIG' => str_replace('<br />', "\n", "----- \n" . ip_stripslashes($board_config['board_email_sig'])),
1328
						'FROM' => $userdata['username'],
1328
						'FROM' => $userdata['username'],
1329
						'PIC_TITLE' => $pic_title,
1329
						'PIC_TITLE' => $pic_title,
1330
						'PIC_ID' => $new_pic_id['pic_id'],
1330
						'PIC_ID' => $new_pic_id['pic_id'],

Updated ip/tags/release_1_3_0_53/blocks/blocks_imp_full_search.php Download diff

162163
30
			'L_SEARCH2' => $lang['search2'],
30
			'L_SEARCH2' => $lang['search2'],
31
			'L_SEARCH_AT' => $lang['search_at'],
31
			'L_SEARCH_AT' => $lang['search_at'],
32
			'L_ADVANCED_SEARCH' => $lang['Advanced_search'],
32
			'L_ADVANCED_SEARCH' => $lang['Advanced_search'],
33
			'L_FORUM_OPTION' => (!empty($cms_config_vars['md_full_search_option_text'][$block_id])) ? $cms_config_vars['md_full_search_option_text'][$block_id] : $board_config['sitename']
33
			'L_FORUM_OPTION' => (!empty($cms_config_vars['md_full_search_option_text'][$block_id])) ? $cms_config_vars['md_full_search_option_text'][$block_id] : ip_stripslashes($board_config['sitename'])
34
			)
34
			)
35
		);
35
		);
36
	}
36
	}

Updated ip/tags/release_1_3_0_53/blocks/blocks_imp_gsearch.php Download diff

162163
32
		$template->assign_vars(array(
32
		$template->assign_vars(array(
33
			'GSEARCH_BANNER' => $cms_config_vars['md_gsearch_banner'][$block_id],
33
			'GSEARCH_BANNER' => $cms_config_vars['md_gsearch_banner'][$block_id],
34
			'GSEARCH_SITE' => $cms_config_vars['md_gsearch_site'][$block_id],
34
			'GSEARCH_SITE' => $cms_config_vars['md_gsearch_site'][$block_id],
35
			'GSEARCH_SITENAME' => $board_config['sitename'],
35
			'GSEARCH_SITENAME' => htmlspecialchars(ip_stripslashes($board_config['sitename'])),
36
			'GSEARCH_HOR' => $cms_config_vars['md_gsearch_style'][$block_id],
36
			'GSEARCH_HOR' => $cms_config_vars['md_gsearch_style'][$block_id],
37
			'GSEARCH_TEXT' => htmlspecialchars($cms_config_vars['md_gsearch_text'][$block_id]),
37
			'GSEARCH_TEXT' => htmlspecialchars($cms_config_vars['md_gsearch_text'][$block_id]),
38
38
39
			'L_GSEARCH2' => $lang['GSearch2'],
39
			'L_GSEARCH2' => $lang['GSearch2'],
40
			'L_GSEARCH_AT' => $lang['GSearch_At'],
40
			'L_GSEARCH_AT' => $lang['GSearch_At'],
41
			'L_ADVANCED_GSEARCH' => $lang['Advanced_GSearch'],
41
			'L_ADVANCED_GSEARCH' => $lang['Advanced_GSearch'],
42
			'L_FORUM_OPTION' => $board_config['sitename']
42
			'L_FORUM_OPTION' => ip_stripslashes($board_config['sitename'])
43
			)
43
			)
44
		);
44
		);
45
	}
45
	}

Updated ip/tags/release_1_3_0_53/blocks/blocks_imp_news.php Download diff

162163
160
			}
160
			}
161
			$topic_id = ($topic_id < 0) ? 0 : $topic_id;
161
			$topic_id = ($topic_id < 0) ? 0 : $topic_id;
162
162
163
			if (!empty($topic_id))
164
			{
165
				$content->is_topic = true;
166
			}
167
163
			$content->setVariables(array('TITLE' => $lang['News_Cmx'] . ' ' . $lang['Articles']));
168
			$content->setVariables(array('TITLE' => $lang['News_Cmx'] . ' ' . $lang['Articles']));
164
			$content->renderArticles($topic_id);
169
			$content->renderArticles($topic_id);
165
		}
170
		}

Updated ip/tags/release_1_3_0_53/blocks/blocks_imp_style.php Download diff

162163
30
30
31
			$default_style = $board_config['default_style'];
31
			$default_style = $board_config['default_style'];
32
			$select_name = STYLE_URL;
32
			$select_name = STYLE_URL;
33
			$sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " ORDER BY template_name, themes_id";
33
			$sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " ORDER BY style_name, themes_id";
34
			if (!($result = $db->sql_query($sql, false, 'themes_')))
34
			if (!($result = $db->sql_query($sql, false, 'themes_')))
35
			{
35
			{
36
				message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql);
36
				message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql);

Updated ip/tags/release_1_3_0_53/card.php Download diff

162163
11
/**
11
/**
12
*
12
*
13
* @Extra credits for this file
13
* @Extra credits for this file
14
* Niels Chr. Rød (ncr@db9.dk) - (http://mods.db9.dk)
14
* Niels Chr. Rød (ncr@db9.dk) - (http://mods.db9.dk)
15
*
15
*
16
*/
16
*/
17
17
...
...
196
				'FORUM_NAME' => $forum_name,
196
				'FORUM_NAME' => $forum_name,
197
				'USER' => '"' . $userdata['username'] . '"',
197
				'USER' => '"' . $userdata['username'] . '"',
198
				'NUMBER_OF_REPPORTS' => $blue_card,
198
				'NUMBER_OF_REPPORTS' => $blue_card,
199
				'SITENAME' => $board_config['sitename'],
199
				'SITENAME' => ip_stripslashes($board_config['sitename']),
200
				'BOARD_EMAIL' => $board_config['board_email']));
200
				'BOARD_EMAIL' => $board_config['board_email']));
201
			$emailer->send();
201
			$emailer->send();
202
			$emailer->reset();
202
			$emailer->reset();
...
...
436
		//$emailer->set_subject($e_subj);
436
		//$emailer->set_subject($e_subj);
437
437
438
		$emailer->assign_vars(array(
438
		$emailer->assign_vars(array(
439
			'SITENAME' => $board_config['sitename'],
439
			'SITENAME' => ip_stripslashes($board_config['sitename']),
440
			'WARNINGS' => $warning_data['user_warnings'],
440
			'WARNINGS' => $warning_data['user_warnings'],
441
			'TOTAL_WARN' => $board_config['max_user_bancard'],
441
			'TOTAL_WARN' => $board_config['max_user_bancard'],
442
			'POST_URL' => $viewtopic_server_url . '?' . $forum_id_append . $topic_id_append . POST_POST_URL . '=' . $post_id . '#p' . $post_id,
442
			'POST_URL' => $viewtopic_server_url . '?' . $forum_id_append . $topic_id_append . POST_POST_URL . '=' . $post_id . '#p' . $post_id,
443
			'EMAIL_SIG' => str_replace("<br />", "\n", "-- \n" . $board_config['board_email_sig']),
443
			'EMAIL_SIG' => str_replace("<br />", "\n", "-- \n" . ip_stripslashes($board_config['board_email_sig'])),
444
			'WARNER' => $userdata['username'],
444
			'WARNER' => $userdata['username'],
445
			'BLOCK_TIME' => $block_time,
445
			'BLOCK_TIME' => $block_time,
446
			'WARNED_POSTER' => $warning_data['username'])
446
			'WARNED_POSTER' => $warning_data['username'])

Updated ip/tags/release_1_3_0_53/cms.php Download diff

162163
1727
1727
1728
			$select_name = 'edit_auth';
1728
			$select_name = 'edit_auth';
1729
			$default = empty($l_info['edit_auth']) ? 0 : $l_info['edit_auth'];
1729
			$default = empty($l_info['edit_auth']) ? 0 : $l_info['edit_auth'];
1730
			/*
1730
			$options_array = array(0, 1, 2, 3, 4, 5);
1731
			$options_array = array(0, 1, 2, 3, 4, 5);
1731
			$options_langs_array = array($lang['CMS_Guest'], $lang['CMS_Reg'], $lang['CMS_VIP'], $lang['CMS_Publisher'], $lang['CMS_Reviewer'],
$lang['CMS_Content_Manager']);
1732
			$options_langs_array = array($lang['CMS_Guest'], $lang['CMS_Reg'], $lang['CMS_VIP'], $lang['CMS_Publisher'], $lang['CMS_Reviewer'],
$lang['CMS_Content_Manager']);
1733
			*/
1734
			$options_array = array(3, 4, 5);
1735
			$options_langs_array = array($lang['CMS_Publisher'], $lang['CMS_Reviewer'], $lang['CMS_Content_Manager']);
1732
			$select_js = '';
1736
			$select_js = '';
1733
			$edit_auth = $class_form->build_select_box($select_name, $default, $options_array, $options_langs_array, $select_js);
1737
			$edit_auth = $class_form->build_select_box($select_name, $default, $options_array, $options_langs_array, $select_js);
1734
1738

Updated ip/tags/release_1_3_0_53/common.php Download diff

162163
132
}
132
}
133
else
133
else
134
{
134
{
135
	set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
135
	@set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
136
	if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on' || !function_exists('ini_get'))
136
	if (@ini_get('register_globals') == '1' || (strtolower(@ini_get('register_globals')) == 'on') || !function_exists('ini_get'))
137
	{
137
	{
138
		deregister_globals();
138
		deregister_globals();
139
	}
139
	}
140
	define('STRIP', (get_magic_quotes_gpc()) ? true : false);
140
	define('STRIP', (get_magic_quotes_gpc()) ? true : false);
141
}
141
}
142
142
143
// Is this safe?
144
//@date_default_timezone_set(@date_default_timezone_get());
145
143
// CrackerTracker v5.x
146
// CrackerTracker v5.x
144
// Uncomment the following define to disable CT GET and POST parsing.
147
// Uncomment the following define to disable CT GET and POST parsing.
145
//define('MG_KILL_CTRACK', true);
148
//define('MG_KILL_CTRACK', true);
...
...
273
	include_once(IP_ROOT_PATH . 'includes/functions_extra.' . PHP_EXT);
276
	include_once(IP_ROOT_PATH . 'includes/functions_extra.' . PHP_EXT);
274
}
277
}
275
include(IP_ROOT_PATH . 'includes/db.' . PHP_EXT);
278
include(IP_ROOT_PATH . 'includes/db.' . PHP_EXT);
276
// We do not need this any longer, unset for safety purposes
279
// We do not need these any longer, unset for safety purpose
277
unset($dbuser);
280
unset($dbuser);
278
unset($dbpasswd);
281
unset($dbpasswd);
279
unset($db->password);
282
unset($db->password);
...
...
374
}
377
}
375
// CMS Pages Config - END
378
// CMS Pages Config - END
376
379
377
// Time Management - BEGIN
378
// PARSE DATEFORMAT TO GET TIME FORMAT
379
$time_reg = '([gh][[:punct:][:space:]]{1,2}[i][[:punct:][:space:]]{0,2}[a]?[[:punct:][:space:]]{0,2}[S]?)';
380
eregi($time_reg, $board_config['default_dateformat'], $regs);
381
$board_config['default_timeformat'] = $regs[1];
382
unset($time_reg);
383
unset($regs);
384
// Time Management - END
385
386
include(IP_ROOT_PATH . ATTACH_MOD_PATH . 'attachment_mod.' . PHP_EXT);
380
include(IP_ROOT_PATH . ATTACH_MOD_PATH . 'attachment_mod.' . PHP_EXT);
387
381
388
//<!-- BEGIN Unread Post Information to Database Mod -->
382
//<!-- BEGIN Unread Post Information to Database Mod -->

Updated ip/tags/release_1_3_0_53/contact_us.php Download diff

162163
22
init_userprefs($userdata);
22
init_userprefs($userdata);
23
// End session management
23
// End session management
24
24
25
include(IP_ROOT_PATH . 'includes/class_form.' . PHP_EXT);
26
$class_form = new class_form();
27
25
$account_delete = false;
28
$account_delete = false;
26
$cms_page_id = 'contact_us';
29
$cms_page_id = 'contact_us';
27
$cms_page_nav = (!empty($cms_config_layouts[$cms_page_id]['page_nav']) ? true : false);
30
$cms_page_nav = (!empty($cms_config_layouts[$cms_page_id]['page_nav']) ? true : false);
...
...
54
$server_url = create_server_url();
57
$server_url = create_server_url();
55
$contact_us_server_url = $server_url . 'contact_us.' . PHP_EXT;
58
$contact_us_server_url = $server_url . 'contact_us.' . PHP_EXT;
56
59
60
// TICKETS - BEGIN
61
if (!$account_delete)
62
{
63
	$sql = "SELECT * FROM " . TICKETS_CAT_TABLE . " ORDER BY ticket_cat_id ASC";
64
	if(!$result = $db->sql_query($sql))
65
	{
66
		message_die(GENERAL_ERROR, "Could not query tickets categories table", $lang['Error'], __LINE__, __FILE__, $sql);
67
	}
68
	$ticket_rows = $db->sql_fetchrowset($result);
69
	$tickets_count = count($ticket_rows);
70
	$db->sql_freeresult($result);
71
72
	if ($tickets_count > 0)
73
	{
74
		$tickets_array = array();
75
		$tickets_lang_array = array();
76
		$template->assign_var('S_TICKETS', true);
77
		for($i = 0; $i < $tickets_count; $i++)
78
		{
79
			$tickets_array[] = $ticket_rows[$i]['ticket_cat_id'];
80
			$tickets_lang_array[] = htmlspecialchars(ip_stripslashes($ticket_rows[$i]['ticket_cat_title']));
81
		}
82
83
		$select_name = 'ticket_cat_id';
84
		$default = '';
85
		$select_js = '';
86
		$select_ticket = $class_form->build_select_box($select_name, $default, $tickets_array, $tickets_lang_array, $select_js);
87
	}
88
}
89
// TICKETS - END
90
57
// CrackerTracker v5.x
91
// CrackerTracker v5.x
58
if (($userdata['ct_last_mail'] >= time()) && ($ctracker_config->settings['massmail_protection'] == 1))
92
if (($userdata['ct_last_mail'] >= time()) && ($ctracker_config->settings['massmail_protection'] == 1))
59
{
93
{
...
...
156
		$error_msg = (!empty($error_msg)) ? $error_msg . '<br />' . $lang['Empty_message_email'] : $lang['Empty_message_email'];
190
		$error_msg = (!empty($error_msg)) ? $error_msg . '<br />' . $lang['Empty_message_email'] : $lang['Empty_message_email'];
157
	}
191
	}
158
192
193
	// TICKETS - BEGIN
194
	$bcc_list = '';
195
	if (!$account_delete)
196
	{
197
		$ticket_cat_id = request_var('ticket_cat_id', '');
198
		if (!empty($ticket_cat_id))
199
		{
200
			$sql = "SELECT * FROM " . TICKETS_CAT_TABLE . " WHERE ticket_cat_id = " . $ticket_cat_id;
201
			if(!$result = $db->sql_query($sql))
202
			{
203
				message_die(GENERAL_ERROR, "Could not query tickets categories table", $lang['Error'], __LINE__, __FILE__, $sql);
204
			}
205
			$ticket_row = $db->sql_fetchrow($result);
206
			$db->sql_freeresult($result);
207
208
			$bcc_emails = explode(';', str_replace(array("\r\n", "\n", "\r", "\t"), array('', '', '', ''),
trim($ticket_row['ticket_cat_emails'])));
209
			if (!empty($bcc_emails))
210
			{
211
				for($i = 0; $i < count($bcc_emails); $i++)
212
				{
213
					$bcc_list .= (($bcc_list != '') ? ', ' : '') . $bcc_emails[$i];
214
				}
215
			}
216
		}
217
	}
218
	// TICKETS - END
219
159
	if (!$error)
220
	if (!$error)
160
	{
221
	{
161
		$mtimetemp = time() + 240;
222
		$mtimetemp = time() + 240;
...
...
186
			$emailer->use_template('empty_email', $user_lang);
247
			$emailer->use_template('empty_email', $user_lang);
187
			$emailer->email_address($board_config['board_email']);
248
			$emailer->email_address($board_config['board_email']);
188
			$emailer->from($sender);
249
			$emailer->from($sender);
250
			$emailer->bcc($bcc_list);
189
			$emailer->replyto($sender);
251
			$emailer->replyto($sender);
190
			$emailer->extra_headers($email_headers);
252
			$emailer->extra_headers($email_headers);
191
			$emailer->set_subject($subject);
253
			$emailer->set_subject($subject);
...
...
328
	'SENDER' => $sender,
390
	'SENDER' => $sender,
329
	'SUBJECT' => $subject,
391
	'SUBJECT' => $subject,
330
	'MESSAGE' => $message,
392
	'MESSAGE' => $message,
393
	'SELECT_TICKET' => (!empty($select_ticket) ? $select_ticket : ''),
331
	'S_POST_ACTION' => append_sid('contact_us.' . PHP_EXT),
394
	'S_POST_ACTION' => append_sid('contact_us.' . PHP_EXT),
332
	'CONFIRM_IMG' => $confirm_image,
395
	'CONFIRM_IMG' => $confirm_image,
333
	'S_HIDDEN_FIELDS' => $s_hidden_fields,
396
	'S_HIDDEN_FIELDS' => $s_hidden_fields,
...
...
349
	'L_CONFIRM_CODE' => $lang['Confirm_code'],
412
	'L_CONFIRM_CODE' => $lang['Confirm_code'],
350
	'L_CONFIRM_CODE_EXPLAIN' => $lang['Confirm_code_explain'],
413
	'L_CONFIRM_CODE_EXPLAIN' => $lang['Confirm_code_explain'],
351
	'L_SPELLCHECK' => $lang['Spellcheck'],
414
	'L_SPELLCHECK' => $lang['Spellcheck'],
352
	'L_SEND_EMAIL' => $lang['Send_email']
415
	'L_SEND_EMAIL' => $lang['Send_Email']
353
	)
416
	)
354
);
417
);
355
418

Updated ip/tags/release_1_3_0_53/ctracker/classes/class_ct_database.php Download diff

162163
463
463
464
		if ($user_id != $userdata['user_id'])
464
		if ($user_id != $userdata['user_id'])
465
		{
465
		{
466
			include_once(IP_ROOT_PATH . 'ctracker/constants.' . PHP_EXT);
466
			$founder_id = (defined('FOUNDER_ID') ? FOUNDER_ID : get_founder_id());
467
467
			if ($user_id == $founder_id)
468
			if ($user_id == CT_FIRST_ADMIN_UID)
469
			{
468
			{
470
				message_die(GENERAL_MESSAGE, $lang['ctracker_gmb_1stadmin']);
469
				message_die(GENERAL_MESSAGE, $lang['ctracker_gmb_1stadmin']);
471
			}
470
			}

Updated ip/tags/release_1_3_0_53/ctracker/engines/ct_footer.php Download diff

162163
91
		case 6: $ctracker_footer_template = sprintf($lang['ctracker_fdisplay_c'], $counter_value_now);
91
		case 6: $ctracker_footer_template = sprintf($lang['ctracker_fdisplay_c'], $counter_value_now);
92
			break;
92
			break;
93
93
94
		case 7: $ctracker_footer_template = 'CrackerTracker &copy; 2004 - ' . date('Y') . ' <a href="http://www.cback.de"
target="_blank">CBACK.de</a>';
94
		case 7: $ctracker_footer_template = 'CrackerTracker &copy; 2004 - ' . @date('Y') . ' <a href="http://www.cback.de" target="_blank">CBACK.de</a>';
95
			break;
95
			break;
96
96
97
		case 8: $ctracker_footer_template = '<a href="http://www.cback.de" target="_blank">' . sprintf($lang['ctracker_fdisplay_g'],
$counter_value_now) . '</a>';
97
		case 8: $ctracker_footer_template = '<a href="http://www.cback.de" target="_blank">' . sprintf($lang['ctracker_fdisplay_g'],
$counter_value_now) . '</a>';
98
			break;
98
			break;
99
99
100
		default: $ctracker_footer_template = $footer_mini . '<br />CrackerTracker &copy; 2004 - ' . date(Y) . ' <a href="http://www.cback.de"
target="_blank">CBACK.de</a>';
100
		default: $ctracker_footer_template = $footer_mini . '<br />CrackerTracker &copy; 2004 - ' . @date(Y) . ' <a href="http://www.cback.de" target="_blank">CBACK.de</a>';
101
			break;
101
			break;
102
	}
102
	}
103
103

Updated ip/tags/release_1_3_0_53/digests.php Download diff

162163
444
	$template->set_filenames(array('digests_post' => 'digests_post.tpl'));
444
	$template->set_filenames(array('digests_post' => 'digests_post.tpl'));
445
445
446
	// Show appropriate confirmation message
446
	// Show appropriate confirmation message
447
	$confim_message = '<br /><br />' . sprintf($lang['digest_click_return'], '<a href="' . append_sid('digests.' . PHP_EXT) . '">',
'</a>');
447
	if ($update_type == 'unsubscribe')
448
	if ($update_type == 'unsubscribe')
448
	{
449
	{
449
		$template->assign_vars(array('CREATE_MODIFY_UNSUBSCRIBE_MSG' => $lang['digest_unsubscribe']));
450
		$confim_message = $lang['digest_unsubscribe'] . $confim_message;
450
	}
451
	}
451
	elseif ($update_type == 'create')
452
	elseif ($update_type == 'create')
452
	{
453
	{
453
		$template->assign_vars(array('CREATE_MODIFY_UNSUBSCRIBE_MSG' => $lang['digest_create']));
454
		$confim_message = $lang['digest_create'] . $confim_message;
454
	}
455
	}
455
	else
456
	else
456
	{
457
	{
457
		$template->assign_vars(array('CREATE_MODIFY_UNSUBSCRIBE_MSG' => $lang['digest_modify']));
458
		$confim_message = $lang['digest_modify'] . $confim_message;
458
	}
459
	}
459
	$template->assign_vars(array(
460
	$template->assign_vars(array(
461
		'CREATE_MODIFY_UNSUBSCRIBE_MSG' => $confim_message,
460
		'U_INDEX' => append_sid(FORUM_MG),
462
		'U_INDEX' => append_sid(FORUM_MG),
461
		'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename'])
463
		'L_INDEX' => sprintf($lang['Forum_Index'], ip_stripslashes($board_config['sitename']))
462
		)
464
		)
463
	);
465
	);
464
466

Updated ip/tags/release_1_3_0_53/docs/readme_english.html Download diff

162163
327
						<li>Check again that your backup is ok and keep it in a safe place. <img src="../images/smiles/icon_mrgreen.gif" alt="Backup
Rules!" title="Backup Rules!" /></li>
327
						<li>Check again that your backup is ok and keep it in a safe place. <img src="../images/smiles/icon_mrgreen.gif" alt="Backup
Rules!" title="Backup Rules!" /></li>
328
						<li>Unpack Icy Phoenix package to one folder on your HD.</li>
328
						<li>Unpack Icy Phoenix package to one folder on your HD.</li>
329
						<li>Upload <b>install</b> folder to the root of your Icy Phoenix and launch <b>database_update.php</b> (i.e.
http://www.mysite.com/ip/install/database_update.php).</li>
329
						<li>Upload <b>install</b> folder to the root of your Icy Phoenix and launch <b>database_update.php</b> (i.e.
http://www.mysite.com/ip/install/database_update.php).</li>
330
						<li>Delete <b>install</b> folder.</li>
331
						<li>Move the following folders:
330
						<li>Move the following folders:
332
							<ul>
331
							<ul>
333
								<li><b>pafiledb/uploads/*.*</b> ==> <b>downloads/*.*</b></li>
332
								<li><b>pafiledb/uploads/*.*</b> ==> <b>downloads/*.*</b></li>
...
...
344
						<li>Remove <b>all files</b> but <b>config.php</b> in your Icy Phoenix root (make sure you don't have some files you may need
for some mods you have installed, but in any case you should have a backup <img src="../images/smiles/icon_mrgreen.gif" alt="Backup
Rules!" title="Backup Rules!" />).</li>
343
						<li>Remove <b>all files</b> but <b>config.php</b> in your Icy Phoenix root (make sure you don't have some files you may need
for some mods you have installed, but in any case you should have a backup <img src="../images/smiles/icon_mrgreen.gif" alt="Backup
Rules!" title="Backup Rules!" />).</li>
345
						<li>Upload all Icy Phoenix files (all but <b>config.php</b>) in the same folder where Icy Phoenix was installed and running. Pay
attention that all older files still there (if any) must be replaced by the new ones.</li>
344
						<li>Upload all Icy Phoenix files (all but <b>config.php</b>) in the same folder where Icy Phoenix was installed and running. Pay
attention that all older files still there (if any) must be replaced by the new ones.</li>
346
						<li>Apply all permissions listed in <a class="post-url" href="#fresh_installation">Fresh
Installation</a>.</li>
345
						<li>Apply all permissions listed in <a class="post-url" href="#fresh_installation">Fresh
Installation</a>.</li>
347
						<li>Customize what needs to be customized in files and db (some files needs to be edited manually, while most of the options may be set in ACP and CMS).</li>
346
						<li>Customize what needs to be customized in files and db (some files needs to be edited manually, while most of the options may be set in ACP and CMS). Here is a short list of some files you may want to edit manually:
347
							<ul>
348
								<li><b>common.php</b></li>
349
								<li><b>config.php</b></li>
350
								<li><b>includes/constants.php</b></li>
351
								<li><b>language/lang_***/lang_main_settings.php</b></li>
352
							</ul>
353
						</li>
354
						<li>Run <b>install/install.php</b> and complete the update by renaming and moving images (both posted and in album) and replacing all old links in posts: the automated procedure should be able to perform all these actions automatically, just follow the instructions.</li>
355
						<li>Delete <b>install</b> folder.</li>
348
						<li>Unlock your site.</li>
356
						<li>Unlock your site.</li>
349
						<li>Enjoy your New <b>Icy Phoenix</b> Site <img src="../images/smiles/icon_mrgreen.gif" alt="Enjoy!"
title="Enjoy!" />.</li>
357
						<li>Enjoy your New <b>Icy Phoenix</b> Site <img src="../images/smiles/icon_mrgreen.gif" alt="Enjoy!"
title="Enjoy!" />.</li>
350
					</ol>
358
					</ol>

Updated ip/tags/release_1_3_0_53/downloads.php Download diff

162163
159
}
159
}
160
160
161
/*
161
/*
162
* redirect to details or rating íf needed
162
* redirect to details or rating íf needed
163
*/
163
*/
164
if ($cat && $df_id && (($view == 'detail') && ($action != 'rate')))
164
if ($cat && $df_id && (($view == 'detail') && ($action != 'rate')))
165
{
165
{
...
...
496
			$emailer->set_subject();
496
			$emailer->set_subject();
497
497
498
			$emailer->assign_vars(array(
498
			$emailer->assign_vars(array(
499
				'BOARD_EMAIL' => $board_config['board_email_sig'],
499
				'BOARD_EMAIL' => ip_stripslashes($board_config['board_email_sig']),
500
				'SITENAME' => $board_config['sitename'],
500
				'SITENAME' => ip_stripslashes($board_config['sitename']),
501
				'REPORTER' => $username,
501
				'REPORTER' => $username,
502
				'USERNAME' => $row['username'],
502
				'USERNAME' => $row['username'],
503
				'U_DOWNLOAD' => $server_url . 'downloads.' . PHP_EXT . '?view=detail&cat_id=' . $cat_id . '&df_id=' . $df_id
503
				'U_DOWNLOAD' => $server_url . 'downloads.' . PHP_EXT . '?view=detail&cat_id=' . $cat_id . '&df_id=' . $df_id

Updated ip/tags/release_1_3_0_53/errors.php Download diff

162163
96
$server_url = create_server_url();
96
$server_url = create_server_url();
97
97
98
$notification_email = $board_config['board_email'];
98
$notification_email = $board_config['board_email'];
99
$sitename = $board_config['sitename'];
99
$sitename = ip_stripslashes($board_config['sitename']);
100
$datecode = date('Ymd');
100
$datecode = gmdate('Ymd');
101
$logs_path = !empty($board_config['logs_path']) ? $board_config['logs_path'] : 'logs';
101
$logs_path = !empty($board_config['logs_path']) ? $board_config['logs_path'] : 'logs';
102
$errors_log = $logs_path . '/errors_' . $datecode . '.txt';
102
$errors_log = $logs_path . '/errors_' . $datecode . '.txt';
103
//$errors_log = 'logs/errors.txt';
103
//$errors_log = 'logs/errors.txt';
...
...
147
	$script_name = (!empty($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : getenv('REQUEST_URI');
147
	$script_name = (!empty($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : getenv('REQUEST_URI');
148
	$server_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : getenv('SERVER_NAME');
148
	$server_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : getenv('SERVER_NAME');
149
149
150
	$date = date('Y/m/d - H:i:s');
150
	$date = gmdate('Y/m/d - H:i:s');
151
151
152
	if ( ($action == 'L') || ($action == 'LM') )
152
	if ( ($action == 'L') || ($action == 'LM') )
153
	{
153
	{

Updated ip/tags/release_1_3_0_53/fetchposts.php Download diff

162163
88
88
89
			if($message_compiled === false)
89
			if($message_compiled === false)
90
			{
90
			{
91
				$bbcode->allow_smilies = $board_config['allow_smilies'] && $posts[$i]['enable_smilies'] ? true : false;
91
				$bbcode->allow_smilies = ($board_config['allow_smilies'] && $posts[$i]['enable_smilies']) ? true : false;
92
				$posts[$i]['post_text'] = $bbcode->parse($posts[$i]['post_text'], '', false, $clean_tags);
92
				$posts[$i]['post_text'] = $bbcode->parse($posts[$i]['post_text'], '', false, $clean_tags);
93
			}
93
			}
94
			else
94
			else
...
...
247
247
248
			if($message_compiled === false)
248
			if($message_compiled === false)
249
			{
249
			{
250
				$bbcode->allow_smilies = $board_config['allow_smilies'] && $posts[$i]['enable_smilies'] ? true : false;
250
				$bbcode->allow_smilies = ($board_config['allow_smilies'] && $posts[$i]['enable_smilies']) ? true : false;
251
				$posts[$i]['post_text'] = $bbcode->parse($posts[$i]['post_text'], '', false, $clean_tags);
251
				$posts[$i]['post_text'] = $bbcode->parse($posts[$i]['post_text'], '', false, $clean_tags);
252
			}
252
			}
253
			else
253
			else

Updated ip/tags/release_1_3_0_53/forum.php Download diff

162163
213
	if (@is_file($cache_data_file))
213
	if (@is_file($cache_data_file))
214
	{
214
	{
215
		$cache_file_time = @filemtime($cache_data_file);
215
		$cache_file_time = @filemtime($cache_data_file);
216
		if (((date('YzH', time()) - date('YzH', $cache_file_time)) < 1) && ((date('Y', time()) == date('Y', $cache_file_time))))
216
		if (((@date('YzH', time()) - @date('YzH', $cache_file_time)) < 1) && ((@date('Y', time()) == @date('Y', $cache_file_time))))
217
		{
217
		{
218
			$cache_update = false;
218
			$cache_update = false;
219
		}
219
		}
...
...
234
234
235
		$time_now = time();
235
		$time_now = time();
236
		$time1Hour = $time_now - 3600;
236
		$time1Hour = $time_now - 3600;
237
		$minutes = date('is', $time_now);
237
		$minutes = @date('is', $time_now);
238
		$hour_now = $time_now - (60 * ($minutes[0] . $minutes[1])) - ($minutes[2] . $minutes[3]);
238
		$hour_now = $time_now - (60 * ($minutes[0] . $minutes[1])) - ($minutes[2] . $minutes[3]);
239
		$dato = create_date('H', $time_now, $board_config['board_timezone']);
239
		$dato = create_date('H', $time_now, $board_config['board_timezone']);
240
		$timetoday = $hour_now - (3600 * $dato);
240
		$timetoday = $hour_now - (3600 * $dato);

Updated ip/tags/release_1_3_0_53/groupcp.php Download diff

162163
239
		$emailer->set_subject($lang['Group_request']);
239
		$emailer->set_subject($lang['Group_request']);
240
240
241
		$emailer->assign_vars(array(
241
		$emailer->assign_vars(array(
242
			'SITENAME' => $board_config['sitename'],
242
			'SITENAME' => ip_stripslashes($board_config['sitename']),
243
			'GROUP_MODERATOR' => $moderator['username'],
243
			'GROUP_MODERATOR' => $moderator['username'],
244
			'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
244
			'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . ip_stripslashes($board_config['board_email_sig'])) : '',
245
			'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . '=' . $group_id . '&validate=true'
245
			'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . '=' . $group_id . '&validate=true'
246
			)
246
			)
247
		);
247
		);
...
...
528
					$emailer->set_subject($lang['Group_added']);
528
					$emailer->set_subject($lang['Group_added']);
529
529
530
					$emailer->assign_vars(array(
530
					$emailer->assign_vars(array(
531
						'SITENAME' => $board_config['sitename'],
531
						'SITENAME' => ip_stripslashes($board_config['sitename']),
532
						'GROUP_NAME' => $group_name,
532
						'GROUP_NAME' => $group_name,
533
						'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
533
						'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . ip_stripslashes($board_config['board_email_sig'])) : '',
534
534
535
						'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . '=' . $group_id
535
						'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . '=' . $group_id
536
						)
536
						)
...
...
751
						$emailer->set_subject($lang['Group_approved']);
751
						$emailer->set_subject($lang['Group_approved']);
752
752
753
						$emailer->assign_vars(array(
753
						$emailer->assign_vars(array(
754
							'SITENAME' => $board_config['sitename'],
754
							'SITENAME' => ip_stripslashes($board_config['sitename']),
755
							'GROUP_NAME' => $group_name,
755
							'GROUP_NAME' => $group_name,
756
							'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
756
							'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . ip_stripslashes($board_config['board_email_sig'])) : '',
757
757
758
							'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . '=' . $group_id)
758
							'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . '=' . $group_id)
759
						);
759
						);

Updated ip/tags/release_1_3_0_53/includes/album_mod/album_functions.php Download diff

162163
986
				$emailer->msg = preg_replace('#[ ]?{USERNAME}#', '', $emailer->msg);
986
				$emailer->msg = preg_replace('#[ ]?{USERNAME}#', '', $emailer->msg);
987
987
988
				$emailer->assign_vars(array(
988
				$emailer->assign_vars(array(
989
					'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
989
					'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . ip_stripslashes($board_config['board_email_sig'])) : '',
990
					'SITENAME' => $board_config['sitename'],
990
					'SITENAME' => ip_stripslashes($board_config['sitename']),
991
					'PIC_TITLE' => $pic_title,
991
					'PIC_TITLE' => $pic_title,
992
					'U_PIC' => $server_protocol . $server_name . $server_port . $script_name . '?pic_id=' . $pic_id,
992
					'U_PIC' => $server_protocol . $server_name . $server_port . $script_name . '?pic_id=' . $pic_id,
993
					'U_STOP_WATCHING_COMMENT' => $server_protocol . $server_name . $server_port . $script_name . '?pic_id=' . $pic_id . '&unwatch=comment'
993
					'U_STOP_WATCHING_COMMENT' => $server_protocol . $server_name . $server_port . $script_name . '?pic_id=' . $pic_id . '&unwatch=comment'

Updated ip/tags/release_1_3_0_53/includes/bbcode.php Download diff

162163
932
			$html = '';
932
			$html = '';
933
			$params['id'] = isset($item['params']['param']) ? intval($item['params']['param']) : (isset($item['params']['id']) ? intval($item['params']['id']) : false);
933
			$params['id'] = isset($item['params']['param']) ? intval($item['params']['param']) : (isset($item['params']['id']) ? intval($item['params']['id']) : false);
934
			$params['title'] = isset($item['params']['title']) ? $this->process_text($item['params']['title']) : false;
934
			$params['title'] = isset($item['params']['title']) ? $this->process_text($item['params']['title']) : false;
935
			$params['description'] = isset($item['params']['description']) ? $this->process_text($item['params']['description']) : false;
935
			$params['description'] = isset($item['params']['description']) ? $this->process_text($item['params']['description']) : (!empty($content) ? $this->process_text($content) : false);
936
			$params['icon'] = isset($item['params']['icon']) ? $this->process_text($item['params']['icon']) : false;
936
			$params['icon'] = isset($item['params']['icon']) ? $this->process_text($item['params']['icon']) : false;
937
			$color = $this->valid_color(isset($item['params']['color']) ? $item['params']['color'] : false);
937
			$color = $this->valid_color(isset($item['params']['color']) ? $item['params']['color'] : false);
938
			$bgcolor = $this->valid_color(isset($item['params']['bgcolor']) ? $item['params']['bgcolor'] : false);
938
			$bgcolor = $this->valid_color(isset($item['params']['bgcolor']) ? $item['params']['bgcolor'] : false);
...
...
967
				if ($tag === 'attachment')
967
				if ($tag === 'attachment')
968
				{
968
				{
969
					$params['title'] = $params['title'] ? $params['title'] : (!empty($attachment_details['real_filename']) ? $attachment_details['real_filename'] :
'&nbsp;');
969
					$params['title'] = $params['title'] ? $params['title'] : (!empty($attachment_details['real_filename']) ? $attachment_details['real_filename'] :
'&nbsp;');
970
					$params['description'] = $params['description'] ? $params['description'] : (!empty($attachment_details['comment']) ? $attachment_details['comment'] : '&nbsp;');
970
					$params['description'] = $params['description'] ? $params['description'] : (!empty($attachment_details['comment']) ? $attachment_details['comment'] : ' ');
971
					$params['icon'] = IP_ROOT_PATH . FILES_ICONS_DIR . ($params['icon'] ? $params['icon'] : 'default.png');
971
					$params['icon'] = IP_ROOT_PATH . FILES_ICONS_DIR . ($params['icon'] ? $params['icon'] : 'default.png');
972
					$download_url = IP_ROOT_PATH . 'download.' . PHP_EXT . '?id=' . $params['id'];
972
					$download_url = IP_ROOT_PATH . 'download.' . PHP_EXT . '?id=' . $params['id'];
973
				}
973
				}
974
				else
974
				else
975
				{
975
				{
976
					$params['title'] = $params['title'] ? $params['title'] : (!empty($attachment_details['file_name']) ? $attachment_details['file_name'] : '&nbsp;');
976
					$params['title'] = $params['title'] ? $params['title'] : (!empty($attachment_details['file_name']) ? $attachment_details['file_name'] : '&nbsp;');
977
					$params['description'] = $params['description'] ? $params['description'] : (!empty($attachment_details['file_desc']) ? $attachment_details['file_desc'] : '&nbsp;');
977
					$params['description'] = $params['description'] ? $params['description'] : (!empty($attachment_details['file_desc']) ? $attachment_details['file_desc'] : ' ');
978
					$params['icon'] = IP_ROOT_PATH . FILES_ICONS_DIR . ($params['icon'] ? $params['icon'] : (!empty($attachment_details['file_posticon']) ?
$attachment_details['file_posticon'] : 'default.png'));
978
					$params['icon'] = IP_ROOT_PATH . FILES_ICONS_DIR . ($params['icon'] ? $params['icon'] : (!empty($attachment_details['file_posticon']) ?
$attachment_details['file_posticon'] : 'default.png'));
979
					$attachment_details['filesize'] = $attachment_details['file_size'];
979
					$attachment_details['filesize'] = $attachment_details['file_size'];
980
					$attachment_details['download_count'] = $attachment_details['file_dls'];
980
					$attachment_details['download_count'] = $attachment_details['file_dls'];
...
...
1278
				}
1278
				}
1279
			}
1279
			}
1280
			// generate html
1280
			// generate html
1281
			$html = '<a' . ($this->allow_styling && isset($item['params']['class']) ? '' : ' class="post-url"') . ' href="' . htmlspecialchars($url) . '"' . ($url_local ? '' : ' target="_blank"') . $this->add_extras($item['params'], $extras) . '>';
1281
			$html = '<a' . ($this->allow_styling && isset($item['params']['class']) ? '' : ' class="post-url"') . ' href="' . htmlspecialchars($url) . '"' . ($url_local ? '' : (' target="_blank"' . (!empty($item['params']['nofollow']) ? ' rel="nofollow"' : ''))) . $this->add_extras($item['params'], $extras) . '>';
1282
1282
1283
			if (($board_config['disable_html_guests'] == 1) && (!$userdata['session_logged_in']))
1283
			if ($board_config['disable_html_guests'] && !$userdata['session_logged_in'])
1284
			{
1284
			{
1285
				return array(
1285
				return array(
1286
					'valid' => true,
1286
					'valid' => true,
...
...
2718
		// get parameters
2718
		// get parameters
2719
		$pos_eq = strpos($tag, '=');
2719
		$pos_eq = strpos($tag, '=');
2720
		$pos_space = strpos($tag, ' ');
2720
		$pos_space = strpos($tag, ' ');
2721
		if($pos_space !== false && $pos_eq !== false && $pos_space < $pos_eq)
2721
		if(($pos_space !== false) && ($pos_eq !== false) && ($pos_space < $pos_eq))
2722
		{
2722
		{
2723
			// mutiple parameters
2723
			// mutiple parameters
2724
			$param_start = 0;
2724
			$param_start = 0;
...
...
2897
				}
2897
				}
2898
				else
2898
				else
2899
				{
2899
				{
2900
					if(strpos($tag, ' autourl=' . AUTOURL))
2900
					if(strpos($tag, ' autourl=' . AUTOURL . ' nofollow=1'))
2901
					{
2901
					{
2902
						$tag = str_replace(' autourl=' . AUTOURL, '', $tag);
2902
						$tag = str_replace(' autourl=' . AUTOURL . ' nofollow=1', '', $tag);
2903
					}
2903
					}
2904
					$tag = strtolower($tag);
2904
					$tag = strtolower($tag);
2905
					if(!$this->valid_tag($tag, $is_html))
2905
					if(!$this->valid_tag($tag, $is_html))
...
...
3061
	function process_text($text, $br = true, $chars = true)
3061
	function process_text($text, $br = true, $chars = true)
3062
	{
3062
	{
3063
		$search = array(
3063
		$search = array(
3064
			'[url autourl=' . AUTOURL . ']',
3064
			'[url autourl=' . AUTOURL . ' nofollow=1]',
3065
			'[/url autourl=' . AUTOURL  .']',
3065
			'[/url autourl=' . AUTOURL .' nofollow=1]',
3066
			'[email autourl=' . AUTOURL . ']',
3066
			'[email autourl=' . AUTOURL . ' nofollow=1]',
3067
			'[/email autourl=' . AUTOURL .']'
3067
			'[/email autourl=' . AUTOURL . ' nofollow=1]'
3068
		);
3068
		);
3069
		$replace = array('', '', '', '');
3069
		$replace = array('', '', '', '');
3070
		$text = str_replace($search, $replace, $text);
3070
		$text = str_replace($search, $replace, $text);
...
...
3264
			"/([\s>])([_a-zA-Z0-9\-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9\-{$chars}]+(\.[a-zA-Z0-9\-{$chars}]+)*(\.[a-zA-Z]{2,}))/si",
3264
			"/([\s>])([_a-zA-Z0-9\-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9\-{$chars}]+(\.[a-zA-Z0-9\-{$chars}]+)*(\.[a-zA-Z]{2,}))/si",
3265
		);
3265
		);
3266
		$replace = array(
3266
		$replace = array(
3267
			"\\1[url autourl=" . AUTOURL . "]\\2\\4[/url autourl=" . AUTOURL . "]",
3267
			"\\1[url autourl=" . AUTOURL . " nofollow=1]\\2\\4[/url autourl=" . AUTOURL . " nofollow=1]",
3268
			"\\1[email autourl=" . AUTOURL . "]\\2[/email autourl=" . AUTOURL . "]",
3268
			"\\1[email autourl=" . AUTOURL . " nofollow=1]\\2[/email autourl=" . AUTOURL . " nofollow=1]",
3269
		);
3269
		);
3270
		$this->text = preg_replace($search, $replace, ' ' . $this->text . ' ');
3270
		$this->text = preg_replace($search, $replace, ' ' . $this->text . ' ');
3271
		$this->text = substr($this->text, 1, strlen($this->text) - 2);
3271
		$this->text = substr($this->text, 1, strlen($this->text) - 2);
...
...
3319
		$this->data = array();
3319
		$this->data = array();
3320
		$this->html = '';
3320
		$this->html = '';
3321
		$this->prepare_smilies();
3321
		$this->prepare_smilies();
3322
		if ($light == false)
3322
		if (!$light)
3323
		{
3323
		{
3324
			$this->process_urls();
3324
			$this->process_urls();
3325
		}
3325
		}
...
...
3618
		return $text;
3618
		return $text;
3619
	}
3619
	}
3620
3620
3621
	function plain_message($text, $id)
3621
	function plain_message($text, $id = false)
3622
	{
3622
	{
3623
		// This function will strip from a message some BBCodes,
3623
		// This function will strip from a message some BBCodes,
3624
		// all BBCodes $uid, and some other formattings.
3624
		// all BBCodes $uid, and some other formattings.

Updated ip/tags/release_1_3_0_53/includes/class_form.php Download diff

162163
214
			}
214
			}
215
215
216
			// We want to force each value the user isn't allowed to add/edit to the default value
216
			// We want to force each value the user isn't allowed to add/edit to the default value
217
			if (($k != $item_id) && ((($action == 'add') && !check_auth_level($v['input_level'])) || (($action == 'edit') &&
!check_auth_level($v['edit_level']))))
217
			if (($k != $item_id) && ((($action == 'add') && !check_auth_level($v['input_level'])) || (($v['type'] != 'HIDDEN') && ($action == 'edit') && !check_auth_level($v['edit_level']))))
218
			{
218
			{
219
				$inputs_array[$k] = $v['default'];
219
				$inputs_array[$k] = $v['default'];
220
			}
220
			}

Updated ip/tags/release_1_3_0_53/includes/class_pm.php Download diff

162163
108
		{
108
		{
109
			$emailer->use_template('admin_send_email', $recipient_lang);
109
			$emailer->use_template('admin_send_email', $recipient_lang);
110
			$emailer->assign_vars(array(
110
			$emailer->assign_vars(array(
111
				'SITENAME' => $board_config['sitename'],
111
				'SITENAME' => ip_stripslashes($board_config['sitename']),
112
				'BOARD_EMAIL' => $board_config['board_email'],
112
				'BOARD_EMAIL' => $board_config['board_email'],
113
				'MESSAGE' => $email_text
113
				'MESSAGE' => $email_text
114
				)
114
				)
...
...
126
			$emailer->use_template('privmsg_notify', $recipient_lang);
126
			$emailer->use_template('privmsg_notify', $recipient_lang);
127
			$emailer->assign_vars(array(
127
			$emailer->assign_vars(array(
128
				'USERNAME' => $recipient_username,
128
				'USERNAME' => $recipient_username,
129
				'SITENAME' => $board_config['sitename'],
129
				'SITENAME' => ip_stripslashes($board_config['sitename']),
130
				'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
130
				'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . ip_stripslashes($board_config['board_email_sig'])) : '',
131
				'FROM' => $userdata['username'],
131
				'FROM' => $userdata['username'],
132
				'DATE' => create_date($board_config['default_dateformat'], time(), $board_config['board_timezone']),
132
				'DATE' => create_date($board_config['default_dateformat'], time(), $board_config['board_timezone']),
133
				'SUBJECT' => $pm_subject,
133
				'SUBJECT' => $pm_subject,

Updated ip/tags/release_1_3_0_53/includes/constants.php Download diff

162163
432
define('SUDOKU_USERS', $table_prefix . 'sudoku_users');
432
define('SUDOKU_USERS', $table_prefix . 'sudoku_users');
433
define('THANKS_TABLE', $table_prefix . 'thanks');
433
define('THANKS_TABLE', $table_prefix . 'thanks');
434
define('THEMES_TABLE', $table_prefix . 'themes');
434
define('THEMES_TABLE', $table_prefix . 'themes');
435
define('TICKETS_CAT_TABLE', $table_prefix . 'tickets_cat');
435
define('TITLE_INFOS_TABLE', $table_prefix . 'title_infos');
436
define('TITLE_INFOS_TABLE', $table_prefix . 'title_infos');
436
define('TOPIC_VIEW_TABLE', $table_prefix . 'topic_view');
437
define('TOPIC_VIEW_TABLE', $table_prefix . 'topic_view');
437
define('TOPICS_TABLE', $table_prefix . 'topics');
438
define('TOPICS_TABLE', $table_prefix . 'topics');

Updated ip/tags/release_1_3_0_53/includes/db/mysql.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/digest_emailer.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/downloads/admin/dl_admin_files.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/downloads/includes/dl_bug_tracker.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/downloads/includes/dl_comments.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/downloads/includes/dl_modcp.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/downloads/includes/dl_upload.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/emailer.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/functions.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/functions_calendar.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/functions_cash.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/functions_categories_hierarchy.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/functions_cms.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/functions_cms_menu.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/functions_cron.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/functions_dbmtnc.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/functions_kb.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/functions_mg_http.php Download diff

File was changed - ok, show the diff

Added ip/tags/release_1_3_0_53/includes/functions_phpbb3_to_ip.php

Show contents

Updated ip/tags/release_1_3_0_53/includes/functions_post.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/functions_selects.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/meta_parsing.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/mini_cal/calendarSuite.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/mini_cal/mini_cal.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/mini_cal/mini_cal_common.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/mini_cal/mini_cal_SNAILLITE.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/new_page_common.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/news.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/news_data.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/pafiledb/modules/pa_download.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/pafiledb/modules/pa_email.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/pafiledb/modules/pa_file.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/pafiledb/modules/pa_license.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/pafiledb/modules/pa_post_comment.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/pafiledb/modules/pa_rate.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/pafiledb/modules/pa_search.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/pafiledb/modules/pa_stats.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/pafiledb/modules/pa_toplist.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/page_header.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/page_tail.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/pclzip.lib.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/prune.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/stats_modules/forum_index_module.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/topic_review.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/usercp_activate.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/usercp_email.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/usercp_register.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/usercp_resend.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/usercp_sendpasswd.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/includes/users_delete_inc.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/index.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/install/clean_tables_ip.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/install/common.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/install/includes/functions_install.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/install/schemas/db_update_000.sql Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/install/schemas/mysql_basic.sql Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/install/schemas/mysql_schema.sql Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/install/schemas/sql_update_ip.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/install/schemas/versions.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/language/lang_english/lang_admin.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/language/lang_english/lang_dbmtnc.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/language/lang_english/lang_digests.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/language/lang_english/lang_faq.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/language/lang_english/lang_features.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/language/lang_english/lang_ftr.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/language/lang_english/lang_main.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/language/lang_english/lang_main_mini_cal.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/language/lang_english/lang_main_settings.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/link_register.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/links.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/links_popup.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/mail_digests.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/posted_img_thumbnail.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/posting.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/printview.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/privmsg.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/profile_options.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/rss.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/show_post.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/sitemap.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/tellafriend.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/common/acp/admin_voting_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/common/acp/megamail.tpl Download diff

File was changed - ok, show the diff

Added ip/tags/release_1_3_0_53/templates/common/acp/tickets_edit_body.tpl

Show contents

Added ip/tags/release_1_3_0_53/templates/common/acp/tickets_list_body.tpl

Show contents

Updated ip/tags/release_1_3_0_53/templates/common/cms/cms_ads_add_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/common/cms/cms_adv_block_edit_text_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/common/cms/cms_adv_menu_item_edit_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/common/cms/cms_adv_menu_menu_edit_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/common/cms/cms_block_edit_text_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/common/cms/cms_menu_item_edit_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/common/cms/cms_menu_menu_edit_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/common/common.css Download diff

File was changed - ok, show the diff

Added ip/tags/release_1_3_0_53/templates/common/highslide/graphics/index.html

Show contents

Added ip/tags/release_1_3_0_53/templates/common/highslide/graphics/outlines/index.html

Show contents

Added ip/tags/release_1_3_0_53/templates/common/highslide/index.html

Show contents

Updated ip/tags/release_1_3_0_53/templates/common/js/bbcb_mg.js Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/common/js/bbcode.js Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/common/js/ip_scripts.js Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/default/contact_us_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/default/digests.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/default/digests_post.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/default/kb_article_body_print.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/default/mini_cal_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/default/overall_inc_header_js.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/default/pa_file_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/default/posting_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/default/posting_topic_review.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/default/privmsgs_read_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/default/shoutbox_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/templates/default/viewtopic_body.tpl Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/viewforum.php Download diff

File was changed - ok, show the diff

Updated ip/tags/release_1_3_0_53/viewtopic.php Download diff

File was changed - ok, show the diff