source: trunk/include/page_tail.php @ 2288

Last change on this file since 2288 was 2286, checked in by rvelices, 16 years ago
  • admin/notification_by_mail goes smarty - THE LAST ONE :-) :-)
  • get rid of user_list warnings
  • some code reorganisation in template class + explode modifier
  • minor template and language changes in search.tpl and cat_modify.tpl
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 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-2008 PhpWebGallery Team - http://phpwebgallery.net |
6// +-----------------------------------------------------------------------+
7// | file          : $Id: page_tail.php 2286 2008-03-20 00:35:36Z rvelices $
8// | last update   : $Date: 2008-03-20 00:35:36 +0000 (Thu, 20 Mar 2008) $
9// | last modifier : $Author: rvelices $
10// | revision      : $Revision: 2286 $
11// +-----------------------------------------------------------------------+
12// | This program is free software; you can redistribute it and/or modify  |
13// | it under the terms of the GNU General Public License as published by  |
14// | the Free Software Foundation                                          |
15// |                                                                       |
16// | This program is distributed in the hope that it will be useful, but   |
17// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
18// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
19// | General Public License for more details.                              |
20// |                                                                       |
21// | You should have received a copy of the GNU General Public License     |
22// | along with this program; if not, write to the Free Software           |
23// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
24// | USA.                                                                  |
25// +-----------------------------------------------------------------------+
26$template->set_filenames(array('tail'=>'footer.tpl'));
27
28trigger_action('loc_begin_page_tail');
29
30$template->assign(
31  array(
32    'VERSION' => $conf['show_version'] ? PHPWG_VERSION : '',
33    'PHPWG_URL' => PHPWG_URL,
34    ));
35
36//--------------------------------------------------------------------- contact
37
38if (!is_a_guest())
39{
40  $template->assign(
41    'CONTACT_MAIL', get_webmaster_mail_address()
42    );
43}
44
45//------------------------------------------------------------- generation time
46$debug_vars = array();
47
48if ($conf['show_queries'])
49{
50  $debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) );
51}
52
53if ($conf['show_gt'])
54{
55  if (!isset($page['count_queries']))
56  {
57    $page['count_queries'] = 0;
58    $page['queries_time'] = 0;
59  }
60  $time = get_elapsed_time($t2, get_moment());
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
69$template->assign('debug', $debug_vars );
70
71trigger_action('loc_end_page_tail');
72//
73// Generate the page
74//
75$template->parse('tail');
76$template->p();
77?>
Note: See TracBrowser for help on using the repository browser.