1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-13 02:55:20 +02:00

Changes related to message.php

git-svn-id: file:///svn/phpbb/trunk@557 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
uid42062 2001-07-04 22:44:15 +00:00
parent da911fcfdd
commit 3aa2873131
2 changed files with 12 additions and 4 deletions

View File

@ -56,8 +56,8 @@ if($board_config['gzip_compress'])
// Parse and show the overall header.
//
$template->set_filenames(array(
"overall_header" => "overall_header.tpl",
"overall_footer" => "overall_footer.tpl"));
"overall_header" => "overall_header.tpl")
);
//
// Generate logged in/logged out status
@ -109,7 +109,7 @@ $sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, s.session_logged_
$result = $db->sql_query($sql);
if(!$result)
{
error_die(SQL_QUERY, "Couldn't obtain user/online information.", __LINE__, __FILE__);
message_die(GENERAL_ERROR, "Couldn't obtain user/online information.", "", __LINE__, __FILE__, $sql);
}
$logged_visible_online = 0;
@ -161,7 +161,7 @@ if($userdata['session_logged_in'])
$result_pm = $db->sql_query($sql);
if(!$result_pm)
{
error_die(SQL_QUERY, "Couldn't obtain user/online information.", __LINE__, __FILE__);
message_die(GENERAL_MESSAGE, "Couldn't obtain user/online information.", "", __LINE__, __FILE__, $sql);
}
if($pm_result = $db->sql_fetchrow($result_pm))
{

View File

@ -30,6 +30,11 @@ if($userdata['user_level'] == ADMIN)
$admin_link = "<a href=\"admin/index.$phpEx\">Administration Panel</a>";
}
$current_time = time();
$template->set_filenames(array(
"overall_footer" => "overall_footer.tpl")
);
$template->assign_vars(array(
"PHPBB_VERSION" => "2.0-alpha",
"ADMIN_LINK" => $admin_link));
@ -59,6 +64,9 @@ printf("<center><font size=-2>phpBB Created this page in %f seconds.</font></cen
//
if($do_gzip_compress)
{
//
// Borrowed from php.net!
//
$gzip_contents = ob_get_contents();
ob_end_clean();