2001-02-21 07:38:38 +00:00
|
|
|
<?php
|
2001-04-18 06:26:01 +00:00
|
|
|
/***************************************************************************
|
2001-02-21 07:38:38 +00:00
|
|
|
* page_header.php
|
2001-04-18 06:26:01 +00:00
|
|
|
* -------------------
|
|
|
|
* begin : Saturday, Feb 13, 2001
|
|
|
|
* copyright : (C) 2001 The phpBB Group
|
|
|
|
* email : support@phpbb.com
|
|
|
|
*
|
2001-02-21 07:38:38 +00:00
|
|
|
* $Id$
|
2001-04-18 06:26:01 +00:00
|
|
|
*
|
|
|
|
***************************************************************************/
|
2001-02-21 07:38:38 +00:00
|
|
|
|
2001-08-30 22:20:23 +00:00
|
|
|
/***************************************************************************
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
|
|
|
|
2002-03-18 13:35:23 +00:00
|
|
|
if ( !defined('IN_PHPBB') )
|
|
|
|
{
|
2002-07-14 14:41:55 +00:00
|
|
|
die('Hacking attempt');
|
2002-03-18 13:35:23 +00:00
|
|
|
}
|
|
|
|
|
2002-01-28 17:33:51 +00:00
|
|
|
define('HEADER_INC', TRUE);
|
2001-03-19 01:35:04 +00:00
|
|
|
|
2001-06-30 21:04:37 +00:00
|
|
|
// gzip_compression
|
2002-10-30 00:57:27 +00:00
|
|
|
if ( $config['gzip_compress'] )
|
2001-06-30 21:04:37 +00:00
|
|
|
{
|
2002-08-13 16:34:17 +00:00
|
|
|
if ( extension_loaded('zlib') && strstr($HTTP_USER_AGENT,'compatible') && !headers_sent() )
|
2001-06-30 21:04:37 +00:00
|
|
|
{
|
2002-08-13 16:34:17 +00:00
|
|
|
ob_start('ob_gzhandler');
|
2001-06-30 21:04:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2001-04-19 21:07:47 +00:00
|
|
|
// Generate logged in/logged out status
|
2002-10-20 19:19:07 +00:00
|
|
|
if ( $user->data['user_id'] )
|
2001-02-25 04:02:12 +00:00
|
|
|
{
|
2002-10-04 13:09:10 +00:00
|
|
|
$u_login_logout = 'login.'.$phpEx. $SID . '&logout=true';
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_login_logout = $user->lang['Logout'] . ' [ ' . $user->data['username'] . ' ]';
|
2001-02-25 04:02:12 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-10-04 13:09:10 +00:00
|
|
|
$u_login_logout = 'login.'.$phpEx . $SID;
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_login_logout = $user->lang['Login'];
|
2001-02-25 04:02:12 +00:00
|
|
|
}
|
2001-02-27 18:50:36 +00:00
|
|
|
|
2002-10-04 13:09:10 +00:00
|
|
|
// Last visit date/time
|
2002-10-20 19:19:07 +00:00
|
|
|
$s_last_visit = ( $user->data['user_id'] ) ? $user->format_date($user->data['session_last_visit']) : '';
|
2001-04-28 20:14:05 +00:00
|
|
|
|
2002-10-04 13:09:10 +00:00
|
|
|
// Get users online list
|
2001-08-09 23:26:03 +00:00
|
|
|
$userlist_ary = array();
|
|
|
|
$userlist_visible = array();
|
2002-01-27 01:20:42 +00:00
|
|
|
|
2001-07-01 15:22:51 +00:00
|
|
|
$logged_visible_online = 0;
|
|
|
|
$logged_hidden_online = 0;
|
2001-04-28 20:14:05 +00:00
|
|
|
$guests_online = 0;
|
2002-03-22 18:46:31 +00:00
|
|
|
$online_userlist = '';
|
2002-01-27 01:20:42 +00:00
|
|
|
|
2002-01-11 14:36:34 +00:00
|
|
|
$prev_user_id = 0;
|
2002-03-01 16:48:13 +00:00
|
|
|
$prev_user_ip = '';
|
2002-10-20 19:19:07 +00:00
|
|
|
|
|
|
|
$reading_sql = '';
|
|
|
|
if ( !empty($_GET['f']) || !empty($_GET['t']) )
|
|
|
|
{
|
|
|
|
$reading_sql = "AND s.session_page LIKE '%" . ( ( !empty($_GET['t']) ) ? 't=' . intval($_GET['t']) : 'f=' . intval($_GET['f']) ) . "%'";
|
|
|
|
}
|
|
|
|
|
2002-10-04 13:09:10 +00:00
|
|
|
$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_colour, s.session_ip
|
|
|
|
FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE ." s
|
|
|
|
WHERE s.session_time >= ".( time() - 300 ) . "
|
2002-10-20 19:19:07 +00:00
|
|
|
$reading_sql
|
2002-10-04 13:09:10 +00:00
|
|
|
AND u.user_id = s.session_user_id
|
|
|
|
ORDER BY u.username ASC, s.session_ip ASC";
|
|
|
|
$result = $db->sql_query($sql, false);
|
2001-08-09 23:26:03 +00:00
|
|
|
|
2001-10-14 18:20:40 +00:00
|
|
|
while( $row = $db->sql_fetchrow($result) )
|
2001-04-28 20:14:05 +00:00
|
|
|
{
|
2002-01-11 14:36:34 +00:00
|
|
|
// User is logged in and therefor not a guest
|
2002-10-20 19:19:07 +00:00
|
|
|
if ($row['user_id'] != ANONYMOUS)
|
2001-04-28 20:14:05 +00:00
|
|
|
{
|
2002-01-11 14:36:34 +00:00
|
|
|
// Skip multiple sessions for one user
|
2002-03-31 00:06:34 +00:00
|
|
|
if ( $row['user_id'] != $prev_user_id )
|
2001-07-01 15:22:51 +00:00
|
|
|
{
|
2002-07-14 14:41:55 +00:00
|
|
|
if ( $row['user_colour'] )
|
2002-01-12 01:03:01 +00:00
|
|
|
{
|
2002-07-14 14:41:55 +00:00
|
|
|
$row['username'] = '<b style="color:#' . $row['user_colour'] . '">' . $row['username'] . '</b>';
|
2002-01-12 01:03:01 +00:00
|
|
|
}
|
|
|
|
|
2002-03-31 00:06:34 +00:00
|
|
|
if ( $row['user_allow_viewonline'] )
|
2002-01-11 14:36:34 +00:00
|
|
|
{
|
2002-07-14 14:41:55 +00:00
|
|
|
$user_online_link = '<a href="' . "profile.$phpEx$SID&mode=viewprofile&u=" . $row['user_id'] . '">' . $row['username'] . '</a>';
|
2002-01-11 14:36:34 +00:00
|
|
|
$logged_visible_online++;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-07-14 14:41:55 +00:00
|
|
|
$user_online_link = '<a href="' . "profile.$phpEx$SID&mode=viewprofile&u=" . $row['user_id'] . '"><i>' . $row['username'] . '</i></a>';
|
2002-01-11 14:36:34 +00:00
|
|
|
$logged_hidden_online++;
|
|
|
|
}
|
2002-08-13 16:34:17 +00:00
|
|
|
|
2002-10-08 20:06:55 +00:00
|
|
|
if ( $row['user_allow_viewonline'] || $auth->acl_get('a_') )
|
2002-01-11 14:36:34 +00:00
|
|
|
{
|
2002-03-31 00:06:34 +00:00
|
|
|
$online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link;
|
2002-01-11 14:36:34 +00:00
|
|
|
}
|
2001-07-01 15:22:51 +00:00
|
|
|
}
|
2002-03-31 00:06:34 +00:00
|
|
|
|
|
|
|
$prev_user_id = $row['user_id'];
|
2001-04-28 20:14:05 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-03-01 16:48:13 +00:00
|
|
|
// Skip multiple sessions for one user
|
2002-03-31 00:06:34 +00:00
|
|
|
if ( $row['session_ip'] != $prev_session_ip )
|
2002-03-01 16:48:13 +00:00
|
|
|
{
|
|
|
|
$guests_online++;
|
|
|
|
}
|
2001-04-28 20:14:05 +00:00
|
|
|
}
|
2002-01-12 01:03:01 +00:00
|
|
|
|
2002-03-01 16:48:13 +00:00
|
|
|
$prev_session_ip = $row['session_ip'];
|
2001-04-28 22:46:00 +00:00
|
|
|
}
|
2001-07-22 20:42:34 +00:00
|
|
|
|
2002-03-31 00:06:34 +00:00
|
|
|
if ( empty($online_userlist) )
|
2002-01-27 01:20:42 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$online_userlist = $user->lang['None'];
|
2002-01-27 01:20:42 +00:00
|
|
|
}
|
2002-08-13 16:34:17 +00:00
|
|
|
|
2002-10-05 00:08:47 +00:00
|
|
|
if ( empty($_GET['f']) )
|
2002-08-13 16:34:17 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$online_userlist = $user->lang['Registered_users'] . ' ' . $online_userlist;
|
2002-08-13 16:34:17 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_online = ( $guests_online == 1 ) ? $user->lang['Browsing_forum_guest'] : $user->lang['Browsing_forum_guests'];
|
2002-08-13 16:34:17 +00:00
|
|
|
$online_userlist = sprintf($l_online, $online_userlist, $guests_online);
|
|
|
|
}
|
2002-01-25 22:16:08 +00:00
|
|
|
|
|
|
|
$total_online_users = $logged_visible_online + $logged_hidden_online + $guests_online;
|
|
|
|
|
2002-10-30 00:57:27 +00:00
|
|
|
if ( $total_online_users > $config['record_online_users'])
|
2002-01-25 21:53:05 +00:00
|
|
|
{
|
2002-10-30 00:57:27 +00:00
|
|
|
$config['record_online_users'] = $total_online_users;
|
|
|
|
$config['record_online_date'] = time();
|
2002-03-31 00:06:34 +00:00
|
|
|
|
2002-01-25 21:53:05 +00:00
|
|
|
$sql = "UPDATE " . CONFIG_TABLE . "
|
|
|
|
SET config_value = '$total_online_users'
|
|
|
|
WHERE config_name = 'record_online_users'";
|
2002-07-14 14:41:55 +00:00
|
|
|
$db->sql_query($sql);
|
2002-01-25 23:22:38 +00:00
|
|
|
|
2002-01-25 21:53:05 +00:00
|
|
|
$sql = "UPDATE " . CONFIG_TABLE . "
|
2002-10-30 00:57:27 +00:00
|
|
|
SET config_value = '" . $config['record_online_date'] . "'
|
2002-01-25 21:53:05 +00:00
|
|
|
WHERE config_name = 'record_online_date'";
|
2002-07-14 14:41:55 +00:00
|
|
|
$db->sql_query($sql);
|
2002-01-25 21:53:05 +00:00
|
|
|
}
|
|
|
|
|
2002-03-31 00:06:34 +00:00
|
|
|
if ( $total_online_users == 0 )
|
2001-12-24 16:34:27 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_t_user_s = $user->lang['Online_users_zero_total'];
|
2001-12-24 16:34:27 +00:00
|
|
|
}
|
2002-03-31 00:06:34 +00:00
|
|
|
else if ( $total_online_users == 1 )
|
2001-12-24 16:34:27 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_t_user_s = $user->lang['Online_user_total'];
|
2001-12-24 16:34:27 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_t_user_s = $user->lang['Online_users_total'];
|
2001-12-24 16:34:27 +00:00
|
|
|
}
|
|
|
|
|
2002-03-31 00:06:34 +00:00
|
|
|
if ( $logged_visible_online == 0 )
|
2001-12-24 16:34:27 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_r_user_s = $user->lang['Reg_users_zero_total'];
|
2001-12-24 16:34:27 +00:00
|
|
|
}
|
2002-03-31 00:06:34 +00:00
|
|
|
else if ( $logged_visible_online == 1 )
|
2001-12-24 16:34:27 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_r_user_s = $user->lang['Reg_user_total'];
|
2001-12-24 16:34:27 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_r_user_s = $user->lang['Reg_users_total'];
|
2001-12-24 16:34:27 +00:00
|
|
|
}
|
|
|
|
|
2002-03-31 00:06:34 +00:00
|
|
|
if ( $logged_hidden_online == 0 )
|
2001-12-24 16:34:27 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_h_user_s = $user->lang['Hidden_users_zero_total'];
|
2001-12-24 16:34:27 +00:00
|
|
|
}
|
2002-03-31 00:06:34 +00:00
|
|
|
else if ( $logged_hidden_online == 1 )
|
2001-12-24 16:34:27 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_h_user_s = $user->lang['Hidden_user_total'];
|
2001-12-24 16:34:27 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_h_user_s = $user->lang['Hidden_users_total'];
|
2001-12-24 16:34:27 +00:00
|
|
|
}
|
|
|
|
|
2002-03-31 00:06:34 +00:00
|
|
|
if ( $guests_online == 0 )
|
2001-12-24 16:34:27 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_g_user_s = $user->lang['Guest_users_zero_total'];
|
2001-12-24 16:34:27 +00:00
|
|
|
}
|
2002-03-31 00:06:34 +00:00
|
|
|
else if ( $guests_online == 1 )
|
2001-12-24 16:34:27 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_g_user_s = $user->lang['Guest_user_total'];
|
2001-12-24 16:34:27 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_g_user_s = $user->lang['Guest_users_total'];
|
2001-12-24 16:34:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$l_online_users = sprintf($l_t_user_s, $total_online_users);
|
2002-08-13 16:34:17 +00:00
|
|
|
$l_online_users .= sprintf($l_r_user_s, $logged_visible_online);
|
|
|
|
$l_online_users .= sprintf($l_h_user_s, $logged_hidden_online);
|
|
|
|
$l_online_users .= sprintf($l_g_user_s, $guests_online);
|
2001-04-28 20:14:05 +00:00
|
|
|
|
2002-10-20 19:19:07 +00:00
|
|
|
// Obtain number of new private messages if user is logged in
|
|
|
|
if ($user->data['user_id'] != ANONYMOUS)
|
2001-06-11 00:11:13 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
if ($user->data['user_new_privmsg'])
|
2001-06-11 00:11:13 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_message_new = ( $user->data['user_new_privmsg'] == 1 ) ? $user->lang['New_pm'] : $user->lang['New_pms'];
|
|
|
|
$l_privmsgs_text = sprintf($l_message_new, $user->data['user_new_privmsg']);
|
2001-10-14 18:20:40 +00:00
|
|
|
|
2002-10-20 19:19:07 +00:00
|
|
|
if ( $user->data['user_last_privmsg'] > $user->data['session_last_visit'] )
|
2001-11-19 01:04:58 +00:00
|
|
|
{
|
|
|
|
$sql = "UPDATE " . USERS_TABLE . "
|
2002-10-20 19:19:07 +00:00
|
|
|
SET user_last_privmsg = " . $user->data['session_last_visit'] . "
|
|
|
|
WHERE user_id = " . $user->data['user_id'];
|
2002-07-14 14:41:55 +00:00
|
|
|
$db->sql_query($sql);
|
2001-06-11 00:11:13 +00:00
|
|
|
|
2001-12-29 16:20:25 +00:00
|
|
|
$s_privmsg_new = 1;
|
2001-11-19 01:04:58 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$s_privmsg_new = 0;
|
|
|
|
}
|
2001-06-11 00:11:13 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_privmsgs_text = $user->lang['No_new_pm'];
|
2001-11-19 01:04:58 +00:00
|
|
|
$s_privmsg_new = 0;
|
|
|
|
}
|
|
|
|
|
2002-10-20 19:19:07 +00:00
|
|
|
if ( $user->data['user_unread_privmsg'] )
|
2001-11-19 01:04:58 +00:00
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_message_unread = ( $user->data['user_unread_privmsg'] == 1 ) ? $user->lang['Unread_pm'] : $user->lang['Unread_pms'];
|
|
|
|
$l_privmsgs_text_unread = sprintf($l_message_unread, $user->data['user_unread_privmsg']);
|
2001-11-19 01:04:58 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_privmsgs_text_unread = $user->lang['No_unread_pm'];
|
2001-06-11 00:11:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2002-10-20 19:19:07 +00:00
|
|
|
$l_privmsgs_text = $user->lang['Login_check_pm'];
|
2002-03-31 00:06:34 +00:00
|
|
|
$l_privmsgs_text_unread = '';
|
2001-11-19 01:04:58 +00:00
|
|
|
$s_privmsg_new = 0;
|
2001-06-11 00:11:13 +00:00
|
|
|
}
|
|
|
|
|
2001-11-26 12:09:37 +00:00
|
|
|
// Generate HTML required for Mozilla Navigation bar
|
|
|
|
$nav_links_html = '';
|
2002-10-17 02:50:50 +00:00
|
|
|
/*
|
2001-12-29 16:20:25 +00:00
|
|
|
$nav_link_proto = '<link rel="%s" href="%s" title="%s" />' . "\n";
|
2002-07-14 14:41:55 +00:00
|
|
|
foreach ( $nav_links as $nav_item => $nav_array )
|
2001-11-26 12:09:37 +00:00
|
|
|
{
|
2002-03-31 00:06:34 +00:00
|
|
|
if ( !empty($nav_array['url']) )
|
2001-11-26 12:09:37 +00:00
|
|
|
{
|
|
|
|
$nav_links_html .= sprintf($nav_link_proto, $nav_item, $nav_array['url'], $nav_array['title']);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// We have a nested array, used for items like <link rel='chapter'> that can occur more than once.
|
2002-07-14 14:41:55 +00:00
|
|
|
foreach ( $nav_array as $key => $nested_array )
|
2002-08-13 16:34:17 +00:00
|
|
|
{
|
2001-11-26 12:09:37 +00:00
|
|
|
$nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']);
|
|
|
|
}
|
|
|
|
}
|
2002-08-13 16:34:17 +00:00
|
|
|
}
|
2002-07-14 14:41:55 +00:00
|
|
|
*/
|
2002-10-20 19:19:07 +00:00
|
|
|
|
2001-07-17 14:30:08 +00:00
|
|
|
// The following assigns all _common_ variables that may be used at any point
|
2002-03-31 00:06:34 +00:00
|
|
|
// in a template.
|
2001-04-19 21:07:47 +00:00
|
|
|
$template->assign_vars(array(
|
2002-10-30 00:57:27 +00:00
|
|
|
'SITENAME' => $config['sitename'],
|
|
|
|
'SITE_DESCRIPTION' => $config['site_desc'],
|
2002-10-20 19:19:07 +00:00
|
|
|
'PAGE_TITLE' => $page_title,
|
|
|
|
'LAST_VISIT_DATE' => sprintf($user->lang['You_last_visit'], $s_last_visit),
|
|
|
|
'CURRENT_TIME' => sprintf($user->lang['Current_time'], $user->format_date(time())),
|
|
|
|
'TOTAL_USERS_ONLINE' => $l_online_users,
|
|
|
|
'LOGGED_IN_USER_LIST' => $online_userlist,
|
2002-10-30 00:57:27 +00:00
|
|
|
'RECORD_USERS' => sprintf($user->lang['Record_online_users'], $config['record_online_users'], $user->format_date($config['record_online_date'])),
|
2002-10-20 19:19:07 +00:00
|
|
|
'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text,
|
|
|
|
'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,
|
|
|
|
'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread,
|
|
|
|
|
|
|
|
'L_USERNAME' => $user->lang['Username'],
|
|
|
|
'L_PASSWORD' => $user->lang['Password'],
|
|
|
|
'L_LOGIN_LOGOUT' => $l_login_logout,
|
|
|
|
'L_LOGIN' => $user->lang['Login'],
|
|
|
|
'L_LOG_ME_IN' => $user->lang['Log_me_in'],
|
|
|
|
'L_AUTO_LOGIN' => $user->lang['Log_me_in'],
|
2002-10-26 21:56:33 +00:00
|
|
|
'L_INDEX' => $user->lang['Forum_Index'],
|
2002-10-20 19:19:07 +00:00
|
|
|
'L_FAQ' => $user->lang['FAQ'],
|
|
|
|
'L_REGISTER' => $user->lang['Register'],
|
|
|
|
'L_PROFILE' => $user->lang['Profile'],
|
|
|
|
'L_SEARCH' => $user->lang['Search'],
|
|
|
|
'L_PRIVATEMSGS' => $user->lang['Private_Messages'],
|
|
|
|
'L_MEMBERLIST' => $user->lang['Memberlist'],
|
|
|
|
'L_USERGROUPS' => $user->lang['Usergroups'],
|
|
|
|
'L_SEARCH_NEW' => $user->lang['Search_new'],
|
|
|
|
'L_SEARCH_SELF' => $user->lang['Search_your_posts'],
|
|
|
|
'L_WHO_IS_ONLINE' => $user->lang['Who_is_Online'],
|
|
|
|
'L_SEARCH_UNANSWERED' => $user->lang['Search_unanswered'],
|
|
|
|
|
|
|
|
'U_PRIVATEMSGS' => 'privmsg.'.$phpEx.$SID.'&folder=inbox',
|
|
|
|
'U_MEMBERLIST' => 'memberlist.'.$phpEx.$SID,
|
|
|
|
'U_VIEWONLINE' => 'viewonline.'.$phpEx.$SID,
|
2002-07-14 14:41:55 +00:00
|
|
|
'U_MEMBERSLIST' => 'memberlist.'.$phpEx.$SID,
|
2002-10-20 19:19:07 +00:00
|
|
|
'U_GROUP_CP' => 'groupcp.'.$phpEx.$SID,
|
|
|
|
'U_LOGIN_LOGOUT'=> $u_login_logout,
|
|
|
|
'U_INDEX' => 'index.'.$phpEx.$SID,
|
|
|
|
'U_SEARCH' => 'search.'.$phpEx.$SID,
|
|
|
|
'U_REGISTER' => 'profile.'.$phpEx.$SID.'&mode=register',
|
|
|
|
'U_PROFILE' => 'profile.'.$phpEx.$SID.'&mode=editprofile',
|
|
|
|
'U_MODCP' => 'modcp.'.$phpEx.$SID,
|
|
|
|
'U_FAQ' => 'faq.'.$phpEx.$SID,
|
|
|
|
'U_SEARCH_SELF' => 'search.'.$phpEx.$SID.'&search_id=egosearch',
|
|
|
|
'U_SEARCH_NEW' => 'search.'.$phpEx.$SID.'&search_id=newposts',
|
|
|
|
'U_PRIVATEMSGS_POPUP' => 'privmsg.'.$phpEx.$SID.'&mode=newpm',
|
|
|
|
'U_SEARCH_UNANSWERED' => 'search.'.$phpEx.$SID.'&search_id=unanswered',
|
|
|
|
|
|
|
|
'S_USER_LOGGED_IN' => ( $user->data['user_id'] ) ? true : false,
|
|
|
|
'S_USER_PM_POPUP' => ( !empty($user->data['user_popup_pm']) ) ? true : false,
|
|
|
|
'S_USER_BROWSER' => $user->data['session_browser'],
|
|
|
|
'S_CONTENT_DIRECTION' => $user->lang['DIRECTION'],
|
|
|
|
'S_CONTENT_ENCODING' => $user->lang['ENCODING'],
|
|
|
|
'S_CONTENT_DIR_LEFT' => $user->lang['LEFT'],
|
|
|
|
'S_CONTENT_DIR_RIGHT' => $user->lang['RIGHT'],
|
|
|
|
'S_LOGIN_ACTION' => 'login.'.$phpEx.$SID,
|
2002-10-30 00:57:27 +00:00
|
|
|
'S_TIMEZONE' => ( $user->data['user_dst'] ) ? sprintf($user->lang['All_times'], $user->lang[floatval($config['board_timezone'])], $user->lang['tz']['dst']) : sprintf($user->lang['All_times'], $user->lang[floatval($config['board_timezone'])], ''),
|
2002-10-20 19:19:07 +00:00
|
|
|
|
|
|
|
'T_STYLESHEET_DATA' => $user->theme['css_data'],
|
|
|
|
'T_STYLESHEET_LINK' => 'templates/' . $user->theme['css_external'],
|
2001-11-21 16:00:04 +00:00
|
|
|
|
2002-07-14 14:41:55 +00:00
|
|
|
'NAV_LINKS' => $nav_links_html)
|
|
|
|
);
|
2002-03-31 00:06:34 +00:00
|
|
|
|
2002-10-30 00:57:27 +00:00
|
|
|
/*if ( $config['send_encoding'] )
|
2002-10-20 19:19:07 +00:00
|
|
|
{
|
|
|
|
header ('Content-type: text/html; charset: ' . $user->lang['ENCODING']);
|
|
|
|
}*/
|
2002-04-01 13:23:42 +00:00
|
|
|
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
|
2002-03-31 00:06:34 +00:00
|
|
|
header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
|
2002-03-22 18:46:31 +00:00
|
|
|
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
2002-07-14 14:41:55 +00:00
|
|
|
header ('Pragma: private');
|
2001-02-21 07:38:38 +00:00
|
|
|
|
2002-03-31 00:06:34 +00:00
|
|
|
?>
|