source: trunk/include/page_tail.php @ 1012

Last change on this file since 1012 was 1012, checked in by nikrou, 18 years ago

merge branch 1.5 r1010:1011 into BSF:

  • bug 268 fixed: display debug content correctly
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 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-01-21 20:38:29 +0000 (Sat, 21 Jan 2006) $
10// | last modifier : $Author: nikrou $
11// | revision      : $Revision: 1012 $
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
29$template->assign_vars(
30  array(
31    'VERSION' => $conf['show_version'] ? PHPWG_VERSION : '',
32   
33    'L_GEN_TIME' => $lang['generation_time'],
34    'L_SQL_QUERIES_IN' => $lang['sql_queries_in'],
35    'L_SEND_MAIL' => $lang['send_mail'],
36    'L_TITLE_MAIL' => $lang['title_send_mail'],
37    'L_POWERED_BY'=>$lang['powered_by']
38    ));
39//------------------------------------------------------------- generation time
40if ($conf['show_gt'])
41{
42  $time = get_elapsed_time($t2, get_moment());
43
44  if (!isset($page['count_queries']))
45  {
46    $page['count_queries'] = 0;
47    $page['queries_time'] = 0;
48  }
49 
50  $template->assign_block_vars(
51    'debug',
52    array('TIME' => $time,
53          'NB_QUERIES' => $page['count_queries'],
54          'SQL_TIME' => number_format($page['queries_time'],3,'.',' ').' s'));
55}
56
57if ($conf['show_queries']) 
58{
59  $template->assign_block_vars(
60    'debug',
61    array('QUERIES_LIST' => $debug)
62  );
63}
64
65//--------------------------------------------------------------------- contact
66
67if (!$user['is_the_guest'])
68{
69  $query = '
70SELECT '.$conf['user_fields']['email'].'
71  FROM '.USERS_TABLE.'
72  WHERE '.$conf['user_fields']['id'].' = '.$conf['webmaster_id'].'
73;';
74  list($email) = mysql_fetch_array(pwg_query($query));
75 
76  $template->assign_block_vars(
77    'contact',
78    array(
79      'MAIL' => $email
80      )
81    );
82}
83
84//
85// Generate the page
86//
87
88$template->parse('tail');
89
90$template->p();
91?>
Note: See TracBrowser for help on using the repository browser.