mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
Allowing old style URLs
git-svn-id: file:///svn/phpbb/trunk@1778 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6a065ee54f
commit
95fd595371
2 changed files with 10 additions and 1 deletions
|
@ -31,6 +31,10 @@ if( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_UR
|
||||||
{
|
{
|
||||||
$forum_id = ( isset($HTTP_GET_VARS[POST_FORUM_URL]) ) ? intval($HTTP_GET_VARS[POST_FORUM_URL]) : intval($HTTP_POST_VARS[POST_FORUM_URL]);
|
$forum_id = ( isset($HTTP_GET_VARS[POST_FORUM_URL]) ) ? intval($HTTP_GET_VARS[POST_FORUM_URL]) : intval($HTTP_POST_VARS[POST_FORUM_URL]);
|
||||||
}
|
}
|
||||||
|
else if( isset($HTTP_GET_VARS['forum']))
|
||||||
|
{
|
||||||
|
$forum_id = $HTTP_GET_VARS['forum'];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$forum_id = "";
|
$forum_id = "";
|
||||||
|
@ -669,4 +673,4 @@ $template->pparse("body");
|
||||||
//
|
//
|
||||||
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -32,6 +32,11 @@ if(isset($HTTP_GET_VARS[POST_TOPIC_URL]))
|
||||||
{
|
{
|
||||||
$topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]);
|
$topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]);
|
||||||
}
|
}
|
||||||
|
else if(isset($HTTP_GET_VARS['topic']))
|
||||||
|
{
|
||||||
|
$topic_id = intval($HTTP_GET_VARS['topic']);
|
||||||
|
}
|
||||||
|
|
||||||
if(isset($HTTP_GET_VARS[POST_POST_URL]))
|
if(isset($HTTP_GET_VARS[POST_POST_URL]))
|
||||||
{
|
{
|
||||||
$post_id = intval($HTTP_GET_VARS[POST_POST_URL]);
|
$post_id = intval($HTTP_GET_VARS[POST_POST_URL]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue