From 6a7495102901ccd970cb0da405cd5444e84d3f46 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 6 May 2001 16:16:22 +0000 Subject: Now allow for GET based session git-svn-id: file:///svn/phpbb/trunk@256 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewtopic.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'phpBB/viewtopic.php') diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 6892f3eadb..11c08a911a 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -127,11 +127,11 @@ $ranksrow = $db->sql_fetchrowset($ranksresult); // Post, reply and other URL generation for // templating vars // -$new_topic_url = "posting.".$phpEx."?mode=newtopic&".POST_FORUM_URL."=$forum_id"; -$reply_topic_url = "posting.".$phpEx."?mode=reply&".POST_TOPIC_URL."=$topic_id"; -$view_forum_url = "viewforum.".$phpEx."?".POST_FORUM_URL."=$forum_id"; -$view_older_topic_url = "viewtopic.".$phpEx."?".POST_TOPIC_URL."=".$topic_id."&view=older"; -$view_newer_topic_url = "viewtopic.".$phpEx."?".POST_TOPIC_URL."=".$topic_id."&view=newer"; +$new_topic_url = append_sid("posting.".$phpEx."?mode=newtopic&".POST_FORUM_URL."=$forum_id"); +$reply_topic_url = append_sid("posting.".$phpEx."?mode=reply&".POST_TOPIC_URL."=$topic_id"); +$view_forum_url = append_sid("viewforum.".$phpEx."?".POST_FORUM_URL."=$forum_id"); +$view_older_topic_url = append_sid("viewtopic.".$phpEx."?".POST_TOPIC_URL."=".$topic_id."&view=older"); +$view_newer_topic_url = append_sid("viewtopic.".$phpEx."?".POST_TOPIC_URL."=".$topic_id."&view=newer"); $template->assign_vars(array( "U_POST_NEW_TOPIC" => $new_topic_url, "U_VIEW_FORUM" => $view_forum_url, @@ -180,7 +180,7 @@ for($x = 0; $x < $total_posts; $x++) $poster_rank = ""; } - $profile_img = "\"$l_profileof"; + $profile_img = "\"$l_profileof"; $email_img = ($postrow[$x]["user_viewemail"] == 1) ? "\"$l_email" : ""; $www_img = ($postrow[$x]["user_website"]) ? "\"$l_viewsite\"" : ""; @@ -199,14 +199,14 @@ for($x = 0; $x < $total_posts; $x++) $msn_img = ($postrow[$x]["user_msnm"]) ? "" : ""; $yim_img = ($postrow[$x]["user_yim"]) ? "" : ""; - $edit_img = "\"$l_editdelete\""; - $quote_img = "\"$l_replyquote\""; - $pmsg_img = "\"$l_sendpmsg\""; + $edit_img = "\"$l_editdelete\""; + $quote_img = "\"$l_replyquote\""; + $pmsg_img = "\"$l_sendpmsg\""; if($is_moderator) { - $ip_img = "\"$l_viewip\""; - $delpost_img = "\"$l_delete\""; + $ip_img = "\"$l_viewip\""; + $delpost_img = "\"$l_delete\""; } $message = stripslashes($postrow[$x]["post_text"]); @@ -298,7 +298,7 @@ if($total_replies > $board_config['posts_per_page']) $last_page = $start - $board_config['posts_per_page']; if($start > 0) { - $pagination .= "$l_prevpage "; + $pagination .= "$l_prevpage "; } for($x = 0; $x < $total_replies; $x += $board_config['posts_per_page']) @@ -317,7 +317,7 @@ if($total_replies > $board_config['posts_per_page']) } else { - $pagination .= "$times"; + $pagination .= "$times"; } $times++; } @@ -325,7 +325,7 @@ if($total_replies > $board_config['posts_per_page']) if(($start + $board_config['posts_per_page']) < $total_replies) { $next_page = $start + $board_config['posts_per_page']; - $pagination .= " $l_nextpage"; + $pagination .= " $l_nextpage"; } $pagination .= " )"; } -- cgit v1.2.1