source: branches/branch-1_7/include/page_tail.php @ 1936

Last change on this file since 1936 was 1900, checked in by rub, 18 years ago

Apply property svn:eol-style Value: LF

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 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-2007 PhpWebGallery Team - http://phpwebgallery.net |
6// +-----------------------------------------------------------------------+
7// | branch        : BSF (Best So Far)
8// | file          : $RCSfile$
9// | last update   : $Date: 2007-03-12 22:33:53 +0000 (Mon, 12 Mar 2007) $
10// | last modifier : $Author: rub $
11// | revision      : $Revision: 1900 $
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    'PHPWG_URL' => PHPWG_URL,
35
36    'L_TITLE_MAIL' => urlencode($lang['title_send_mail']),
37    ));
38
39//--------------------------------------------------------------------- contact
40
41if (!$user['is_the_guest'])
42{
43  $template->assign_block_vars(
44    'contact',
45    array(
46      'MAIL' => get_webmaster_mail_address()
47      )
48    );
49}
50
51//------------------------------------------------------------- generation time
52$debug_vars = array();
53if ($conf['show_gt'])
54{
55  $time = get_elapsed_time($t2, get_moment());
56
57  if (!isset($page['count_queries']))
58  {
59    $page['count_queries'] = 0;
60    $page['queries_time'] = 0;
61  }
62
63  $debug_vars = array_merge($debug_vars,
64    array('TIME' => $time,
65          'NB_QUERIES' => $page['count_queries'],
66          'SQL_TIME' => number_format($page['queries_time'],3,'.',' ').' s')
67          );
68}
69
70if ($conf['show_queries'])
71{
72  $debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) );
73}
74
75if ( !empty($debug_vars) )
76{
77  $template->assign_block_vars('debug',$debug_vars );
78}
79
80trigger_action('loc_end_page_tail');
81//
82// Generate the page
83//
84$template->parse('tail');
85
86$template->p();
87?>
Note: See TracBrowser for help on using the repository browser.