1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-19 15:17:16 +01:00

Page tail updates for viewonline

git-svn-id: file:///svn/phpbb/trunk@151 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-04-15 17:44:46 +00:00
parent 13c7b8d39d
commit 0c49c9569e
2 changed files with 32 additions and 16 deletions

View File

@ -22,36 +22,50 @@
* *
***************************************************************************/ ***************************************************************************/
//
// Load/parse the footer template we need based on pagetype. // Load/parse the footer template we need based on pagetype.
//
switch($pagetype) switch($pagetype)
{ {
case 'index': case 'index':
$template->pparse("footer"); $template->pparse("footer");
break; break;
case 'viewforum': case 'viewforum':
$template->pparse("footer");
break;
case 'viewtopic':
$template->pparse("footer");
break;
case 'viewonline':
$template->pparse("footer");
break;
$template->assign_vars(array("PHPEX" => $phpEx,
"FORUM_ID" => $forum_id));
$template->pparse("footer");
break;
case 'viewtopic':
$template->pparse("footer");
break;
} }
//
// Show the overall footer. // Show the overall footer.
//
if($userdata['session_logged_in']) if($userdata['session_logged_in'])
{ {
$admin_link = "<a href=\"admin/index.php\">Administration Panel</a>"; $admin_link = "<a href=\"admin/index.php\">Administration Panel</a>";
} }
$template->assign_vars(array("PHPBB_VERSION" => "2.0-alpha", $template->assign_vars(array("PHPBB_VERSION" => "2.0-alpha",
"ADMIN_LINK" => $admin_link)); "ADMIN_LINK" => $admin_link));
$template->pparse("overall_footer"); $template->pparse("overall_footer");
//
// Close our DB connection. // Close our DB connection.
//
$db->sql_close(); $db->sql_close();
//
// Output page creation time
//
$mtime = microtime(); $mtime = microtime();
$mtime = explode(" ",$mtime); $mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0]; $mtime = $mtime[1] + $mtime[0];
@ -60,4 +74,6 @@ $totaltime = ($endtime - $starttime);
printf("<center><font size=-2>phpBB Created this page in %f seconds.</font></center>", $totaltime); printf("<center><font size=-2>phpBB Created this page in %f seconds.</font></center>", $totaltime);
exit;
?> ?>

View File

@ -1,5 +1,5 @@
<tr> <tr>
<td> <td align="right">
<table border="0" bgcolor="#000000" cellpadding="0" cellspacing="1"> <table border="0" bgcolor="#000000" cellpadding="0" cellspacing="1">
<tr> <tr>
<td align="right"> <td align="right">