[345] | 1 | <?php |
---|
[362] | 2 | // +-----------------------------------------------------------------------+ |
---|
[593] | 3 | // | PhpWebGallery - a PHP based picture gallery | |
---|
| 4 | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | |
---|
[1726] | 5 | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | |
---|
[362] | 6 | // +-----------------------------------------------------------------------+ |
---|
[2029] | 7 | // | file : $Id: page_tail.php 2029 2007-06-05 22:01:15Z rub $ |
---|
[362] | 8 | // | last update : $Date: 2007-06-05 22:01:15 +0000 (Tue, 05 Jun 2007) $ |
---|
| 9 | // | last modifier : $Author: rub $ |
---|
| 10 | // | revision : $Revision: 2029 $ |
---|
| 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 | // +-----------------------------------------------------------------------+ |
---|
[351] | 26 | $template->set_filenames(array('tail'=>'footer.tpl')); |
---|
[345] | 27 | |
---|
[1595] | 28 | trigger_action('loc_begin_page_tail'); |
---|
| 29 | |
---|
[469] | 30 | $template->assign_vars( |
---|
| 31 | array( |
---|
[754] | 32 | 'VERSION' => $conf['show_version'] ? PHPWG_VERSION : '', |
---|
[1726] | 33 | 'PHPWG_URL' => PHPWG_URL, |
---|
[1092] | 34 | |
---|
[1024] | 35 | 'L_TITLE_MAIL' => urlencode($lang['title_send_mail']), |
---|
[469] | 36 | )); |
---|
[1021] | 37 | |
---|
| 38 | //--------------------------------------------------------------------- contact |
---|
| 39 | |
---|
[2029] | 40 | if (!is_a_guest()) |
---|
[1021] | 41 | { |
---|
| 42 | $template->assign_block_vars( |
---|
| 43 | 'contact', |
---|
| 44 | array( |
---|
| 45 | 'MAIL' => get_webmaster_mail_address() |
---|
| 46 | ) |
---|
| 47 | ); |
---|
| 48 | } |
---|
| 49 | |
---|
[659] | 50 | //------------------------------------------------------------- generation time |
---|
[1092] | 51 | $debug_vars = array(); |
---|
[592] | 52 | if ($conf['show_gt']) |
---|
[351] | 53 | { |
---|
[660] | 54 | $time = get_elapsed_time($t2, get_moment()); |
---|
| 55 | |
---|
[672] | 56 | if (!isset($page['count_queries'])) |
---|
[660] | 57 | { |
---|
[672] | 58 | $page['count_queries'] = 0; |
---|
| 59 | $page['queries_time'] = 0; |
---|
[660] | 60 | } |
---|
[1092] | 61 | |
---|
| 62 | $debug_vars = array_merge($debug_vars, |
---|
[659] | 63 | array('TIME' => $time, |
---|
[672] | 64 | 'NB_QUERIES' => $page['count_queries'], |
---|
[1092] | 65 | 'SQL_TIME' => number_format($page['queries_time'],3,'.',' ').' s') |
---|
| 66 | ); |
---|
[351] | 67 | } |
---|
[345] | 68 | |
---|
[1092] | 69 | if ($conf['show_queries']) |
---|
[1012] | 70 | { |
---|
[1092] | 71 | $debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) ); |
---|
[1012] | 72 | } |
---|
| 73 | |
---|
[1092] | 74 | if ( !empty($debug_vars) ) |
---|
| 75 | { |
---|
| 76 | $template->assign_block_vars('debug',$debug_vars ); |
---|
| 77 | } |
---|
| 78 | |
---|
[1595] | 79 | trigger_action('loc_end_page_tail'); |
---|
[345] | 80 | // |
---|
| 81 | // Generate the page |
---|
| 82 | // |
---|
[688] | 83 | $template->parse('tail'); |
---|
| 84 | |
---|
| 85 | $template->p(); |
---|
[362] | 86 | ?> |
---|