[345] | 1 | <?php |
---|
[362] | 2 | // +-----------------------------------------------------------------------+ |
---|
[593] | 3 | // | PhpWebGallery - a PHP based picture gallery | |
---|
| 4 | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | |
---|
[675] | 5 | // | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net | |
---|
[362] | 6 | // +-----------------------------------------------------------------------+ |
---|
[593] | 7 | // | branch : BSF (Best So Far) |
---|
[362] | 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 | // +-----------------------------------------------------------------------+ |
---|
[351] | 27 | $template->set_filenames(array('tail'=>'footer.tpl')); |
---|
[345] | 28 | |
---|
[469] | 29 | $template->assign_vars( |
---|
| 30 | array( |
---|
[754] | 31 | 'VERSION' => $conf['show_version'] ? PHPWG_VERSION : '', |
---|
[1092] | 32 | |
---|
[1024] | 33 | 'L_TITLE_MAIL' => urlencode($lang['title_send_mail']), |
---|
[469] | 34 | )); |
---|
[1021] | 35 | |
---|
| 36 | //--------------------------------------------------------------------- contact |
---|
| 37 | |
---|
| 38 | if (!$user['is_the_guest']) |
---|
| 39 | { |
---|
| 40 | $template->assign_block_vars( |
---|
| 41 | 'contact', |
---|
| 42 | array( |
---|
| 43 | 'MAIL' => get_webmaster_mail_address() |
---|
| 44 | ) |
---|
| 45 | ); |
---|
| 46 | } |
---|
| 47 | |
---|
[659] | 48 | //------------------------------------------------------------- generation time |
---|
[1092] | 49 | $debug_vars = array(); |
---|
[592] | 50 | if ($conf['show_gt']) |
---|
[351] | 51 | { |
---|
[660] | 52 | $time = get_elapsed_time($t2, get_moment()); |
---|
| 53 | |
---|
[672] | 54 | if (!isset($page['count_queries'])) |
---|
[660] | 55 | { |
---|
[672] | 56 | $page['count_queries'] = 0; |
---|
| 57 | $page['queries_time'] = 0; |
---|
[660] | 58 | } |
---|
[1092] | 59 | |
---|
| 60 | $debug_vars = array_merge($debug_vars, |
---|
[659] | 61 | array('TIME' => $time, |
---|
[672] | 62 | 'NB_QUERIES' => $page['count_queries'], |
---|
[1092] | 63 | 'SQL_TIME' => number_format($page['queries_time'],3,'.',' ').' s') |
---|
| 64 | ); |
---|
[351] | 65 | } |
---|
[345] | 66 | |
---|
[1092] | 67 | if ($conf['show_queries']) |
---|
[1012] | 68 | { |
---|
[1092] | 69 | $debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) ); |
---|
[1012] | 70 | } |
---|
| 71 | |
---|
[1092] | 72 | if ( !empty($debug_vars) ) |
---|
| 73 | { |
---|
| 74 | $template->assign_block_vars('debug',$debug_vars ); |
---|
| 75 | } |
---|
| 76 | |
---|
[345] | 77 | // |
---|
| 78 | // Generate the page |
---|
| 79 | // |
---|
| 80 | |
---|
[688] | 81 | $template->parse('tail'); |
---|
| 82 | |
---|
| 83 | $template->p(); |
---|
[362] | 84 | ?> |
---|