mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Compatibility and template updates
git-svn-id: file:///svn/phpbb/trunk@145 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5ff33e38fe
commit
079fc418f9
3 changed files with 12 additions and 2 deletions
|
@ -107,6 +107,7 @@ if($total_categories)
|
||||||
{
|
{
|
||||||
$template->assign_block_vars("catrow", array("CAT_ID" => $category_rows[$i]["cat_id"],
|
$template->assign_block_vars("catrow", array("CAT_ID" => $category_rows[$i]["cat_id"],
|
||||||
"PHP_SELF" => $PHP_SELF,
|
"PHP_SELF" => $PHP_SELF,
|
||||||
|
"POST_FORUM_URL" => POST_FORUM_URL,
|
||||||
"CAT_DESC" => stripslashes($category_rows[$i]["cat_title"])));
|
"CAT_DESC" => stripslashes($category_rows[$i]["cat_title"])));
|
||||||
|
|
||||||
for($j = 0; $j < $total_forums; $j++)
|
for($j = 0; $j < $total_forums; $j++)
|
||||||
|
|
|
@ -24,6 +24,15 @@
|
||||||
include('extension.inc');
|
include('extension.inc');
|
||||||
include('common.'.$phpEx);
|
include('common.'.$phpEx);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set page ID for session management
|
||||||
|
//
|
||||||
|
$userdata = session_pagestart($user_ip, PAGE_LOGIN, $session_length);
|
||||||
|
init_userprefs($userdata);
|
||||||
|
//
|
||||||
|
// End session management
|
||||||
|
//
|
||||||
|
|
||||||
if(isset($HTTP_POST_VARS['submit']) || isset($HTTP_GET_VARS['submit']))
|
if(isset($HTTP_POST_VARS['submit']) || isset($HTTP_GET_VARS['submit']))
|
||||||
{
|
{
|
||||||
if($HTTP_POST_VARS['submit'] == "Login" && !$userdata['session_logged_in'])
|
if($HTTP_POST_VARS['submit'] == "Login" && !$userdata['session_logged_in'])
|
||||||
|
@ -69,7 +78,7 @@ if(isset($HTTP_POST_VARS['submit']) || isset($HTTP_GET_VARS['submit']))
|
||||||
{
|
{
|
||||||
if($userdata['session_logged_in'])
|
if($userdata['session_logged_in'])
|
||||||
{
|
{
|
||||||
session_end($db, $userdata["session_id"], $userdata["user_id"]);
|
session_end($userdata["session_id"], $userdata["user_id"]);
|
||||||
}
|
}
|
||||||
header("Location: index.$phpEx");
|
header("Location: index.$phpEx");
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<!-- BEGIN forumrow -->
|
<!-- BEGIN forumrow -->
|
||||||
<tr bgcolor="{catrow.forumrow.ROW_COLOR}" class="tablebody">
|
<tr bgcolor="{catrow.forumrow.ROW_COLOR}" class="tablebody">
|
||||||
<td width="5%" align="center" valign="middle">{catrow.forumrow.FOLDER}</td>
|
<td width="5%" align="center" valign="middle">{catrow.forumrow.FOLDER}</td>
|
||||||
<td><a href="viewforum.{PHPEX}?forum_id={catrow.forumrow.FORUM_ID}&{catrow.forumrow.POSTS}">{catrow.forumrow.FORUM_NAME}</a><br>{catrow.forumrow.FORUM_DESC}</td>
|
<td><a href="viewforum.{PHPEX}?{catrow.POST_FORUM_URL}={catrow.forumrow.FORUM_ID}&{catrow.forumrow.POSTS}">{catrow.forumrow.FORUM_NAME}</a><br>{catrow.forumrow.FORUM_DESC}</td>
|
||||||
<td width="5%" align="center" valign="middle">{catrow.forumrow.TOPICS}</td>
|
<td width="5%" align="center" valign="middle">{catrow.forumrow.TOPICS}</td>
|
||||||
<td width="5%" align="center" valign="middle">{catrow.forumrow.POSTS}</td>
|
<td width="5%" align="center" valign="middle">{catrow.forumrow.POSTS}</td>
|
||||||
<td width="15%" align="center" valign="middle">{catrow.forumrow.LAST_POST}</td>
|
<td width="15%" align="center" valign="middle">{catrow.forumrow.LAST_POST}</td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue