source: branches/branch-1_5/include/page_tail.php @ 993

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

Modification mineure: le sujet du mail doit être encodé car il peut contenir des espaces.

  • Property svn:eol-style set to native
  • 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-2005 PhpWebGallery Team - http://phpwebgallery.net |
6// +-----------------------------------------------------------------------+
7// | branch        : BSF (Best So Far)
8// | file          : $RCSfile$
9// | last update   : $Date: 2005-12-29 13:28:33 +0000 (Thu, 29 Dec 2005) $
10// | last modifier : $Author: nikrou $
11// | revision      : $Revision: 993 $
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' => urlencode($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
57//--------------------------------------------------------------------- contact
58
59if (!$user['is_the_guest'])
60{
61  $query = '
62SELECT '.$conf['user_fields']['email'].'
63  FROM '.USERS_TABLE.'
64  WHERE '.$conf['user_fields']['id'].' = '.$conf['webmaster_id'].'
65;';
66  list($email) = mysql_fetch_array(pwg_query($query));
67 
68  $template->assign_block_vars(
69    'contact',
70    array(
71      'MAIL' => $email
72      )
73    );
74}
75
76//
77// Generate the page
78//
79
80$template->parse('tail');
81
82$template->p();
83?>
Note: See TracBrowser for help on using the repository browser.