append_sid('xs_config.'.$get_data),
- 'install' => append_sid('xs_install.'.$get_data),
- 'uninstall' => append_sid('xs_uninstall.'.$get_data),
- 'default' => append_sid('xs_styles.'.$get_data),
- 'cache' => append_sid('xs_cache.'.$get_data),
- 'import' => append_sid('xs_import.'.$get_data),
- 'export' => append_sid('xs_export.'.$get_data),
- 'clone' => append_sid('xs_clone.'.$get_data),
- 'download' => append_sid('xs_download.'.$get_data),
- 'edittpl' => append_sid('xs_edit.'.$get_data),
- 'editdb' => append_sid('xs_edit_data.'.$get_data),
- 'exportdb' => append_sid('xs_export_data.'.$get_data),
- 'updates' => append_sid('xs_update.'.$get_data),
- 'portal' => append_sid('xs_portal.'.$get_data),
- 'style_config' => append_sid('xs_style_config.'.$get_data),
+ 'config' => 'xs_config.'.$get_data,
+ 'install' => 'xs_install.'.$get_data,
+ 'uninstall' => 'xs_uninstall.'.$get_data,
+ 'default' => 'xs_styles.'.$get_data,
+ 'cache' => 'xs_cache.'.$get_data,
+ 'import' => 'xs_import.'.$get_data,
+ 'export' => 'xs_export.'.$get_data,
+ 'clone' => 'xs_clone.'.$get_data,
+ 'download' => 'xs_download.'.$get_data,
+ 'edittpl' => 'xs_edit.'.$get_data,
+ 'editdb' => 'xs_edit_data.'.$get_data,
+ 'exportdb' => 'xs_export_data.'.$get_data,
+ 'updates' => 'xs_update.'.$get_data,
+ 'portal' => 'xs_portal.'.$get_data,
+ 'style_config' => 'xs_style_config.'.$get_data,
);
if(isset($content_url[$action]))
@@ -59,12 +59,12 @@ if(isset($content_url[$action]))
}
else
{
- $content = append_sid('xs_index.'.$get_data);
+ $content = 'xs_index.'.$get_data;
}
$template->set_filenames(array('body' => XS_TPL_PATH . 'frameset.tpl'));
$template->assign_vars(array(
- 'FRAME_TOP' => append_sid('xs_frame_top.php'),
+ 'FRAME_TOP' => 'xs_frame_top.php',
'FRAME_MAIN' => $content,
));
diff --git a/upload/admin/xs_include.php b/upload/admin/xs_include.php
index 0ac43aac0..28b6bac3b 100644
--- a/upload/admin/xs_include.php
+++ b/upload/admin/xs_include.php
@@ -151,7 +151,7 @@ if(!defined('NO_XS_HEADER'))
$template->preparse = 'xs_header';
$template->postparse = 'xs_footer';
- $template->assign_block_vars('nav_left',array('ITEM' => '' . $lang['XS_MENU'] . ''));
+ $template->assign_block_vars('nav_left',array('ITEM' => '' . $lang['XS_MENU'] . ''));
}
// check if cache is writable
diff --git a/upload/admin/xs_index.php b/upload/admin/xs_index.php
index c29ca93b5..943f66683 100644
--- a/upload/admin/xs_index.php
+++ b/upload/admin/xs_index.php
@@ -13,24 +13,24 @@ include('xs_include.php');
if(isset($_GET['showwarning']))
{
- $msg = str_replace('{URL}', append_sid('xs_index.php'), $lang['XS_MAIN_COMMENT3']);
+ $msg = str_replace('{URL}', 'xs_index.php', $lang['XS_MAIN_COMMENT3']);
xs_message($lang['INFORMATION'], $msg);
}
$template->assign_vars(array(
- 'U_CONFIG' => append_sid('xs_config.php'),
- 'U_DEFAULT_STYLE' => append_sid('xs_styles.php'),
- 'U_MANAGE_CACHE' => append_sid('xs_cache.php'),
- 'U_IMPORT_STYLES' => append_sid('xs_import.php'),
- 'U_EXPORT_STYLES' => append_sid('xs_export.php'),
- 'U_CLONE_STYLE' => append_sid('xs_clone.php'),
- 'U_DOWNLOAD_STYLES' => append_sid('xs_download.php'),
- 'U_INSTALL_STYLES' => append_sid('xs_install.php'),
- 'U_UNINSTALL_STYLES' => append_sid('xs_uninstall.php'),
- 'U_EDIT_STYLES' => append_sid('xs_edit.php'),
- 'U_EDIT_STYLES_DATA' => append_sid('xs_edit_data.php'),
- 'U_EXPORT_DATA' => append_sid('xs_export_data.php'),
- 'U_UPDATES' => append_sid('xs_update.php'),
+ 'U_CONFIG' => 'xs_config.php',
+ 'U_DEFAULT_STYLE' => 'xs_styles.php',
+ 'U_MANAGE_CACHE' => 'xs_cache.php',
+ 'U_IMPORT_STYLES' => 'xs_import.php',
+ 'U_EXPORT_STYLES' => 'xs_export.php',
+ 'U_CLONE_STYLE' => 'xs_clone.php',
+ 'U_DOWNLOAD_STYLES' => 'xs_download.php',
+ 'U_INSTALL_STYLES' => 'xs_install.php',
+ 'U_UNINSTALL_STYLES' => 'xs_uninstall.php',
+ 'U_EDIT_STYLES' => 'xs_edit.php',
+ 'U_EDIT_STYLES_DATA' => 'xs_edit_data.php',
+ 'U_EXPORT_DATA' => 'xs_export_data.php',
+ 'U_UPDATES' => 'xs_update.php',
));
$template->set_filenames(array('body' => XS_TPL_PATH . 'index.tpl'));
diff --git a/upload/attach_mod/displaying.php b/upload/attach_mod/displaying.php
index 15746500a..6be4ebb17 100644
--- a/upload/attach_mod/displaying.php
+++ b/upload/attach_mod/displaying.php
@@ -292,13 +292,13 @@ function display_attachments($post_id)
// Images
// NOTE: If you want to use the download.php everytime an image is displayed inlined, replace the
// Section between BEGIN and END with (Without the // of course):
- // $img_source = append_sid(BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id']);
+ // $img_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'];
// $download_link = TRUE;
//
//
if (intval($attach_config['allow_ftp_upload']) && trim($attach_config['download_path']) == '')
{
- $img_source = append_sid(BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id']);
+ $img_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'];
$download_link = TRUE;
}
else
@@ -306,7 +306,7 @@ function display_attachments($post_id)
// Check if we can reach the file or if it is stored outside of the webroot
if ($attach_config['upload_dir'][0] == '/' || ( $attach_config['upload_dir'][0] != '/' && $attach_config['upload_dir'][1] == ':'))
{
- $img_source = append_sid(BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id']);
+ $img_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'];
$download_link = TRUE;
}
else
@@ -346,18 +346,18 @@ function display_attachments($post_id)
// Images, but display Thumbnail
// NOTE: If you want to use the download.php everytime an thumnmail is displayed inlined, replace the
// Section between BEGIN and END with (Without the // of course):
- // $thumb_source = append_sid(BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1');
+ // $thumb_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1';
//
if (intval($attach_config['allow_ftp_upload']) && trim($attach_config['download_path']) == '')
{
- $thumb_source = append_sid(BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1');
+ $thumb_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1';
}
else
{
// Check if we can reach the file or if it is stored outside of the webroot
if ($attach_config['upload_dir'][0] == '/' || ( $attach_config['upload_dir'][0] != '/' && $attach_config['upload_dir'][1] == ':'))
{
- $thumb_source = append_sid(BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1');
+ $thumb_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1';
}
else
{
@@ -371,7 +371,7 @@ function display_attachments($post_id)
'DOWNLOAD_NAME' => $display_name,
'S_UPLOAD_IMAGE' => $upload_image,
- 'IMG_SRC' => append_sid(BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id']),
+ 'IMG_SRC' => BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'],
'IMG_THUMB_SRC' => $thumb_source,
'FILESIZE' => $filesize,
'COMMENT' => $comment,
@@ -442,7 +442,7 @@ function display_attachments($post_id)
// display attachment
$template->assign_block_vars('postrow.attach.attachrow', array(
- 'U_DOWNLOAD_LINK' => append_sid(BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id']),
+ 'U_DOWNLOAD_LINK' => BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id'],
'S_UPLOAD_IMAGE' => $upload_image,
'DOWNLOAD_NAME' => $display_name,
diff --git a/upload/attach_mod/displaying_torrent.php b/upload/attach_mod/displaying_torrent.php
index 23de2bc63..ace177670 100644
--- a/upload/attach_mod/displaying_torrent.php
+++ b/upload/attach_mod/displaying_torrent.php
@@ -75,7 +75,7 @@ $tor_auth_del = ($tor_auth && $tor_reged);
$tracker_link = ($tor_reged) ? $lang['BT_REG_YES'] : $lang['BT_REG_NO'];
-$download_link = append_sid("download.php?id=$attach_id");
+$download_link = "download.php?id=$attach_id";
$description = ($comment) ? $comment : preg_replace("#.torrent$#i", '', $display_name);
if ($tor_auth_reg || $tor_auth_del)
@@ -406,7 +406,7 @@ if ($tor_reged && $tor_info)
foreach ($peers as $pid => $peer)
{
- $u_prof_href = ($s_mode == 'count') ? '#' : append_sid("profile.php?mode=viewprofile&u=". $peer['user_id']) .'#torrent';
+ $u_prof_href = ($s_mode == 'count') ? '#' : "profile.php?mode=viewprofile&u=". $peer['user_id'] ."#torrent";
// Full details mode
if ($s_mode == 'full')
@@ -429,7 +429,7 @@ if ($tor_reged && $tor_info)
if (!defined('SEEDER_EXIST'))
{
define('SEEDER_EXIST', true);
- $seed_order_action = append_sid("viewtopic.php?". POST_TOPIC_URL ."=$bt_topic_id&spmode=full") .'#seeders';
+ $seed_order_action = "viewtopic.php?". POST_TOPIC_URL ."=$bt_topic_id&spmode=full#seeders";
$template->assign_block_vars("$x_full", array(
'SEED_ORD_ACT' => $seed_order_action,
@@ -456,7 +456,7 @@ if ($tor_reged && $tor_info)
if (!defined('LEECHER_EXIST'))
{
define('LEECHER_EXIST', true);
- $leech_order_action = append_sid("viewtopic.php?". POST_TOPIC_URL ."=$bt_topic_id&spmode=full") .'#leechers';
+ $leech_order_action = "viewtopic.php?". POST_TOPIC_URL ."=$bt_topic_id&spmode=full#leechers";
$template->assign_block_vars("$x_full", array(
'LEECH_ORD_ACT' => $leech_order_action,
@@ -578,7 +578,7 @@ if ($bb_cfg['bt_allow_spmode_change'] && $s_mode != 'full')
{
$template->assign_vars(array(
'PEERS_FULL_LINK' => true,
- 'SPMODE_FULL_HREF' => append_sid("viewtopic.php?". POST_TOPIC_URL ."=$bt_topic_id&spmode=full") .'#seeders',
+ 'SPMODE_FULL_HREF' => "viewtopic.php?". POST_TOPIC_URL ."=$bt_topic_id&spmode=full#seeders",
));
}
diff --git a/upload/attach_mod/posting_attachments.php b/upload/attach_mod/posting_attachments.php
index 9532d189f..353d6ccc6 100644
--- a/upload/attach_mod/posting_attachments.php
+++ b/upload/attach_mod/posting_attachments.php
@@ -813,7 +813,7 @@ class attach_parent
}
else
{
- $download_link = append_sid(BB_ROOT . 'download.php?id=' . $this->attachment_id_list[$i]);
+ $download_link = BB_ROOT . 'download.php?id=' . $this->attachment_id_list[$i];
}
$template->assign_block_vars('attach_row', array(
diff --git a/upload/config.php b/upload/config.php
index 3e4856247..925ea3fbc 100644
--- a/upload/config.php
+++ b/upload/config.php
@@ -52,8 +52,8 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
// Increase number of revision after update
$bb_cfg['tp_version'] = '2.4 (beta)';
-$bb_cfg['tp_release_state'] = 'R383';
-$bb_cfg['tp_release_date'] = '08-03-2012';
+$bb_cfg['tp_release_state'] = 'R384';
+$bb_cfg['tp_release_date'] = '11-03-2012';
// Database
$charset = 'utf8';
diff --git a/upload/groupcp.php b/upload/groupcp.php
index 3eab8a833..29d0ea59b 100644
--- a/upload/groupcp.php
+++ b/upload/groupcp.php
@@ -19,11 +19,11 @@ function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$
$joined = bb_date($row['user_regdate']);
$user_time = ( !empty($row['user_time']) ) ? bb_date($row['user_time']) : $lang['NO'];
$posts = ( $row['user_posts'] ) ? $row['user_posts'] : 0;
- $pm = ($bb_cfg['text_buttons']) ? ''. $lang['SEND_PM_TXTB'] .'' : '
';
+ $pm = ($bb_cfg['text_buttons']) ? ''. $lang['SEND_PM_TXTB'] .'' : '
';
if (bf($row['user_opt'], 'user_opt', 'viewemail') || $group_mod)
{
- $email_uri = ($bb_cfg['board_email_form']) ? append_sid("profile.php?mode=email&". POST_USERS_URL ."=".$row['user_id']) : 'mailto:'. $row['user_email'];
+ $email_uri = ($bb_cfg['board_email_form']) ? ("profile.php?mode=email&". POST_USERS_URL ."=".$row['user_id']) : 'mailto:'. $row['user_email'];
$email = ''. $row['user_email'] .'';
}
else $email = '';
diff --git a/upload/includes/bbcode.php b/upload/includes/bbcode.php
index 5667eb6d6..98d4a7857 100644
--- a/upload/includes/bbcode.php
+++ b/upload/includes/bbcode.php
@@ -168,7 +168,7 @@ function generate_smilies($mode)
$template->assign_block_vars('switch_smilies_extra', array());
$template->assign_vars(array(
- 'U_MORE_SMILIES' => append_sid("posting.php?mode=smilies"))
+ 'U_MORE_SMILIES' => "posting.php?mode=smilies")
);
}
diff --git a/upload/includes/functions.php b/upload/includes/functions.php
index 3a613a9f4..9f436cd1f 100644
--- a/upload/includes/functions.php
+++ b/upload/includes/functions.php
@@ -1756,7 +1756,7 @@ function generate_pagination($base_url, $num_items, $per_page, $start_item, $add
$init_page_max = ( $total_pages > $begin_end ) ? $begin_end : $total_pages;
for($i = 1; $i < $init_page_max + 1; $i++)
{
- $page_string .= ( $i == $on_page ) ? '' . $i . '' : '' . $i . '';
+ $page_string .= ( $i == $on_page ) ? '' . $i . '' : '' . $i . '';
if ( $i < $init_page_max )
{
$page_string .= ", ";
@@ -1774,7 +1774,7 @@ function generate_pagination($base_url, $num_items, $per_page, $start_item, $add
for($i = $init_page_min - $from_middle; $i < $init_page_max + ($from_middle + 1); $i++)
{
- $page_string .= ($i == $on_page) ? '' . $i . '' : '' . $i . '';
+ $page_string .= ($i == $on_page) ? '' . $i . '' : '' . $i . '';
if ( $i < $init_page_max + $from_middle )
{
$page_string .= ', ';
@@ -1788,7 +1788,7 @@ function generate_pagination($base_url, $num_items, $per_page, $start_item, $add
}
for($i = $total_pages - ($begin_end - 1); $i < $total_pages + 1; $i++)
{
- $page_string .= ( $i == $on_page ) ? '' . $i . '' : '' . $i . '';
+ $page_string .= ( $i == $on_page ) ? '' . $i . '' : '' . $i . '';
if( $i < $total_pages )
{
$page_string .= ", ";
@@ -1800,7 +1800,7 @@ function generate_pagination($base_url, $num_items, $per_page, $start_item, $add
{
for($i = 1; $i < $total_pages + 1; $i++)
{
- $page_string .= ( $i == $on_page ) ? '' . $i . '' : '' . $i . '';
+ $page_string .= ( $i == $on_page ) ? '' . $i . '' : '' . $i . '';
if ( $i < $total_pages )
{
$page_string .= ', ';
@@ -1812,12 +1812,12 @@ function generate_pagination($base_url, $num_items, $per_page, $start_item, $add
{
if ( $on_page > 1 )
{
- $page_string = ' ' . $lang['PREVIOUS'] . ' ' . $page_string;
+ $page_string = ' ' . $lang['PREVIOUS'] . ' ' . $page_string;
}
if ( $on_page < $total_pages )
{
- $page_string .= ' ' . $lang['NEXT'] . '';
+ $page_string .= ' ' . $lang['NEXT'] . '';
}
}
@@ -2758,7 +2758,7 @@ function get_avatar ($avatar, $type, $allow_avatar = true, $height = '', $width
function set_die_append_msg ($forum_id = null, $topic_id = null)
{
global $userdata, $lang, $template;
-
+
$msg = '';
$msg .= ($topic_id) ? ''. $lang['CLICK_RETURN_TOPIC'] .'
' : '';
$msg .= ($forum_id) ? ''. $lang['CLICK_RETURN_FORUM'] .'
' : '';
diff --git a/upload/includes/functions_admin_cron.php b/upload/includes/functions_admin_cron.php
index 7ac716951..9c5834267 100644
--- a/upload/includes/functions_admin_cron.php
+++ b/upload/includes/functions_admin_cron.php
@@ -80,24 +80,24 @@ function validate_cron_post($cron_arr) {
}
function insert_cron_job($cron_arr)
-{
+{
$row = DB()->fetch_row("SELECT cron_title, cron_script FROM ". BB_CRON ." WHERE cron_title = '". $_POST['cron_title'] ."' or cron_script = '". $_POST['cron_script'] ."' ");
-
+
if($row)
{
global $lang;
-
+
if ($_POST['cron_script'] == $row['cron_script'])
{
$langmode = $lang['SCRIPT_DUPLICATE'];
}
else $langmode = $lang['TITLE_DUPLICATE'];
-
- $message = $langmode . "
" . sprintf($lang['CLICK_RETURN_JOBS_ADDED'], "", "") . "
" . sprintf($lang['CLICK_RETURN_JOBS'], "", "") . "
" . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], "", "");
-
+
+ $message = $langmode . "
" . sprintf($lang['CLICK_RETURN_JOBS_ADDED'], "", "") . "
" . sprintf($lang['CLICK_RETURN_JOBS'], "", "") . "
" . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], "", "");
+
message_die(GENERAL_MESSAGE, $message);
}
-
+
$cron_active = $cron_arr['cron_active'];
$cron_title = $cron_arr['cron_title'];
$cron_script = $cron_arr['cron_script'];
@@ -113,7 +113,7 @@ function insert_cron_job($cron_arr)
$log_sql_queries = $cron_arr['log_sql_queries'];
$disable_board = $cron_arr['disable_board'];
$run_counter = $cron_arr['run_counter'];
-
+
DB()->query("INSERT INTO ". BB_CRON ." (cron_active, cron_title, cron_script, schedule, run_day, run_time, run_order, last_run, next_run, run_interval, log_enabled, log_file, log_sql_queries, disable_board, run_counter) VALUES (
$cron_active, '$cron_title', '$cron_script', '$schedule', '$run_day', '$run_time', '$run_order', '$last_run', '$next_run', '$run_interval', $log_enabled, '$log_file', $log_sql_queries, $disable_board, '$run_counter')");
}
diff --git a/upload/includes/functions_post.php b/upload/includes/functions_post.php
index 4ffcb2266..28bb90363 100644
--- a/upload/includes/functions_post.php
+++ b/upload/includes/functions_post.php
@@ -305,8 +305,8 @@ function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_
}
}
- meta_refresh(append_sid("viewtopic.php?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id);
- $message = $lang['STORED'] . '
' . sprintf($lang['CLICK_VIEW_MESSAGE'], '', '') . '
' . sprintf($lang['CLICK_RETURN_FORUM'], '', '');
+ meta_refresh("viewtopic.php?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id;
+ $message = $lang['STORED'] . '
' . sprintf($lang['CLICK_VIEW_MESSAGE'], '', '') . '
' . sprintf($lang['CLICK_RETURN_FORUM'], '', '');
return $mode;
}
@@ -444,11 +444,11 @@ function delete_post($mode, $post_data, &$message, &$meta, $forum_id, $topic_id,
if (!($mode == 'delete' && $post_data['first_post'] && $post_data['last_post']))
{
$message .= '
';
- $message .= sprintf($lang['CLICK_RETURN_TOPIC'], '', '');
+ $message .= sprintf($lang['CLICK_RETURN_TOPIC'], '', '');
}
$message .= '
';
- $message .= sprintf($lang['CLICK_RETURN_FORUM'], '', '');
+ $message .= sprintf($lang['CLICK_RETURN_FORUM'], '', '');
}
//
diff --git a/upload/includes/functions_torrent.php b/upload/includes/functions_torrent.php
index 9bed0c95a..34bbe5b1b 100644
--- a/upload/includes/functions_torrent.php
+++ b/upload/includes/functions_torrent.php
@@ -5,7 +5,7 @@ if (!defined('BB_ROOT')) die(basename(__FILE__));
function get_torrent_info ($attach_id)
{
global $lang;
-
+
$attach_id = intval($attach_id);
$sql = "
@@ -358,7 +358,7 @@ function tracker_register ($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVE
}
if ($row = DB()->sql_fetchrow($result))
{
- $msg = sprintf($lang['BT_REG_FAIL_SAME_HASH'], append_sid(TOPIC_URL . $row['topic_id']));
+ $msg = sprintf($lang['BT_REG_FAIL_SAME_HASH'], TOPIC_URL . $row['topic_id']);
torrent_error_exit($msg);
}
@@ -431,7 +431,7 @@ function tracker_register ($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVE
if ($reg_mode == 'request' || $reg_mode == 'newtopic')
{
- $mess = sprintf($lang['BT_REGISTERED'], append_sid("download.php?id=$attach_id"));
+ $mess = sprintf($lang['BT_REGISTERED'], "download.php?id=$attach_id");
exit_redirect($mess, $post_id, $forum_id);
}
@@ -493,7 +493,7 @@ function send_torrent_with_passkey ($filename)
}
else
{
- $mess = sprintf($lang['PASSKEY_ERR_EMPTY'], append_sid("profile.php?mode=editprofile#bittorrent"));
+ $mess = sprintf($lang['PASSKEY_ERR_EMPTY'], "profile.php?mode=editprofile#bittorrent");
message_die(GENERAL_ERROR, $mess);
}
}
@@ -739,7 +739,7 @@ function exit_redirect ($message, $post_id, $forum_id)
{
global $template, $lang;
- $exit_message = $message .'
'. sprintf($lang['CLICK_RETURN_TOPIC'], '', '') .'
'. sprintf($lang['CLICK_RETURN_FORUM'], '', '');
+ $exit_message = $message .'
'. sprintf($lang['CLICK_RETURN_TOPIC'], '', '') .'
'. sprintf($lang['CLICK_RETURN_FORUM'], '', '');
message_die(GENERAL_MESSAGE, $exit_message);
}
diff --git a/upload/includes/page_header.php b/upload/includes/page_header.php
index 9e2e8bde0..f68e17ce0 100644
--- a/upload/includes/page_header.php
+++ b/upload/includes/page_header.php
@@ -156,7 +156,7 @@ if ($bb_cfg['reports_enabled'])
$template->assign_block_vars('switch_report_general', array());
$template->assign_vars(array(
- 'U_WRITE_REPORT' => append_sid("report.php?mode=" . $report_general->mode),
+ 'U_WRITE_REPORT' => "report.php?mode=" . $report_general->mode,
'L_WRITE_REPORT' => $report_general->lang['WRITE_REPORT'])
);
}
@@ -171,7 +171,7 @@ $template->assign_vars(array(
'QUIRKS_MODE' => !empty($page_cfg['quirks_mode']),
'SHOW_ADS' => (!$logged_in || isset($bb_cfg['show_ads_users'][$user->id]) || (!($is_admin || $is_mod) && $user->show_ads)),
'USER_HIDE_CAT' => (BB_SCRIPT == 'index'),
-
+
'USER_RUS' => ($userdata['user_lang'] != 'english') ? true : false,
'INCLUDE_BBCODE_JS' => !empty($page_cfg['include_bbcode_js']),
@@ -201,7 +201,7 @@ $template->assign_vars(array(
// Report
'REPORT_LIST' => $report_list,
- 'U_REPORT_LIST' => append_sid("report.php"),
+ 'U_REPORT_LIST' => "report.php",
// Report [END]
'LOGGED_IN' => $logged_in,
diff --git a/upload/includes/report_hack/report_post.php b/upload/includes/report_hack/report_post.php
index 36b266fb2..eda37ab5b 100644
--- a/upload/includes/report_hack/report_post.php
+++ b/upload/includes/report_hack/report_post.php
@@ -164,7 +164,7 @@ class report_post extends report_module
function subject_url($report_subject, $non_html_amp = false)
{
$report_subject = (int) $report_subject;
- return append_sid("viewtopic.php?" . POST_POST_URL . "=$report_subject#$report_subject", $non_html_amp);
+ return "viewtopic.php?" . POST_POST_URL . "=$report_subject#$report_subject", $non_html_amp;
}
//
diff --git a/upload/includes/report_hack/report_privmsg.php b/upload/includes/report_hack/report_privmsg.php
index b675a858a..7295b3ee3 100644
--- a/upload/includes/report_hack/report_privmsg.php
+++ b/upload/includes/report_hack/report_privmsg.php
@@ -163,7 +163,7 @@ class report_privmsg extends report_module
function subject_url($report_subject, $non_html_amp = false)
{
$sep = ($non_html_amp) ? '&' : '&';
- return append_sid("privmsg.php?mode=read$sep" . POST_POST_URL . '=' . (int) $report_subject, $non_html_amp);
+ return "privmsg.php?mode=read$sep" . POST_POST_URL . '=' . (int) $report_subject, $non_html_amp;
}
//
@@ -193,7 +193,7 @@ class report_privmsg extends report_module
//
function subject_details_obtain($report_subject)
{
- $sql = 'SELECT p.privmsgs_subject, p.privmsgs_from_userid, pt.privmsgs_text, u.username
+ $sql = 'SELECT p.privmsgs_subject, p.privmsgs_from_userid, pt.privmsgs_text, u.username, u.user_id, u.user_rank
FROM ' . BB_PRIVMSGS . ' p
INNER JOIN ' . BB_PRIVMSGS_TEXT . ' pt
ON pt.privmsgs_text_id = privmsgs_id
@@ -215,7 +215,7 @@ class report_privmsg extends report_module
$subject_details = array(
'MESSAGE_ID' => '#' . $report_subject,
- 'MESSAGE_FROM' => '' . $row['username'] . '',
+ 'MESSAGE_FROM' => profile_url($row),
'MESSAGE_TITLE' => $row['privmsgs_subject'],
'MESSAGE_TEXT' => $row['privmsgs_text']);
diff --git a/upload/includes/report_hack/report_topic.php b/upload/includes/report_hack/report_topic.php
index 70511a50e..b853dff8c 100644
--- a/upload/includes/report_hack/report_topic.php
+++ b/upload/includes/report_hack/report_topic.php
@@ -163,7 +163,7 @@ class report_topic extends report_module
//
function subject_url($report_subject, $non_html_amp = false)
{
- return append_sid("viewtopic.php?" . POST_TOPIC_URL . '=' . (int) $report_subject, $non_html_amp);
+ return "viewtopic.php?" . POST_TOPIC_URL . '=' . (int) $report_subject, $non_html_amp;
}
//
diff --git a/upload/includes/report_hack/report_user.php b/upload/includes/report_hack/report_user.php
index 09600fcc3..323e7fb24 100644
--- a/upload/includes/report_hack/report_user.php
+++ b/upload/includes/report_hack/report_user.php
@@ -21,7 +21,7 @@ class report_user extends report_module
function subject_url($id, $non_html_amp = false)
{
$sep = ($non_html_amp) ? '&' : '&';
- return append_sid("profile.php?mode=viewprofile$sep" . POST_USERS_URL . '=' . (int) $id, $non_html_amp);
+ return "profile.php?mode=viewprofile$sep" . POST_USERS_URL . '=' . (int) $id, $non_html_amp;
}
//
diff --git a/upload/includes/sessions.php b/upload/includes/sessions.php
index b99e0f107..6c5f1d412 100644
--- a/upload/includes/sessions.php
+++ b/upload/includes/sessions.php
@@ -907,15 +907,6 @@ function delete_user_sessions ($user_id)
DB()->query("DELETE FROM ". BB_SESSIONS ." WHERE session_user_id IN($user_id)");
}
-function append_sid ($url, $non_html_amp = false)
-{
- if (defined('SID_GET') && !strpos($url, SID_GET))
- {
- $url .= ((strpos($url, '?') !== false) ? (($non_html_amp) ? '&' : '&') : '?') . SID_GET;
- }
- return $url;
-}
-
// deprecated
function session_begin ($userdata, $page_id = 0, $enable_autologin = false, $auto_created = false)
{
diff --git a/upload/includes/template.php b/upload/includes/template.php
index 10f8c9ba0..37e24ae78 100644
--- a/upload/includes/template.php
+++ b/upload/includes/template.php
@@ -1241,7 +1241,7 @@ class Template {
// file extension with session ID (eg: "php?sid=123&" or "php?")
// can be used to make custom URLs without modding phpbb
// contains "&" or "?" at the end so you can easily append paramenters
- $php = append_sid('php');
+ $php = 'php';
if(strpos($php, '?'))
{
$php .= '&';
diff --git a/upload/includes/topic_templates.php b/upload/includes/topic_templates.php
index 61081eb35..f235639e9 100644
--- a/upload/includes/topic_templates.php
+++ b/upload/includes/topic_templates.php
@@ -82,14 +82,14 @@ if ($topic_tpl = DB()->fetch_row($sql))
$template->assign_vars(array(
'PAGE_TITLE' => $lang['NEW_RELEASE'],
'FORUM_NAME' => htmlCHR($post_info['forum_name']),
- 'S_ACTION' => append_sid("posting.php?mode=newtopic&tpl=1&". POST_FORUM_URL .'='. $post_info['forum_id']),
- 'S_CANCEL_ACTION' => append_sid(FORUM_URL . $post_info['forum_id']),
+ 'S_ACTION' => "posting.php?mode=newtopic&tpl=1&". POST_FORUM_URL .'='. $post_info['forum_id'],
+ 'S_CANCEL_ACTION' => FORUM_URL . $post_info['forum_id'],
'TORRENT_EXT' => TORRENT_EXT,
'TORRENT_EXT_LEN' => strlen(TORRENT_EXT) + 1,
- 'U_VIEW_FORUM' => append_sid(FORUM_URL . $post_info['forum_id']),
+ 'U_VIEW_FORUM' => FORUM_URL . $post_info['forum_id'],
'REGULAR_TOPIC_BUTTON' => true, # (IS_AM),
- 'REGULAR_TOPIC_HREF' => append_sid("posting.php?mode=newtopic&". POST_FORUM_URL .'='. $post_info['forum_id']),
+ 'REGULAR_TOPIC_HREF' => "posting.php?mode=newtopic&". POST_FORUM_URL .'='. $post_info['forum_id'],
'L_TITLE' => $lang['TPL']['RELEASE_NAME'],
'L_TITLE_DESC' => $lang['TPL']['RELEASE_NAME_DESC'],
@@ -109,7 +109,7 @@ if ($topic_tpl = DB()->fetch_row($sql))
foreach ($lang['TPL']['GUIDE'] as $name => $guide_post_id)
{
$template->assign_vars(array(
- strtoupper($name) .'_HREF' => append_sid(POST_URL ."$guide_post_id&single=1#$guide_post_id"),
+ strtoupper($name) .'_HREF' => POST_URL ."$guide_post_id&single=1#$guide_post_id",
));
}
diff --git a/upload/includes/torrent_show_dl_list.php b/upload/includes/torrent_show_dl_list.php
index 93ec3c10c..8ce2f2e52 100644
--- a/upload/includes/torrent_show_dl_list.php
+++ b/upload/includes/torrent_show_dl_list.php
@@ -75,7 +75,7 @@ if ($show_dl_list)
}
else
{
- $u_prof_href = ($u['user_id'] == ANONYMOUS) ? '#' : append_sid("profile.php?mode=viewprofile&u=". $u['user_id']) .'#torrent';
+ $u_prof_href = ($u['user_id'] == ANONYMOUS) ? '#' : "profile.php?mode=viewprofile&u=". $u['user_id'] ."#torrent";
$dl_cat[$u['user_status']] .= ''. profile_url(array('username' => $u['username'], 'user_rank' => $u['user_rank'])) .', ';
$dl_count[$u['user_status']]++;
}
@@ -132,7 +132,7 @@ if ($show_dl_buttons)
$template->assign_vars(array(
'DL_HIDDEN_FIELDS' => $dl_hidden_fields,
- 'S_DL_ACTION' => append_sid("dl_list.php?". POST_TOPIC_URL ."=$topic_id"),
+ 'S_DL_ACTION' => "dl_list.php?". POST_TOPIC_URL ."=$topic_id",
));
}
diff --git a/upload/includes/ucp/torrent_userprofile.php b/upload/includes/ucp/torrent_userprofile.php
index 368d34453..4cb2b2272 100644
--- a/upload/includes/ucp/torrent_userprofile.php
+++ b/upload/includes/ucp/torrent_userprofile.php
@@ -22,7 +22,7 @@ if ($profile_user_id == $userdata['user_id'])
{
$template->assign_vars(array(
'EDIT_PROF' => true,
- 'EDIT_PROF_HREF' => append_sid("profile.php?mode=editprofile"),
+ 'EDIT_PROF_HREF' => "profile.php?mode=editprofile",
));
}
else
@@ -124,7 +124,7 @@ if ($seeding_count = count($seeding))
$is_gold = '
';
}
}
-
+
$template->assign_block_vars('seed.seedrow', array(
'FORUM_NAME' => htmlCHR($seeding[$i]['forum_name']),
'TOPIC_TITLE' => ($seeding[$i]['update_time']) ? wbr($seeding[$i]['topic_title']) : ''. wbr($seeding[$i]['topic_title']) .'',
@@ -157,7 +157,7 @@ if ($leeching_count = count($leeching))
$is_gold = '
';
}
}
-
+
$compl_size = ($leeching[$i]['remain'] && $leeching[$i]['size'] && $leeching[$i]['size'] > $leeching[$i]['remain']) ? ($leeching[$i]['size'] - $leeching[$i]['remain']) : 0;
$compl_perc = ($compl_size) ? floor($compl_size * 100 / $leeching[$i]['size']) : 0;
diff --git a/upload/includes/ucp/usercp_activate.php b/upload/includes/ucp/usercp_activate.php
index 66cb836fa..01923f31f 100644
--- a/upload/includes/ucp/usercp_activate.php
+++ b/upload/includes/ucp/usercp_activate.php
@@ -31,7 +31,7 @@ if ( $row = DB()->sql_fetchrow($result) )
{
if (!$userdata['session_logged_in'])
{
- redirect(append_sid('login.php?redirect=profile.php&mode=activate&' . POST_USERS_URL . '=' . $row['user_id'] . '&act_key=' . trim($_GET['act_key'])));
+ redirect('login.php?redirect=profile.php&mode=activate&' . POST_USERS_URL . '=' . $row['user_id'] . '&act_key=' . trim($_GET['act_key']));
}
else if (!IS_ADMIN)
{
diff --git a/upload/includes/ucp/usercp_attachcp.php b/upload/includes/ucp/usercp_attachcp.php
index 34a2b7d2f..a5ab5b7d8 100644
--- a/upload/includes/ucp/usercp_attachcp.php
+++ b/upload/includes/ucp/usercp_attachcp.php
@@ -10,7 +10,7 @@ require(BB_ROOT .'attach_mod/attachment_mod.php');
if (!$userdata['session_logged_in'])
{
- redirect(append_sid("login.php?redirect={$_SERVER['REQUEST_URI']}", TRUE));
+ redirect("login.php?redirect={$_SERVER['REQUEST_URI']}");
}
// Page config
@@ -174,7 +174,7 @@ $template->assign_vars(array(
'PAGE_TITLE' => $lang['USER_ACP_TITLE'],
'USERNAME' => $profiledata['username'],
'S_USER_HIDDEN' => $s_hidden,
- 'S_MODE_ACTION' => append_sid(BB_ROOT ."profile.php?mode=attachcp"),
+ 'S_MODE_ACTION' => BB_ROOT ."profile.php?mode=attachcp",
'S_MODE_SELECT' => $select_sort_mode,
'S_ORDER_SELECT' => $select_sort_order)
);
@@ -263,7 +263,7 @@ if (sizeof($attachments) > 0)
$post_title = str_short($post_title, 30);
- $view_topic = append_sid(BB_ROOT .'viewtopic.php?' . POST_POST_URL . '=' . $ids[$j]['post_id'] . '#' . $ids[$j]['post_id']);
+ $view_topic = BB_ROOT .'viewtopic.php?' . POST_POST_URL . '=' . $ids[$j]['post_id'] . '#' . $ids[$j]['post_id'];
$post_titles[] = '' . $post_title . '';
}
@@ -306,8 +306,8 @@ if (sizeof($attachments) > 0)
'S_DELETE_BOX' => $delete_box,
'S_HIDDEN' => $hidden_field,
- 'U_VIEW_ATTACHMENT' => append_sid(BB_ROOT .'download.php?id=' . $attachments[$i]['attach_id']))
- // 'U_VIEW_POST' => ($attachments[$i]['post_id'] != 0) ? append_sid("../viewtopic.php?" . POST_POST_URL . "=" . $attachments[$i]['post_id'] . "#" . $attachments[$i]['post_id']) : '')
+ 'U_VIEW_ATTACHMENT' => BB_ROOT .'download.php?id=' . $attachments[$i]['attach_id'])
+ // 'U_VIEW_POST' => ($attachments[$i]['post_id'] != 0) ? "../viewtopic.php?" . POST_POST_URL . "=" . $attachments[$i]['post_id'] . "#" . $attachments[$i]['post_id'] : '')
);
}
}
diff --git a/upload/includes/ucp/usercp_email.php b/upload/includes/ucp/usercp_email.php
index ef969b8cc..f78bebd4c 100644
--- a/upload/includes/ucp/usercp_email.php
+++ b/upload/includes/ucp/usercp_email.php
@@ -9,7 +9,7 @@ if ( !defined('IN_PHPBB') )
// Is send through board enabled? No, return to index
if (!$bb_cfg['board_email_form'])
{
- redirect(append_sid("index.php", true));
+ redirect("index.php");
}
if ( !empty($_GET[POST_USERS_URL]) || !empty($_POST[POST_USERS_URL]) )
@@ -23,7 +23,7 @@ else
if ( !$userdata['session_logged_in'] )
{
- redirect(append_sid("login.php?redirect=profile.php&mode=email&" . POST_USERS_URL . "=$user_id", true));
+ redirect("login.php?redirect=profile.php&mode=email&" . POST_USERS_URL . "=$user_id");
}
$sql = "SELECT username, user_email, user_lang
@@ -109,7 +109,7 @@ if ( $row = DB()->fetch_row($sql) )
}
sleep(7);
- $message = $lang['EMAIL_SENT'] . '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', '');
+ $message = $lang['EMAIL_SENT'] . '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', '');
message_die(GENERAL_MESSAGE, $message);
}
}
@@ -122,7 +122,7 @@ if ( $row = DB()->fetch_row($sql) )
$template->assign_vars(array(
'USERNAME' => $username,
'S_HIDDEN_FIELDS' => '',
- 'S_POST_ACTION' => append_sid("profile.php?mode=email&" . POST_USERS_URL . "=$user_id"),
+ 'S_POST_ACTION' => "profile.php?mode=email&" . POST_USERS_URL . "=$user_id",
));
print_page('usercp_email.tpl');
diff --git a/upload/includes/ucp/usercp_register.php b/upload/includes/ucp/usercp_register.php
index e606731b8..2e1fb2602 100644
--- a/upload/includes/ucp/usercp_register.php
+++ b/upload/includes/ucp/usercp_register.php
@@ -627,7 +627,7 @@ foreach ($profile_fields as $field => $can_edit)
$template->assign_vars(array(
'S_CATEGORY_SELECT' => $s_categories,
'S_COLSPAN' => $s_colspan,
- 'S_PROFILE_ACTION' => append_sid("profile.php?mode=$mode"),
+ 'S_PROFILE_ACTION' => "profile.php?mode=$mode",
'S_HIDDEN_FIELDS' => $s_hidden_vars)
);
@@ -840,7 +840,7 @@ if ($submit && !$errors)
}
}
- $message = $message . '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', '');
+ $message = $message . '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', '');
bb_die($message);
}
@@ -885,13 +885,13 @@ if ($submit && !$errors)
$emailer->send();
$emailer->reset();
- $message = $lang['PROFILE_UPDATED_INACTIVE'] . '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', '');
+ $message = $lang['PROFILE_UPDATED_INACTIVE'] . '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', '');
$user->session_end();
}
else
{
- meta_refresh(append_sid("index.php"), 10);
- $message = $lang['PROFILE_UPDATED'] . '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', '');
+ meta_refresh("index.php", 10);
+ $message = $lang['PROFILE_UPDATED'] . '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', '');
}
$sql_args = DB()->build_array('UPDATE', $db_data);
@@ -914,12 +914,12 @@ if ($submit && !$errors)
}
elseif(!$pr_data['user_active'])
{
- bb_die($lang['PROFILE_UPDATED_INACTIVE'] . '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', ''));
+ bb_die($lang['PROFILE_UPDATED_INACTIVE'] . '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', ''));
}
else
{
- meta_refresh(append_sid("index.php"), 10);
- bb_die($lang['PROFILE_UPDATED'] . '
'.$lang['RETURN_PROFILE'].'
' . sprintf($lang['CLICK_RETURN_INDEX'], '', ''));
+ meta_refresh("index.php", 10);
+ bb_die($lang['PROFILE_UPDATED'] . '
'.$lang['RETURN_PROFILE'].'
' . sprintf($lang['CLICK_RETURN_INDEX'], '', ''));
}
}
else
diff --git a/upload/includes/ucp/usercp_sendpasswd.php b/upload/includes/ucp/usercp_sendpasswd.php
index 635c12239..b670fa408 100644
--- a/upload/includes/ucp/usercp_sendpasswd.php
+++ b/upload/includes/ucp/usercp_sendpasswd.php
@@ -9,7 +9,7 @@ if ( !defined('IN_PHPBB') )
if ($bb_cfg['emailer_disabled']) bb_die($lang['EMAILER_DISABLED']);
$need_captcha = ($_GET['mode'] == 'sendpassword' && !IS_ADMIN);
-
+
if ( isset($_POST['submit']) )
{
if ($need_captcha && !CAPTCHA()->verify_code()) bb_die($lang['CONFIRM_CODE_WRONG']);
@@ -65,7 +65,7 @@ if ( isset($_POST['submit']) )
$emailer->send();
$emailer->reset();
- $message = $lang['PASSWORD_UPDATED'] . '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', '');
+ $message = $lang['PASSWORD_UPDATED'] . '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', '');
message_die(GENERAL_MESSAGE, $message);
}
@@ -89,7 +89,7 @@ $template->assign_vars(array(
'EMAIL' => $email,
'CAPTCHA_HTML' => ($need_captcha) ? CAPTCHA()->get_html() : '',
'S_HIDDEN_FIELDS' => '',
- 'S_PROFILE_ACTION' => append_sid("profile.php?mode=sendpassword"))
+ 'S_PROFILE_ACTION' => "profile.php?mode=sendpassword")
);
print_page('usercp_sendpasswd.tpl');
diff --git a/upload/includes/ucp/usercp_viewprofile.php b/upload/includes/ucp/usercp_viewprofile.php
index 875dc368f..9b4ace2fc 100644
--- a/upload/includes/ucp/usercp_viewprofile.php
+++ b/upload/includes/ucp/usercp_viewprofile.php
@@ -19,7 +19,7 @@ if (!$profiledata = get_userdata($_GET[POST_USERS_URL]))
if (!$userdata['session_logged_in'])
{
- redirect(append_sid("login.php?redirect={$_SERVER['REQUEST_URI']}", true));
+ redirect("login.php?redirect={$_SERVER['REQUEST_URI']}");
}
if (!$ranks = $datastore->get('ranks'))
@@ -47,7 +47,7 @@ if (IS_ADMIN)
if (bf($profiledata['user_opt'], 'user_opt', 'viewemail') || IS_AM)
{
- $email_uri = ($bb_cfg['board_email_form']) ? append_sid('profile.php?mode=email&'. POST_USERS_URL .'='. $profiledata['user_id']) : 'mailto:'. $profiledata['user_email'];
+ $email_uri = ($bb_cfg['board_email_form']) ? 'profile.php?mode=email&'. POST_USERS_URL .'='. $profiledata['user_id'] : 'mailto:'. $profiledata['user_email'];
$email = ''. $profiledata['user_email'] .'';
}
else
@@ -66,7 +66,7 @@ if ($report_user && $report_user->auth_check('auth_write'))
{
$template->assign_block_vars('switch_report_user', array());
$template->assign_vars(array(
- 'U_REPORT_USER' => append_sid('report.php?mode='. $report_user->mode .'&id='. $profiledata['user_id']),
+ 'U_REPORT_USER' => 'report.php?mode='. $report_user->mode .'&id='. $profiledata['user_id'],
'L_REPORT_USER' => $report_user->lang['WRITE_REPORT'])
);
}
@@ -105,7 +105,7 @@ $template->assign_vars(array(
'RANK_IMAGE' => $rank_image,
'RANK_SELECT' => $rank_select,
'POSTS' => $profiledata['user_posts'],
- 'PM' => ''. $lang['SEND_PRIVATE_MESSAGE'] .'',
+ 'PM' => ''. $lang['SEND_PRIVATE_MESSAGE'] .'',
'EMAIL' => $email,
'WWW' => $profiledata['user_website'],
'ICQ' => $profiledata['user_icq'],
diff --git a/upload/memberlist.php b/upload/memberlist.php
index a0c551d62..efd077cb6 100644
--- a/upload/memberlist.php
+++ b/upload/memberlist.php
@@ -67,7 +67,7 @@ $select_sort_order .= '';
$template->assign_vars(array(
'S_MODE_SELECT' => $select_sort_mode,
'S_ORDER_SELECT' => $select_sort_order,
- 'S_MODE_ACTION' => append_sid("memberlist.php"),
+ 'S_MODE_ACTION' => "memberlist.php",
'S_USERNAME' => $paginationusername,
));
@@ -132,19 +132,19 @@ if ($by_letter_req)
// ENG
for ($i=ord('A'), $cnt=ord('Z'); $i <= $cnt; $i++)
{
- $select_letter .= ($by_letter == chr($i)) ? ''. chr($i) .' ' : ''. chr($i) .' ';
+ $select_letter .= ($by_letter == chr($i)) ? ''. chr($i) .' ' : ''. chr($i) .' ';
}
// RUS
$select_letter .= ': ';
for ($i=224, $cnt=255; $i <= $cnt; $i++)
{
- $select_letter .= ($by_letter == iconv('windows-1251', 'UTF-8', chr($i))) ? ''. iconv('windows-1251', 'UTF-8', chr($i-32)) .' ' : ''. iconv('windows-1251', 'UTF-8', chr($i-32)) .' ';
+ $select_letter .= ($by_letter == iconv('windows-1251', 'UTF-8', chr($i))) ? ''. iconv('windows-1251', 'UTF-8', chr($i-32)) .' ' : ''. iconv('windows-1251', 'UTF-8', chr($i-32)) .' ';
}
$select_letter .= ': ';
-$select_letter .= ($by_letter == 'others') ? ''. $lang['OTHERS'] .' ' : ''. $lang['OTHERS'] .' ';
+$select_letter .= ($by_letter == 'others') ? ''. $lang['OTHERS'] .' ' : ''. $lang['OTHERS'] .' ';
$select_letter .= ': ';
-$select_letter .= ($by_letter == 'all') ? ''. $lang['ALL'] .'' : ''. $lang['ALL'] .'';
+$select_letter .= ($by_letter == 'all') ? ''. $lang['ALL'] .'' : ''. $lang['ALL'] .'';
$template->assign_vars(array(
'S_LETTER_SELECT' => $select_letter,
@@ -171,11 +171,11 @@ if ($result = DB()->fetch_rowset($sql))
$from = $row['user_from'];
$joined = bb_date($row['user_regdate'], $lang['DATE_FORMAT']);
$posts = $row['user_posts'];
- $pm = ($bb_cfg['text_buttons']) ? ''. $lang['SEND_PM_TXTB'] .'' : '
';
+ $pm = ($bb_cfg['text_buttons']) ? ''. $lang['SEND_PM_TXTB'] .'' : '
';
if (bf($row['user_opt'], 'user_opt', 'viewemail') || IS_AM)
{
- $email_uri = ($bb_cfg['board_email_form']) ? append_sid("profile.php?mode=email&". POST_USERS_URL ."=$user_id") : 'mailto:'. $row['user_email'];
+ $email_uri = ($bb_cfg['board_email_form']) ? ("profile.php?mode=email&". POST_USERS_URL ."=$user_id") : 'mailto:'. $row['user_email'];
$email = ''. $row['user_email'] .'';
//$email = ($bb_cfg['text_buttons']) ? ''. $row['user_email'] .'' : '
';
@@ -206,7 +206,7 @@ if ($result = DB()->fetch_rowset($sql))
'PM' => $pm,
'EMAIL' => $email,
'WWW' => $www,
- 'U_VIEWPROFILE' => append_sid("profile.php?mode=viewprofile&". POST_USERS_URL ."=$user_id"))
+ 'U_VIEWPROFILE' => "profile.php?mode=viewprofile&". POST_USERS_URL ."=$user_id")
);
}
}
diff --git a/upload/posting.php b/upload/posting.php
index 22e659f5c..f8fcb419b 100644
--- a/upload/posting.php
+++ b/upload/posting.php
@@ -230,7 +230,7 @@ if ($post_info = DB()->fetch_row($sql))
if ($post_info['poster_id'] != $userdata['user_id'] && !$is_auth['auth_mod'])
{
$message = ($delete || $mode == 'delete') ? $lang['DELETE_OWN_POSTS'] : $lang['EDIT_OWN_POSTS'];
- $message .= '
'. sprintf($lang['CLICK_RETURN_TOPIC'], '', '');
+ $message .= '
'. sprintf($lang['CLICK_RETURN_TOPIC'], '', '');
message_die(GENERAL_MESSAGE, $message);
}
@@ -468,13 +468,13 @@ else if ( $mode == 'vote' )
}
DB()->sql_freeresult($result);
- meta_refresh(append_sid("viewtopic.php?" . POST_TOPIC_URL . "=$topic_id"));
- $message .= '
' . sprintf($lang['CLICK_RETURN_TOPIC'], '', '');
+ meta_refresh("viewtopic.php?" . POST_TOPIC_URL . "=$topic_id");
+ $message .= '
' . sprintf($lang['CLICK_RETURN_TOPIC'], '', '');
message_die(GENERAL_MESSAGE, $message);
}
else
{
- redirect(append_sid("viewtopic.php?" . POST_TOPIC_URL . "=$topic_id", true));
+ redirect("viewtopic.php?" . POST_TOPIC_URL . "=$topic_id");
}
}
//snp
@@ -568,7 +568,7 @@ else if ( ($submit || $confirm) && !$topic_has_new_posts )
AND tor_status IN(". TOR_APPROVED .",". TOR_DOUBTFUL .",". TOR_TMP .")
LIMIT 1
", 'checked_releases');
-
+
if ($count_checked_releases || IS_AM) tracker_register(TORRENT_ATTACH_ID, 'newtopic', TOR_NOT_APPROVED);
else tracker_register(TORRENT_ATTACH_ID, 'newtopic', TOR_PREMOD);
}
@@ -821,7 +821,7 @@ $template->assign_vars(array(
'POSTING_TYPE_TITLE' => $page_title,
'POSTING_TOPIC_ID' => ($mode != 'newtopic') ? $topic_id : '',
'POSTING_TOPIC_TITLE' => ($mode != 'newtopic') ? wbr($post_info['topic_title']) : '',
- 'U_VIEW_FORUM' => append_sid("viewforum.php?" . POST_FORUM_URL . "=$forum_id"))
+ 'U_VIEW_FORUM' => "viewforum.php?" . POST_FORUM_URL . "=$forum_id")
);
if ($mode == 'newtopic' || $post_data['first_post'])
@@ -848,12 +848,12 @@ $template->assign_vars(array(
'SUBJECT' => $subject,
'MESSAGE' => $message,
- 'U_VIEWTOPIC' => ( $mode == 'reply' ) ? append_sid("viewtopic.php?" . POST_TOPIC_URL . "=$topic_id&postorder=desc") : '',
+ 'U_VIEWTOPIC' => ( $mode == 'reply' ) ? "viewtopic.php?" . POST_TOPIC_URL . "=$topic_id&postorder=desc" : '',
'S_NOTIFY_CHECKED' => ( $notify_user ) ? 'checked="checked"' : '',
'S_TYPE_TOGGLE' => $topic_type_toggle,
'S_TOPIC_ID' => $topic_id,
- 'S_POST_ACTION' => append_sid("posting.php"),
+ 'S_POST_ACTION' => "posting.php",
'S_HIDDEN_FORM_FIELDS' => $hidden_form_fields)
);
diff --git a/upload/privmsg.php b/upload/privmsg.php
index a9bdd4e44..8a64e9875 100644
--- a/upload/privmsg.php
+++ b/upload/privmsg.php
@@ -77,7 +77,7 @@ $template->assign_vars(array(
//
if ( $cancel )
{
- redirect(append_sid("privmsg.php?folder=$folder", true));
+ redirect("privmsg.php?folder=$folder");
}
//
@@ -183,7 +183,7 @@ if ( $mode == 'read' )
//
if ( !($privmsg = DB()->sql_fetchrow($result)) )
{
- redirect(append_sid("privmsg.php?folder=$folder", true));
+ redirect("privmsg.php?folder=$folder");
}
$privmsg_id = $privmsg['privmsgs_id'];
@@ -292,10 +292,10 @@ if ( $mode == 'read' )
// Pick a folder, any folder, so long as it's one below ...
//
$post_urls = array(
- 'post' => append_sid("privmsg.php?mode=post"),
- 'reply' => append_sid("privmsg.php?mode=reply&" . POST_POST_URL . "=$privmsg_id"),
- 'quote' => append_sid("privmsg.php?mode=quote&" . POST_POST_URL . "=$privmsg_id"),
- 'edit' => append_sid("privmsg.php?mode=edit&" . POST_POST_URL . "=$privmsg_id")
+ 'post' => "privmsg.php?mode=post",
+ 'reply' => "privmsg.php?mode=reply&" . POST_POST_URL . "=$privmsg_id",
+ 'quote' => "privmsg.php?mode=quote&" . POST_POST_URL . "=$privmsg_id",
+ 'edit' => "privmsg.php?mode=edit&" . POST_POST_URL . "=$privmsg_id"
);
$post_icons = array(
'post_img' => '
',
@@ -389,7 +389,7 @@ if ( $mode == 'read' )
}
else
{
- $temp_url = append_sid("report.php?mode=" . $report_privmsg->mode . "&id=$privmsg_id");
+ $temp_url = "report.php?mode=" . $report_privmsg->mode . "&id=$privmsg_id";
$report_img = '
';
$report = '' . $report_privmsg->lang['WRITE_REPORT'] . '';
}
@@ -430,7 +430,7 @@ if ( $mode == 'read' )
'SAVEBOX' => $savebox_url,
'BOX_NAME' => $l_box_name,
- 'S_PRIVMSGS_ACTION' => append_sid("privmsg.php?folder=$folder"),
+ 'S_PRIVMSGS_ACTION' => "privmsg.php?folder=$folder",
'S_HIDDEN_FIELDS' => $s_hidden_fields)
);
@@ -441,15 +441,15 @@ if ( $mode == 'read' )
$post_date = bb_date($privmsg['privmsgs_date']);
- $temp_url = append_sid("profile.php?mode=viewprofile&" . POST_USERS_URL . '=' . $user_id_from);
+ $temp_url = "profile.php?mode=viewprofile&" . POST_USERS_URL . '=' . $user_id_from;
$profile_img = '
';
$profile = '' . $lang['READ_PROFILE'] . '';
- $temp_url = append_sid("privmsg.php?mode=post&" . POST_USERS_URL . "=$user_id_from");
+ $temp_url = "privmsg.php?mode=post&" . POST_USERS_URL . "=$user_id_from";
$pm_img = '
';
$pm = '' . $lang['SEND_PRIVATE_MESSAGE'] . '';
- $temp_url = append_sid("search.php?search_author=1&uid=$user_id_from");
+ $temp_url = "search.php?search_author=1&uid=$user_id_from";
$search_img = '
';
$search = '' . sprintf($lang['SEARCH_USER_POSTS'], $username_from) . '';
@@ -895,7 +895,7 @@ else if ( $save && $mark_list && $folder != 'savebox' && $folder != 'outbox' )
message_die(GENERAL_ERROR, 'Could not save private messages', '', __LINE__, __FILE__, $saved_sql);
}
- redirect(append_sid("privmsg.php?folder=savebox", true));
+ redirect("privmsg.php?folder=savebox");
}
}
else if ( $submit || $refresh || $mode != '' )
@@ -1229,7 +1229,7 @@ else if ( $submit || $refresh || $mode != '' )
if ( !($privmsg = DB()->sql_fetchrow($result)) )
{
- redirect(append_sid("privmsg.php?folder=$folder", true));
+ redirect("privmsg.php?folder=$folder");
}
$privmsg_subject = $privmsg['privmsgs_subject'];
@@ -1255,7 +1255,7 @@ else if ( $submit || $refresh || $mode != '' )
if ( !($privmsg = DB()->sql_fetchrow($result)) )
{
- redirect(append_sid("privmsg.php?folder=$folder", true));
+ redirect("privmsg.php?folder=$folder");
}
$privmsg_subject = ( ( !preg_match('/^Re:/', $privmsg['privmsgs_subject']) ) ? 'Re: ' : '' ) . $privmsg['privmsgs_subject'];
@@ -1398,10 +1398,10 @@ else if ( $submit || $refresh || $mode != '' )
'POSTING_TYPE_TITLE' => $post_a,
'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields,
- 'S_POST_ACTION' => append_sid("privmsg.php"),
+ 'S_POST_ACTION' => "privmsg.php",
- 'U_SEARCH_USER' => append_sid("search.php?mode=searchuser"),
- 'U_VIEW_FORUM' => append_sid("privmsg.php"))
+ 'U_SEARCH_USER' => "search.php?mode=searchuser",
+ 'U_VIEW_FORUM' => "privmsg.php")
);
}
else
@@ -1450,7 +1450,7 @@ else
//
// New message
//
- $post_new_mesg_url = '
';
+ $post_new_mesg_url = '
';
//
// General SQL to obtain messages
@@ -1586,7 +1586,7 @@ else
$l_box_name = $lang['SENTBOX'];
break;
}
- $post_pm = append_sid("privmsg.php?mode=post");
+ $post_pm = "privmsg.php?mode=post";
$post_pm_img = '
';
$post_pm = '' . $lang['POST_NEW_PM'] . '';
@@ -1642,12 +1642,12 @@ else
'L_FROM_OR_TO' => ( $folder == 'inbox' || $folder == 'savebox' ) ? $lang['FROM'] : $lang['TO'],
- 'S_PRIVMSGS_ACTION' => append_sid("privmsg.php?folder=$folder"),
+ 'S_PRIVMSGS_ACTION' => "privmsg.php?folder=$folder",
'S_HIDDEN_FIELDS' => '',
'S_POST_NEW_MSG' => $post_new_mesg_url,
'S_SELECT_MSG_DAYS' => $select_msg_days,
- 'U_POST_NEW_TOPIC' => append_sid("privmsg.php?mode=post"))
+ 'U_POST_NEW_TOPIC' => "privmsg.php?mode=post")
);
//
@@ -1680,7 +1680,7 @@ else
$msg_subject = preg_replace($orig_word, $replacement_word, $msg_subject);
}
- $u_subject = append_sid("privmsg.php?folder=$folder&mode=read&" . POST_POST_URL . "=$privmsg_id");
+ $u_subject = "privmsg.php?folder=$folder&mode=read&" . POST_POST_URL . "=$privmsg_id";
$msg_date = bb_date($row['privmsgs_date']);
diff --git a/upload/report.php b/upload/report.php
index 683e34380..499c0bd51 100644
--- a/upload/report.php
+++ b/upload/report.php
@@ -13,8 +13,8 @@ $user->session_start(array('req_login' => true));
if(!$bb_cfg['reports_enabled']) bb_die($lang['REPORTS_DISABLE']);
$return_links = array(
- 'index' => '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', ''),
- 'list' => '
' . sprintf($lang['CLICK_RETURN_REPORT_LIST'], '', '')
+ 'index' => '
' . sprintf($lang['CLICK_RETURN_INDEX'], '', ''),
+ 'list' => '
' . sprintf($lang['CLICK_RETURN_REPORT_LIST'], '', '')
);
if (isset($_POST['mode']) || isset($_GET['mode']))
@@ -120,7 +120,7 @@ if (isset($report_module))
}
else if (isset($_POST['cancel']))
{
- $redirect_url = (method_exists($report_module, 'subject_url')) ? $report_module->subject_url($report_subject_id, true) : append_sid("index.php", true);
+ $redirect_url = (method_exists($report_module, 'subject_url')) ? $report_module->subject_url($report_subject_id, true) : "index.php";
redirect($redirect_url);
}
@@ -193,7 +193,7 @@ if (isset($report_module))
$hidden_fields = '';
$template->assign_vars(array(
- 'S_REPORT_ACTION' => append_sid("report.php"),
+ 'S_REPORT_ACTION' => "report.php",
'S_HIDDEN_FIELDS' => $hidden_fields,
'L_WRITE_REPORT' => $report_module->lang['WRITE_REPORT'],
@@ -209,7 +209,7 @@ else
{
if ($userdata['user_level'] != ADMIN && ($bb_cfg['report_list_admin'] || $userdata['user_level'] != MOD))
{
- redirect(append_sid("index.php", true));
+ redirect("index.php");
}
$params = array('open', 'process', 'clear', 'delete');
@@ -259,8 +259,7 @@ else
if (empty($reports))
{
- $template->assign_var('META', '');
-
+ meta_refresh('report.php', 3);
message_die(GENERAL_MESSAGE, $lang['NO_REPORTS_SELECTED'] . $return_links['list'] . $return_links['index']);
}
@@ -270,7 +269,7 @@ else
if (isset($_POST['cancel']))
{
$redirect_url = ($single_report) ? "report.php?" . POST_REPORT_URL . '=' . $reports[0] : "report.php";
- redirect(append_sid($redirect_url, true));
+ redirect($redirect_url);
}
//
@@ -290,7 +289,7 @@ else
}
$template->assign_vars(array(
- 'S_CONFIRM_ACTION' => append_sid("report.php"),
+ 'S_CONFIRM_ACTION' => "report.php",
'S_HIDDEN_FIELDS' => $hidden_fields)
);
@@ -321,9 +320,10 @@ else
reports_update_status($reports, $status, $comment);
$meta_url = ($single_report) ? "report.php?" . POST_REPORT_URL . '=' . $reports[0] : "report.php";
- $template->assign_var('META', '');
- $return_link = ($single_report) ? '
' . sprintf($lang['CLICK_RETURN_REPORT'], '', '') : '';
+ meta_refresh($meta_url, 3);
+
+ $return_link = ($single_report) ? '
' . sprintf($lang['CLICK_RETURN_REPORT'], '', '') : '';
$message = ($single_report) ? 'REPORT_CHANGED' : 'REPORTS_CHANGED';
message_die(GENERAL_MESSAGE, $lang[$message] . $return_link . $return_links['list'] . $return_links['index']);
}
@@ -352,7 +352,7 @@ else
{
reports_delete($reports);
- $template->assign_var('META', '');
+ meta_refresh('report.php', 3);
$message = ($single_report) ? 'REPORT_DELETED' : 'REPORTS_DELETED';
message_die(GENERAL_MESSAGE, $lang[$message] . $return_links['list'] . $return_links['index']);
@@ -396,7 +396,7 @@ else
//
else if (count($reports) == 1)
{
- $redirect_url = append_sid("report.php?" . POST_REPORT_URL . '=' . $reports[0]['report_id'], true);
+ $redirect_url = "report.php?" . POST_REPORT_URL . '=' . $reports[0]['report_id'];
redirect($redirect_url);
}
@@ -407,7 +407,7 @@ else
);
$template->assign_vars(array(
- 'S_REPORT_ACTION', append_sid("report.php"),
+ 'S_REPORT_ACTION', "report.php",
'L_STATUS_CLEARED' => $lang['REPORT_STATUS'][REPORT_CLEARED],
'L_STATUS_IN_PROCESS' => $lang['REPORT_STATUS'][REPORT_IN_PROCESS],
@@ -420,7 +420,7 @@ else
foreach ($reports as $report)
{
$template->assign_block_vars('open_reports', array(
- 'U_SHOW' => append_sid("report.php?" . POST_REPORT_URL . '=' . $report['report_id']),
+ 'U_SHOW' => "report.php?" . POST_REPORT_URL . '=' . $report['report_id'],
'ID' => $report['report_id'],
'TITLE' => $report['report_title'],
@@ -441,9 +441,9 @@ else
);
$template->assign_vars(array(
- 'S_REPORT_ACTION' => append_sid("report.php"),
+ 'S_REPORT_ACTION' => "report.php",
- 'U_REPORT_INDEX' => append_sid("report.php"),
+ 'U_REPORT_INDEX' => "report.php",
'L_STATUS_CLEARED' => $lang['REPORT_STATUS'][REPORT_CLEARED],
'L_STATUS_IN_PROCESS' => $lang['REPORT_STATUS'][REPORT_IN_PROCESS],
@@ -472,7 +472,7 @@ else
}
$template->assign_block_vars('report_modules', array(
- 'U_SHOW' => append_sid("report.php?" . POST_CAT_URL . '=' . $report_module->id),
+ 'U_SHOW' => "report.php?" . POST_CAT_URL . '=' . $report_module->id,
'TITLE' => $report_module->lang['REPORT_LIST_TITLE'])
);
@@ -504,7 +504,7 @@ else
foreach ($reports[$report_module->id] as $report)
{
$template->assign_block_vars('report_modules.reports', array(
- 'U_SHOW' => append_sid("report.php?" . POST_REPORT_URL . '=' . $report['report_id'] . $cat_url),
+ 'U_SHOW' => "report.php?" . POST_REPORT_URL . '=' . $report['report_id'] . $cat_url,
'ROW_CLASS' => $report_status_classes[$report['report_status']],
'ID' => $report['report_id'],
@@ -694,7 +694,7 @@ else
$template->assign_vars(array(
'S_HIDDEN_FIELDS' => '',
- 'U_REPORT_AUTHOR_PRIVMSG' => append_sid("privmsg.php?mode=post&" . POST_USERS_URL . '=' . $report['user_id']),
+ 'U_REPORT_AUTHOR_PRIVMSG' => "privmsg.php?mode=post&" . POST_USERS_URL . '=' . $report['user_id'],
'REPORT_TYPE' => $report_module->lang['REPORT_TYPE'],
'REPORT_TITLE' => $report['report_title'],
@@ -739,7 +739,7 @@ else
$report_module =& $report_modules[$report['report_module_id']];
$template->assign_block_vars('switch_deleted_reports.deleted_reports', array(
- 'U_SHOW' => append_sid("report.php?" . POST_REPORT_URL . '=' . $report['report_id'] . $cat_url),
+ 'U_SHOW' => "report.php?" . POST_REPORT_URL . '=' . $report['report_id'] . $cat_url,
'ID' => $report['report_id'],
'TITLE' => $report['report_title'],
diff --git a/upload/viewtopic.php b/upload/viewtopic.php
index 437af5b37..8fd3f962e 100644
--- a/upload/viewtopic.php
+++ b/upload/viewtopic.php
@@ -523,7 +523,7 @@ if ($report_topic && $report_topic->auth_check('auth_write'))
if ($report_topic->auth_check('auth_view') && $is_auth)
{
$target = ($bb_cfg['report_new_window']) ? ' target="_blank"' : '';
- $s_report_topic =' id . "&id=$topic_id") . '"' . $target . '>
';
+ $s_report_topic =' id . "&id=$topic_id") . '"' . $target . '>
';
}
else
{
@@ -532,7 +532,7 @@ if ($report_topic && $report_topic->auth_check('auth_write'))
}
else
{
- $s_report_topic = ' mode . "&id=$topic_id") . '">
';
+ $s_report_topic = ' mode . "&id=$topic_id") . '">
';
}
$topic_mod .= $s_report_topic;
@@ -952,7 +952,7 @@ for($i = 0; $i < $total_posts; $i++)
$report_auth = ($userdata['user_level'] == ADMIN || (!$bb_cfg['report_list_admin'] && (!$bb_cfg['report_subject_auth'] || $is_auth['auth_mod'])));
if ($report_post->auth_check('auth_view') && $report_auth)
{
- $temp_url = append_sid("report.php?mode=reported&" . POST_CAT_URL . '=' . $report_post->id . '&id=' . $postrow[$i]['post_id']);
+ $temp_url = "report.php?mode=reported&" . POST_CAT_URL . '=' . $report_post->id . '&id=' . $postrow[$i]['post_id'];
$target = ($bb_cfg['report_new_window']) ? ' target="_blank"' : '';
$report_img = '
';
$report = '[' . $report_post->lang['DUPLICATE_REPORT'] . ']';
@@ -965,7 +965,7 @@ for($i = 0; $i < $total_posts; $i++)
}
else
{
- $temp_url = append_sid("report.php?mode=" . $report_post->mode . '&id=' . $postrow[$i]['post_id']);
+ $temp_url = "report.php?mode=" . $report_post->mode . '&id=' . $postrow[$i]['post_id'];
$report_img = '
';
$report = '[' . $report_post->lang['WRITE_REPORT'] . ']';
}