diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index ba203c9281..c36b56710e 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -268,4 +268,23 @@ function create_date($format, $gmepoch, $tz) { return (gmdate($format, $gmepoch + (3600 * $tz))); } -?> + +// +// Append $SID to a url +// Borrowed from phplib +// +function append_sid($url) +{ + global $SID; + + if(!empty($SID) && !eregi("^http:", $url) && !eregi("sid=", $url)) + { + $url = ereg_replace("[&?]+$", "", $url); + $url .= ( strpos($url, "?") != false ? "&" : "?" ) . $SID; + } + + return($url); + +} + +?> \ No newline at end of file diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php index 3c542946b9..c6ea57e173 100644 --- a/phpBB/includes/page_header.php +++ b/phpBB/includes/page_header.php @@ -37,7 +37,7 @@ $template->set_filenames(array( if($userdata['session_logged_in']) { $logged_in_status = "You are logged in as ".$userdata["username"]."."; - $logged_in_status .= " [Logout]"; + $logged_in_status .= " [Logout]"; $u_login_logout = "login.$phpEx?submit=logout"; $l_login_logout = "$l_logout : ".$userdata["username"].""; @@ -86,7 +86,7 @@ while($row = $db->sql_fetchrow($result)) { if($row['session_logged_in']) { - $userlist_ary[] = "" . $row['username'] . ""; + $userlist_ary[] = "" . $row['username'] . ""; $logged_online++; } else @@ -114,6 +114,7 @@ $template->assign_vars(array( "L_USERNAME" => $l_username, "L_PASSWORD" => $l_password, + "L_LOGIN" => $l_login, "L_LOG_ME_IN" => $l_log_me_in, "L_WELCOMETO" => $l_welcometo, "L_INDEX" => $l_indextitle, @@ -150,20 +151,23 @@ $template->assign_vars(array( "L_LOGIN_LOGOUT" => $l_login_logout, - "U_INDEX" => "index.".$phpEx, - "U_REGISTER" => "profile.".$phpEx."?mode=register", - "U_PROFILE" => "profile.".$phpEx."?mode=editprofile", - "U_PRIVATEMSGS" => "priv_msgs.".$phpEx."?mode=read", - "U_SEARCH" => "search.".$phpEx, - "U_MEMBERLIST" => "memberlist.".$phpEx, - "U_FAQ" => "faq.".$phpEx, - "U_VIEWONLINE" => "viewonline.$phpEx", - "U_LOGIN_LOGOUT" => $u_login_logout, + "U_INDEX" => append_sid("index.".$phpEx), + "U_REGISTER" => append_sid("profile.".$phpEx."?mode=register"), + "U_PROFILE" => append_sid("profile.".$phpEx."?mode=editprofile"), + "U_PRIVATEMSGS" => append_sid("priv_msgs.".$phpEx."?mode=read"), + "U_SEARCH" => append_sid("search.".$phpEx), + "U_MEMBERLIST" => append_sid("memberlist.".$phpEx), + "U_FAQ" => append_sid("faq.".$phpEx), + "U_VIEWONLINE" => append_sid("viewonline.$phpEx"), + "U_LOGIN_LOGOUT" => append_sid($u_login_logout), "S_TIMEZONE" => $s_timezone, "S_FORUMS_URL" => POST_FORUM_URL, "S_TOPICS_URL" => POST_TOPIC_URL, "S_USERS_URL" => POST_USERS_URL, + "S_LOGIN_ACTION" => append_sid("login.$phpEx"), + "S_JUMPBOX_ACTION" => append_sid("viewforum.$phpEx"), + "S_PROFILE_ACTION" => append_sid("profile.$phpEx"), "T_HEAD_STYLESHEET" => $theme['head_stylesheet'], "T_BODY_BACKGROUND" => $theme['body_background'], @@ -217,13 +221,18 @@ switch($pagetype) $template->set_filenames(array( "header" => "index_header.tpl", "body" => "index_body.tpl", - "footer" => "index_footer.tpl")); + "footer" => "index_footer.tpl") + ); $template->assign_vars(array( "TOTAL_POSTS" => $total_posts, "TOTAL_USERS" => $total_users, "NEWEST_USER" => $newest_user, "NEWEST_UID" => $newest_uid, - "USERS_BROWSING" => $users_browsing)); + "USERS_BROWSING" => $users_browsing, + + "U_NEWEST_USER_PROFILE" => append_sid("profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=$newest_uid")) + ); + $template->pparse("header"); break; @@ -232,18 +241,20 @@ switch($pagetype) "header" => "viewforum_header.tpl", "body" => "viewforum_body.tpl", "jumpbox" => "jumpbox.tpl", - "footer" => "viewforum_footer.tpl")); + "footer" => "viewforum_footer.tpl") + ); $jumpbox = make_jumpbox(); $template->assign_vars(array( "JUMPBOX_LIST" => $jumpbox, - "JUMPBOX_ACTION" => "viewforum.".$phpEx, - "SELECT_NAME" => POST_FORUM_URL)); + "SELECT_NAME" => POST_FORUM_URL) + ); $template->assign_var_from_handle("JUMPBOX", "jumpbox"); $template->assign_vars(array( "FORUM_ID" => $forum_id, "FORUM_NAME" => $forum_name, "MODERATORS" => $forum_moderators, - "USERS_BROWSING" => $users_browsing)); + "USERS_BROWSING" => $users_browsing) + ); $template->pparse("header"); break; @@ -252,12 +263,13 @@ switch($pagetype) "header" => "viewtopic_header.tpl", "body" => "viewtopic_body.tpl", "jumpbox" => "jumpbox.tpl", - "footer" => "viewtopic_footer.tpl")); + "footer" => "viewtopic_footer.tpl") + ); $jumpbox = make_jumpbox(); $template->assign_vars(array( "JUMPBOX_LIST" => $jumpbox, - "JUMPBOX_ACTION" => "viewforum.".$phpEx, - "SELECT_NAME" => POST_FORUM_URL)); + "SELECT_NAME" => POST_FORUM_URL) + ); $template->assign_var_from_handle("JUMPBOX", "jumpbox"); $template->assign_vars(array( "FORUM_ID" => $forum_id, @@ -265,7 +277,8 @@ switch($pagetype) "TOPIC_ID" => $topic_id, "TOPIC_TITLE" => $topic_title, "POST_FORUM_URL" => POST_FORUM_URL, - "USERS_BROWSING" => $users_browsing)); + "USERS_BROWSING" => $users_browsing) + ); $template->pparse("header"); break; @@ -274,19 +287,23 @@ switch($pagetype) "header" => "viewonline_header.tpl", "body" => "viewonline_body.tpl", "jumpbox" => "jumpbox.tpl", - "footer" => "viewonline_footer.tpl")); + "footer" => "viewonline_footer.tpl") + ); $jumpbox = make_jumpbox(); $template->assign_vars(array( "JUMPBOX_LIST" => $jumpbox, - "JUMPBOX_ACTION" => "viewforum.".$phpEx, - "SELECT_NAME" => POST_FORUM_URL)); + "SELECT_NAME" => POST_FORUM_URL) + ); $template->assign_var_from_handle("JUMPBOX", "jumpbox"); $template->assign_vars(array( "TOTAL_POSTS" => $total_posts, "TOTAL_USERS" => $total_users, "POST_USER_URL" => POST_USERS_URL, "NEWEST_USER" => $newest_user, - "NEWEST_UID" => $newest_uid)); + "NEWEST_UID" => $newest_uid, + + "U_NEWEST_USER_PROFILE" => append_sid("profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=$newest_uid")) + ); $template->pparse("header"); break; @@ -294,17 +311,19 @@ switch($pagetype) $template->set_filenames(array( "header" => "newtopic_header.tpl", "jumpbox" => "jumpbox.tpl", - "body" => "posting_body.tpl")); + "body" => "posting_body.tpl") + ); $jumpbox = make_jumpbox(); $template->assign_vars(array( "JUMPBOX_LIST" => $jumpbox, - "JUMPBOX_ACTION" => "viewforum.".$phpEx, - "SELECT_NAME" => POST_FORUM_URL)); + "SELECT_NAME" => POST_FORUM_URL) + ); $template->assign_var_from_handle("JUMPBOX", "jumpbox"); $template->assign_vars(array( "L_POSTNEWIN" => $l_postnewin, "FORUM_ID" => $forum_id, - "FORUM_NAME" => $forum_name)); + "FORUM_NAME" => $forum_name) + ); $template->pparse("header"); break; @@ -314,20 +333,27 @@ switch($pagetype) $coppa = (!isset($HTTP_POST_VARS['coppa'])) ? FALSE : TRUE; $template->set_filenames(array( - "body" => "agreement.tpl")); + "body" => "agreement.tpl") + ); $template->assign_vars(array( - "COPPA" => $coppa)); + "COPPA" => $coppa, + + "U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true"), + "U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true")) + ); } else { $template->set_filenames(array( - "body" => "profile_add_body.tpl")); + "body" => "profile_add_body.tpl") + ); } break; case 'profile': $template->set_filenames(array( - "body" => "profile_view_body.tpl")); + "body" => "profile_view_body.tpl") + ); break; } diff --git a/phpBB/index.php b/phpBB/index.php index 33211f2ffd..9d7c118290 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -111,7 +111,7 @@ if($total_categories) array( "CAT_ID" => $category_rows[$i]["cat_id"], "CAT_DESC" => stripslashes($category_rows[$i]["cat_title"]), - "U_VIEWCAT" => "index." . $phpEx . "?viewcat=" . $category_rows[$i]['cat_id'] + "U_VIEWCAT" => append_sid("index." . $phpEx . "?viewcat=" . $category_rows[$i]['cat_id']) ) ); @@ -129,8 +129,8 @@ if($total_categories) { $last_post_time = create_date($board_config['default_dateformat'], $forum_rows[$j]["post_time"], $board_config['default_timezone']); $last_post = $last_post_time."
by "; - $last_post .= "".$forum_rows[$j]["username"]." \"View"; + $last_post .= "".$forum_rows[$j]["username"]." \"View"; } else { @@ -158,7 +158,7 @@ if($total_categories) { $moderators_links .= "
"; } - $moderators_links .= "".$forum_mods["forum_".$forum_rows[$j]["forum_id"]."_name"][$mods].""; + $moderators_links .= "".$forum_mods["forum_".$forum_rows[$j]["forum_id"]."_name"][$mods].""; } $template->assign_block_vars("catrow.forumrow", @@ -172,7 +172,7 @@ if($total_categories) "LAST_POST" => $last_post, "MODERATORS" => $moderators_links, - "U_VIEWFORUM" => "viewforum." . $phpEx . "?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id'] . "&" . $forum_rows[$j]['forum_posts']) + "U_VIEWFORUM" => append_sid("viewforum." . $phpEx . "?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id'] . "&" . $forum_rows[$j]['forum_posts'])) ); // "LAST_POST_USER" => "$forum_rows[$j]["username"]", // "U_LAST_POST_USER_PROFILE" => "profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=".$forum_rows[$j]["user_id"]", diff --git a/phpBB/login.php b/phpBB/login.php index 6fa3161bfc..ed35c262b9 100644 --- a/phpBB/login.php +++ b/phpBB/login.php @@ -59,13 +59,13 @@ if(isset($HTTP_POST_VARS['submit']) || isset($HTTP_GET_VARS['submit'])) $session_id = session_begin($rowresult["user_id"], $user_ip, PAGE_INDEX, $session_length, TRUE, $autologin); if($session_id) { - if($forward_page) + if(!empty($HTTP_POST_VARS['forward_page'])) { - header("Location: $forward_page"); + header(append_sid("Location: ".$HTTP_POST_VARS['forward_page'])); } else { - header("Location: index.$phpEx"); + header(append_sid("Location: index.$phpEx")); } } else @@ -89,24 +89,24 @@ if(isset($HTTP_POST_VARS['submit']) || isset($HTTP_GET_VARS['submit'])) { session_end($userdata["session_id"], $userdata["user_id"]); } - if($forward_page) + if(!empty($HTTP_POST_VARS['forward_page'])) { - header("Location: $forward_page"); + header(append_sid("Location: ".$HTTP_POST_VARS['forward_page'])); } else { - header("Location: index.$phpEx"); + header(append_sid("Location: index.$phpEx")); } } else { - if($forward_page) + if(!empty($HTTP_POST_VARS['forward_page'])) { - header("Location: $forward_page"); + header(append_sid("Location: ".$HTTP_POST_VARS['forward_page'])); } else { - header("Location: index.$phpEx"); + header(append_sid("Location: index.$phpEx")); } } } @@ -131,13 +131,12 @@ else $username = ($userdata['user_id'] != ANONYMOUS) ? $userdata['username'] : ""; $template->assign_vars(array( - "L_USERNAME" => $l_username, - "L_PASSWORD" => $l_password, "L_SEND_PASSWORD" => $l_resend_password, - "L_LOGIN" => $l_login, - "U_SEND_PASSWORD" => "sendpassword.".$phpEx, + "FORWARD_PAGE" => $forward_page, - "USERNAME" => $username + "USERNAME" => $username, + + "U_SEND_PASSWORD" => append_sid("sendpassword.".$phpEx) ) ); diff --git a/phpBB/templates/Default/agreement.tpl b/phpBB/templates/Default/agreement.tpl index 99ba618abe..e7f9dfd9e7 100755 --- a/phpBB/templates/Default/agreement.tpl +++ b/phpBB/templates/Default/agreement.tpl @@ -21,9 +21,9 @@
The owners of phpBB.com and the moderators of this forum have the right to remove, edit, move or close any thread for any reason.

