1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

Changes related to session code updates

git-svn-id: file:///svn/phpbb/trunk@122 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-03-21 23:25:03 +00:00
parent 1952a83d31
commit 46d7b32640
4 changed files with 30 additions and 54 deletions

View File

@@ -69,6 +69,9 @@ define(POST_TOPIC_URL, 't');
define(POST_FORUM_URL, 'f');
define(POST_USERS_URL, 'u');
// Session parameters
define(AUTOLOGON, 0);
define('BANLIST_TABLE', $table_prefix.'banlist');
define('CATEGORIES_TABLE', $table_prefix.'categories');
define('CONFIG_TABLE', $table_prefix.'config');
@@ -81,7 +84,7 @@ define('POSTS_TABLE', $table_prefix.'posts');
define('POSTS_TEXT_TABLE', $table_prefix.'posts_text');
define('PRIV_MSGS_TABLE', $table_prefix.'priv_msgs');
define('RANKS_TABLE', $table_prefix.'ranks');
define('SESSIONS_TABLE', $table_prefix.'sessions');
define('SESSIONS_TABLE', $table_prefix.'session');
define('THEMES_TABLE', $table_prefix.'themes');
define('TOPICS_TABLE', $table_prefix.'topics');
define('USERS_TABLE', $table_prefix.'users');

View File

@@ -28,9 +28,10 @@ DEFINE(HEADER_INC, TRUE);
$template->set_filenames(array("overall_header" => "overall_header.tpl",
"overall_footer" => "overall_footer.tpl"));
if($user_logged_in)
if($userdata['session_logged_in'])
{
$logged_in_status = "You are logged in as <b>".$userdata["username"]."</b>.";
$logged_in_status .= " [<A HREF=\"login.php?submit=logout\">Logout</A>]";
}
else
{

View File

@@ -41,7 +41,7 @@ switch($pagetype)
}
// Show the overall footer.
if($user_logged_in)
if($userdata['session_logged_in'])
{
$admin_link = "<a href=\"admin/index.php\">Administration Panel</a>";
}