source: trunk/include/page_tail.php @ 1505

Last change on this file since 1505 was 1092, checked in by rvelices, 19 years ago

URL rewriting: capable of fully working with urls without ?

URL rewriting: works with image file instead of image id (change
make_picture_url to generate urls with file name instead of image id)

URL rewriting: completely works with category/best_rated and
picture/best_rated/534 (change 'category.php?' to 'category' in make_index_url
and 'picture.php?' to 'picture' in make_picture_url to see it)

fix: picture category display in upper bar

fix: function rate_picture variables and use of the new user type

fix: caddie icon appears now on category page

fix: admin element_set sql query was using storage_category_id column
(column has moved to #image_categories)

fix: replaced some old $_GET[xxx] with $page[xxx]

fix: pictures have metadata url (use ? parameter - might change later)

  • 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-03-22 01:01:47 +0000 (Wed, 22 Mar 2006) $
10// | last modifier : $Author: rvelices $
11// | revision      : $Revision: 1092 $
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_TITLE_MAIL' => urlencode($lang['title_send_mail']),
34    ));
35
36//--------------------------------------------------------------------- contact
37
38if (!$user['is_the_guest'])
39{
40  $template->assign_block_vars(
41    'contact',
42    array(
43      'MAIL' => get_webmaster_mail_address()
44      )
45    );
46}
47
48//------------------------------------------------------------- generation time
49$debug_vars = array();
50if ($conf['show_gt'])
51{
52  $time = get_elapsed_time($t2, get_moment());
53
54  if (!isset($page['count_queries']))
55  {
56    $page['count_queries'] = 0;
57    $page['queries_time'] = 0;
58  }
59
60  $debug_vars = array_merge($debug_vars,
61    array('TIME' => $time,
62          'NB_QUERIES' => $page['count_queries'],
63          'SQL_TIME' => number_format($page['queries_time'],3,'.',' ').' s')
64          );
65}
66
67if ($conf['show_queries'])
68{
69  $debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) );
70}
71
72if ( !empty($debug_vars) )
73{
74  $template->assign_block_vars('debug',$debug_vars );
75}
76
77//
78// Generate the page
79//
80
81$template->parse('tail');
82
83$template->p();
84?>
Note: See TracBrowser for help on using the repository browser.