-
I Agree to these terms (and am over 13 years of age)   - I Agree to these terms (and am under 13 years of age)   - I do not agree to these terms
+
I Agree to these terms (and am over 13 years of age)   + I Agree to these terms (and am under 13 years of age)   + I do not agree to these terms
diff --git a/phpBB/templates/Default/index_header.tpl b/phpBB/templates/Default/index_header.tpl index 622b26e77b..a7e8ebae14 100644 --- a/phpBB/templates/Default/index_header.tpl +++ b/phpBB/templates/Default/index_header.tpl @@ -7,8 +7,8 @@ {L_POSTEDTOTAL} -{TOTAL_POSTS}- {L_MESSAGES}.
{L_WEHAVE} {TOTAL_USERS} {L_REGUSERS}.
- {L_NEWESTUSER} {NEWEST_USER}
- {L_ARECURRENTLY} {USERS_BROWSING} {L_BROWSING} {L_THEFORUMS}
+ {L_NEWESTUSER} {NEWEST_USER}
+ {L_ARECURRENTLY} {USERS_BROWSING} {L_BROWSING} {L_THEFORUMS}
diff --git a/phpBB/templates/Default/jumpbox.tpl b/phpBB/templates/Default/jumpbox.tpl index de3d93e8f5..72ec34c222 100644 --- a/phpBB/templates/Default/jumpbox.tpl +++ b/phpBB/templates/Default/jumpbox.tpl @@ -1,5 +1,5 @@ - +
Jump To:
\ No newline at end of file diff --git a/phpBB/templates/Default/login_body.tpl b/phpBB/templates/Default/login_body.tpl index d987177de0..0aad58a463 100644 --- a/phpBB/templates/Default/login_body.tpl +++ b/phpBB/templates/Default/login_body.tpl @@ -2,7 +2,7 @@

