diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-04-15 17:44:46 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-04-15 17:44:46 +0000 |
| commit | 0c49c9569ee99ba66388d4d1c64e5716cb3dc7cd (patch) | |
| tree | 44176950f7997db5d23a48c1edbdda723e74feef | |
| parent | 13c7b8d39d5667b5fded7ff805ebc0337464f773 (diff) | |
| download | forums-0c49c9569ee99ba66388d4d1c64e5716cb3dc7cd.tar forums-0c49c9569ee99ba66388d4d1c64e5716cb3dc7cd.tar.gz forums-0c49c9569ee99ba66388d4d1c64e5716cb3dc7cd.tar.bz2 forums-0c49c9569ee99ba66388d4d1c64e5716cb3dc7cd.tar.xz forums-0c49c9569ee99ba66388d4d1c64e5716cb3dc7cd.zip | |
Page tail updates for viewonline
git-svn-id: file:///svn/phpbb/trunk@151 89ea8834-ac86-4346-8a33-228a782c2dd0
| -rw-r--r-- | phpBB/includes/page_tail.php | 46 | ||||
| -rw-r--r-- | phpBB/templates/Default/viewonline_footer.tpl | 2 |
2 files changed, 32 insertions, 16 deletions
diff --git a/phpBB/includes/page_tail.php b/phpBB/includes/page_tail.php index 9adf612948..fae8635166 100644 --- a/phpBB/includes/page_tail.php +++ b/phpBB/includes/page_tail.php @@ -22,36 +22,50 @@ * ***************************************************************************/ +// // Load/parse the footer template we need based on pagetype. +// switch($pagetype) { - case 'index': - $template->pparse("footer"); - break; - - case 'viewforum': - - $template->assign_vars(array("PHPEX" => $phpEx, - "FORUM_ID" => $forum_id)); - $template->pparse("footer"); - break; - case 'viewtopic': - $template->pparse("footer"); - break; + case 'index': + $template->pparse("footer"); + break; + + case 'viewforum': + $template->pparse("footer"); + break; + + case 'viewtopic': + $template->pparse("footer"); + break; + + case 'viewonline': + $template->pparse("footer"); + break; + } +// // Show the overall footer. +// 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", - "ADMIN_LINK" => $admin_link)); + "ADMIN_LINK" => $admin_link)); + $template->pparse("overall_footer"); +// // Close our DB connection. +// $db->sql_close(); + +// +// Output page creation time +// $mtime = microtime(); $mtime = explode(" ",$mtime); $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); +exit; + ?> diff --git a/phpBB/templates/Default/viewonline_footer.tpl b/phpBB/templates/Default/viewonline_footer.tpl index 9744b9c3d1..bb22397c56 100644 --- a/phpBB/templates/Default/viewonline_footer.tpl +++ b/phpBB/templates/Default/viewonline_footer.tpl @@ -1,5 +1,5 @@ <tr> - <td> + <td align="right"> <table border="0" bgcolor="#000000" cellpadding="0" cellspacing="1"> <tr> <td align="right"> |
