source: trunk/include/page_tail.php @ 1685

Last change on this file since 1685 was 1595, checked in by rvelices, 18 years ago
  • added trigger_action in menubar and page_tail (begin and end)
  • small cosmetic change in menubar to simplify life for some plugin features
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | PhpWebGallery - a PHP based picture gallery                           |
4// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
5// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
6// +-----------------------------------------------------------------------+
7// | branch        : BSF (Best So Far)
8// | file          : $RCSfile$
9// | last update   : $Date: 2006-11-07 00:55:36 +0000 (Tue, 07 Nov 2006) $
10// | last modifier : $Author: rvelices $
11// | revision      : $Revision: 1595 $
12// +-----------------------------------------------------------------------+
13// | This program is free software; you can redistribute it and/or modify  |
14// | it under the terms of the GNU General Public License as published by  |
15// | the Free Software Foundation                                          |
16// |                                                                       |
17// | This program is distributed in the hope that it will be useful, but   |
18// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
19// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
20// | General Public License for more details.                              |
21// |                                                                       |
22// | You should have received a copy of the GNU General Public License     |
23// | along with this program; if not, write to the Free Software           |
24// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
25// | USA.                                                                  |
26// +-----------------------------------------------------------------------+
27$template->set_filenames(array('tail'=>'footer.tpl'));
28
29trigger_action('loc_begin_page_tail');
30
31$template->assign_vars(
32  array(
33    'VERSION' => $conf['show_version'] ? PHPWG_VERSION : '',
34
35    'L_TITLE_MAIL' => urlencode($lang['title_send_mail']),
36    ));
37
38//--------------------------------------------------------------------- contact
39
40if (!$user['is_the_guest'])
41{
42  $template->assign_block_vars(
43    'contact',
44    array(
45      'MAIL' => get_webmaster_mail_address()
46      )
47    );
48}
49
50//------------------------------------------------------------- generation time
51$debug_vars = array();
52if ($conf['show_gt'])
53{
54  $time = get_elapsed_time($t2, get_moment());
55
56  if (!isset($page['count_queries']))
57  {
58    $page['count_queries'] = 0;
59    $page['queries_time'] = 0;
60  }
61
62  $debug_vars = array_merge($debug_vars,
63    array('TIME' => $time,
64          'NB_QUERIES' => $page['count_queries'],
65          'SQL_TIME' => number_format($page['queries_time'],3,'.',' ').' s')
66          );
67}
68
69if ($conf['show_queries'])
70{
71  $debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) );
72}
73
74if ( !empty($debug_vars) )
75{
76  $template->assign_block_vars('debug',$debug_vars );
77}
78
79trigger_action('loc_end_page_tail');
80//
81// Generate the page
82//
83$template->parse('tail');
84
85$template->p();
86?>
Note: See TracBrowser for help on using the repository browser.