- +
diff --git a/phpBB/templates/Default/overall_header.tpl b/phpBB/templates/Default/overall_header.tpl index 2e064cf315..c38a8c84b9 100644 --- a/phpBB/templates/Default/overall_header.tpl +++ b/phpBB/templates/Default/overall_header.tpl @@ -19,9 +19,14 @@ .tablebody { font-size: 8pt; } +.tablefooter { + background: #C9C9D8; + color: #000000; + font-size: 8pt; +} .catheader { font-size: 8pt; - background: #CCCCCC; + background: #C5C9CD; color: #000000; } TD { @@ -43,20 +48,20 @@ A:Hover {
Please enter your username and password to login diff --git a/phpBB/templates/PSO/index_header.tpl b/phpBB/templates/PSO/index_header.tpl index 8a76c56f8f..2725e5a53b 100644 --- a/phpBB/templates/PSO/index_header.tpl +++ b/phpBB/templates/PSO/index_header.tpl @@ -1,5 +1,5 @@
- - - + + + diff --git a/phpBB/templates/Default/profile_add_body.tpl b/phpBB/templates/Default/profile_add_body.tpl index cdb9cfaa95..12979b6b5e 100755 --- a/phpBB/templates/Default/profile_add_body.tpl +++ b/phpBB/templates/Default/profile_add_body.tpl @@ -1,5 +1,5 @@ - diff --git a/phpBB/templates/PSO/index_body.tpl b/phpBB/templates/PSO/index_body.tpl index a8945ecc23..4a3526727e 100644 --- a/phpBB/templates/PSO/index_body.tpl +++ b/phpBB/templates/PSO/index_body.tpl @@ -27,8 +27,8 @@ - - + +
{L_USERNAME} :
{L_PASSWORD} :
{L_LOG_ME_IN}       
{L_USERNAME} :
{L_PASSWORD} :
{L_LOG_ME_IN}       
- +
{L_WELCOMETO} {SITENAME}
{LOGIN_STATUS}
[{L_REGISTER}]  - [{L_PROFILE}]  - [{L_SEARCH}]  - [{L_PRIVATEMSGS}]  - [{L_MEMBERLIST}]  - [{L_FAQ}][{L_REGISTER}]  + [{L_PROFILE}]  + [{L_SEARCH}]  + [{L_PRIVATEMSGS}]  + [{L_MEMBERLIST}]  + [{L_FAQ}]
+
diff --git a/phpBB/templates/Default/viewonline_header.tpl b/phpBB/templates/Default/viewonline_header.tpl index 98bac32367..0b2e6081c0 100644 --- a/phpBB/templates/Default/viewonline_header.tpl +++ b/phpBB/templates/Default/viewonline_header.tpl @@ -7,7 +7,7 @@
{L_POSTEDTOTAL} -{TOTAL_POSTS}- {L_MESSAGES}.
{L_WEHAVE} {TOTAL_USERS} {L_REGUSERS}.
- {L_NEWESTUSER} {NEWEST_USER} + {L_NEWESTUSER} {NEWEST_USER}
diff --git a/phpBB/templates/PSO/agreement.tpl b/phpBB/templates/PSO/agreement.tpl index 6ceda17174..51eb55f7f9 100644 --- a/phpBB/templates/PSO/agreement.tpl +++ b/phpBB/templates/PSO/agreement.tpl @@ -7,7 +7,7 @@
- +

While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.

You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.

This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above, they serve only to improve your viewing pleasure. The email address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).

