From 77fd1f51a3c5f5a52f72ef8a299fe368228e2285 Mon Sep 17 00:00:00 2001 From: vdigital Date: Fri, 23 May 2008 21:05:41 +0000 Subject: git-svn-id: http://piwigo.org/svn/trunk@2357 68402e56-0260-453c-a942-63ccdbb3a9ee --- BSF/include/page_tail.php | 74 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 BSF/include/page_tail.php (limited to 'BSF/include/page_tail.php') diff --git a/BSF/include/page_tail.php b/BSF/include/page_tail.php new file mode 100644 index 000000000..670d23a2e --- /dev/null +++ b/BSF/include/page_tail.php @@ -0,0 +1,74 @@ +set_filenames(array('tail'=>'footer.tpl')); + +trigger_action('loc_begin_page_tail'); + +$template->assign( + array( + 'VERSION' => $conf['show_version'] ? PHPWG_VERSION : '', + 'PHPWG_URL' => PHPWG_URL, + )); + +//--------------------------------------------------------------------- contact + +if (!is_a_guest()) +{ + $template->assign( + 'CONTACT_MAIL', get_webmaster_mail_address() + ); +} + +//------------------------------------------------------------- generation time +$debug_vars = array(); + +if ($conf['show_queries']) +{ + $debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) ); +} + +if ($conf['show_gt']) +{ + if (!isset($page['count_queries'])) + { + $page['count_queries'] = 0; + $page['queries_time'] = 0; + } + $time = get_elapsed_time($t2, get_moment()); + + $debug_vars = array_merge($debug_vars, + array('TIME' => $time, + 'NB_QUERIES' => $page['count_queries'], + 'SQL_TIME' => number_format($page['queries_time'],3,'.',' ').' s') + ); +} + +$template->assign('debug', $debug_vars ); + +trigger_action('loc_end_page_tail'); +// +// Generate the page +// +$template->parse('tail'); +$template->p(); +?> \ No newline at end of file -- cgit v1.2.3