From 6c17dca2469dc4683fb35dbf659a249f2272a151 Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Thu, 19 Apr 2001 06:24:23 +0000 Subject: [PATCH] Added current time to overall footer git-svn-id: file:///svn/phpbb/trunk@181 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/page_tail.php | 48 +++++++++++----------- phpBB/templates/Default/overall_footer.tpl | 5 ++- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/phpBB/includes/page_tail.php b/phpBB/includes/page_tail.php index fae8635166..4d0fd5fcf3 100644 --- a/phpBB/includes/page_tail.php +++ b/phpBB/includes/page_tail.php @@ -1,40 +1,40 @@ pparse("footer"); break; - + case 'viewforum': $template->pparse("footer"); break; - + case 'viewtopic': $template->pparse("footer"); break; @@ -48,12 +48,14 @@ switch($pagetype) // // Show the overall footer. // -if($userdata['session_logged_in']) +if($userdata['session_logged_in']) { $admin_link = "Administration Panel"; } +$current_time = time(); $template->assign_vars(array("PHPBB_VERSION" => "2.0-alpha", - "ADMIN_LINK" => $admin_link)); + "CURRENT_TIME" => create_date($date_format, $current_time, $sys_timezone), + "ADMIN_LINK" => $admin_link)); $template->pparse("overall_footer"); diff --git a/phpBB/templates/Default/overall_footer.tpl b/phpBB/templates/Default/overall_footer.tpl index 28ca10c34d..021f0b558f 100644 --- a/phpBB/templates/Default/overall_footer.tpl +++ b/phpBB/templates/Default/overall_footer.tpl @@ -3,11 +3,12 @@
{ADMIN_LINK}
Powered by: phpBB Version {PHPBB_VERSION}
- Copyright © 2001 The phpBB Group
+ Copyright © 2001 The phpBB Group
+ The current time is: {CURRENT_TIME} - +