By clicking Register below you agree to be bound by these conditions.




While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.

You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.

This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above, they serve only to improve your viewing pleasure. The email address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).

By clicking Register below you agree to be bound by these conditions.



{TOTAL_USERS_ONLINE}
{LOGGED_IN_USER_LIST}
{L_USERNAME}:    {L_PASSWORD}:    {L_AUTO_LOGIN}    
{L_USERNAME}:    {L_PASSWORD}:    {L_AUTO_LOGIN}    
- +
{SITENAME} {L_INDEX}{SITENAME} {L_INDEX}
\ No newline at end of file diff --git a/phpBB/templates/PSO/jumpbox.tpl b/phpBB/templates/PSO/jumpbox.tpl index ff6cc8d69a..8de4b5e85b 100644 --- a/phpBB/templates/PSO/jumpbox.tpl +++ b/phpBB/templates/PSO/jumpbox.tpl @@ -1,5 +1,5 @@ - +
Jump To:  
\ No newline at end of file diff --git a/phpBB/templates/PSO/login_body.tpl b/phpBB/templates/PSO/login_body.tpl index 5606160865..81660334d3 100644 --- a/phpBB/templates/PSO/login_body.tpl +++ b/phpBB/templates/PSO/login_body.tpl @@ -1,5 +1,5 @@
- +
@@ -16,7 +16,7 @@

Please enter your username and password to login

- + diff --git a/phpBB/templates/PSO/profile_add_body.tpl b/phpBB/templates/PSO/profile_add_body.tpl index 9469c6e004..ff2b4b8ef3 100644 --- a/phpBB/templates/PSO/profile_add_body.tpl +++ b/phpBB/templates/PSO/profile_add_body.tpl @@ -1,5 +1,5 @@
{L_SEND_PASSWORD}
- +
diff --git a/phpBB/templates/PSO/viewtopic_header.tpl b/phpBB/templates/PSO/viewtopic_header.tpl index 9697f0da84..de535d2e71 100644 --- a/phpBB/templates/PSO/viewtopic_header.tpl +++ b/phpBB/templates/PSO/viewtopic_header.tpl @@ -1,5 +1,5 @@
 {L_REGISTRATION_INFO} [{L_ITEMS_REQUIRED}] 
- +
{SITENAME} {L_INDEX} -> {FORUM_NAME} -> {TOPIC_TITLE}{SITENAME} {L_INDEX} -> {FORUM_NAME} -> {TOPIC_TITLE}
\ No newline at end of file diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 4bcf6a4f92..98c55cf796 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -94,7 +94,7 @@ for($x = 0; $x < $db->sql_numrows($result); $x++) if($x > 0) $forum_moderators .= ", "; - $forum_moderators .= "".$forum_row[$x]["username"].""; + $forum_moderators .= "".$forum_row[$x]["username"].""; } if(!isset($start)) @@ -120,7 +120,7 @@ $total_topics = $db->sql_numrows($t_result); // Post URL generation for // templating vars // -$post_new_topic_url = "posting.".$phpEx."?mode=newtopic&".POST_FORUM_URL."=$forum_id"; +$post_new_topic_url = append_sid("posting.".$phpEx."?mode=newtopic&".POST_FORUM_URL."=$forum_id"); $template->assign_vars(array( "U_POST_NEW_TOPIC" => $post_new_topic_url)); @@ -150,7 +150,7 @@ if($total_topics) { if(($i + $board_config['posts_per_page']) >= ($replies + 1)) { - $goto_page.=" ... $times"; + $goto_page.=" ... $times"; } } else @@ -159,7 +159,7 @@ if($total_topics) { $goto_page.= ", "; } - $goto_page.= "$times"; + $goto_page.= "$times"; } $times++; } @@ -172,14 +172,14 @@ if($total_topics) $folder_img = ""; - $view_topic_url = "viewtopic.".$phpEx."?".POST_TOPIC_URL."=".$topic_id."&".$replies; + $view_topic_url = append_sid("viewtopic.".$phpEx."?".POST_TOPIC_URL."=".$topic_id."&".$replies); $topic_poster = stripslashes($topic_rowset[$x]["username"]); - $topic_poster_profile_url = "profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=".$topic_rowset[$x]["user_id"]; + $topic_poster_profile_url = append_sid("profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=".$topic_rowset[$x]["user_id"]); $last_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$x]["post_time"], $board_config['default_timezone']); $last_post_user = $topic_rowset[$x]["user2"]; - $last_post_profile_url = "profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=".$topic_rowset[$x]["id2"]; + $last_post_profile_url = append_sid("profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=".$topic_rowset[$x]["id2"]); $views = $topic_rowset[$x]["topic_views"]; @@ -206,7 +206,7 @@ if($total_topics) { if($next < $topics_count) { - $pagination = "$l_nextpage | "; + $pagination = "$l_nextpage | "; } for($x = 0; $x < $topics_count; $x++) { @@ -218,7 +218,7 @@ if($total_topics) } else { - $pagination .= " $count "; + $pagination .= " $count "; } $count++; if(!($count % 20)) diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php index 31ae163e05..e5b7158756 100644 --- a/phpBB/viewonline.php +++ b/phpBB/viewonline.php @@ -171,7 +171,7 @@ if($online_count) } else { - $location_url = "viewforum.".$phpEx."?".POST_FORUM_URL."=".$onlinerow[$i]['forum_id']; + $location_url = append_sid("viewforum.".$phpEx."?".POST_FORUM_URL."=".$onlinerow[$i]['forum_id']); $location = $onlinerow[$i]['forum_name']; } @@ -192,8 +192,8 @@ if($online_count) "LOGGED_ON" => $logged_on, "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow[$i]['session_time'], $board_config['default__timezone']), "LOCATION" => $location, - "U_USER_PROFILE" => "profile.".$phpEx."?mode=viewprofile&".POST_USERS_URL."=".$onlinerow[$i]['user_id'], - "U_FORUM_LOCATION" => $location_url + "U_USER_PROFILE" => append_sid("profile.".$phpEx."?mode=viewprofile&".POST_USERS_URL."=".$onlinerow[$i]['user_id']), + "U_FORUM_LOCATION" => append_sid($location_url) ) ); } 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 .= " )"; }