2004-02-02 01:55:18 +01:00
|
|
|
<?php
|
2004-02-12 00:20:38 +01:00
|
|
|
// +-----------------------------------------------------------------------+
|
2004-11-06 22:12:59 +01:00
|
|
|
// | PhpWebGallery - a PHP based picture gallery |
|
|
|
|
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
|
2007-01-16 23:23:05 +01:00
|
|
|
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
|
2004-02-12 00:20:38 +01:00
|
|
|
// +-----------------------------------------------------------------------+
|
2004-11-06 22:12:59 +01:00
|
|
|
// | branch : BSF (Best So Far)
|
2004-02-12 00:20:38 +01:00
|
|
|
// | file : $RCSfile$
|
|
|
|
// | last update : $Date$
|
|
|
|
// | last modifier : $Author$
|
|
|
|
// | revision : $Revision$
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | This program is free software; you can redistribute it and/or modify |
|
|
|
|
// | it under the terms of the GNU General Public License as published by |
|
|
|
|
// | the Free Software Foundation |
|
|
|
|
// | |
|
|
|
|
// | This program is distributed in the hope that it will be useful, but |
|
|
|
|
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
|
|
// | General Public License for more details. |
|
|
|
|
// | |
|
|
|
|
// | You should have received a copy of the GNU General Public License |
|
|
|
|
// | along with this program; if not, write to the Free Software |
|
|
|
|
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
|
|
|
|
// | USA. |
|
|
|
|
// +-----------------------------------------------------------------------+
|
2004-02-07 12:50:26 +01:00
|
|
|
$template->set_filenames(array('tail'=>'footer.tpl'));
|
2004-02-02 01:55:18 +01:00
|
|
|
|
2006-11-07 01:55:36 +01:00
|
|
|
trigger_action('loc_begin_page_tail');
|
|
|
|
|
2004-08-05 19:37:59 +02:00
|
|
|
$template->assign_vars(
|
|
|
|
array(
|
2005-03-16 21:57:54 +01:00
|
|
|
'VERSION' => $conf['show_version'] ? PHPWG_VERSION : '',
|
2007-01-16 23:23:05 +01:00
|
|
|
'PHPWG_URL' => PHPWG_URL,
|
2006-03-22 02:01:47 +01:00
|
|
|
|
2006-02-04 21:55:22 +01:00
|
|
|
'L_TITLE_MAIL' => urlencode($lang['title_send_mail']),
|
2004-08-05 19:37:59 +02:00
|
|
|
));
|
2006-02-01 23:07:26 +01:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------- contact
|
|
|
|
|
|
|
|
if (!$user['is_the_guest'])
|
|
|
|
{
|
|
|
|
$template->assign_block_vars(
|
|
|
|
'contact',
|
|
|
|
array(
|
|
|
|
'MAIL' => get_webmaster_mail_address()
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2004-12-27 15:30:49 +01:00
|
|
|
//------------------------------------------------------------- generation time
|
2006-03-22 02:01:47 +01:00
|
|
|
$debug_vars = array();
|
2004-11-05 22:36:35 +01:00
|
|
|
if ($conf['show_gt'])
|
2004-02-07 12:50:26 +01:00
|
|
|
{
|
2004-12-28 17:31:58 +01:00
|
|
|
$time = get_elapsed_time($t2, get_moment());
|
|
|
|
|
2005-01-06 23:16:21 +01:00
|
|
|
if (!isset($page['count_queries']))
|
2004-12-28 17:31:58 +01:00
|
|
|
{
|
2005-01-06 23:16:21 +01:00
|
|
|
$page['count_queries'] = 0;
|
|
|
|
$page['queries_time'] = 0;
|
2004-12-28 17:31:58 +01:00
|
|
|
}
|
2006-03-22 02:01:47 +01:00
|
|
|
|
|
|
|
$debug_vars = array_merge($debug_vars,
|
2004-12-27 15:30:49 +01:00
|
|
|
array('TIME' => $time,
|
2005-01-06 23:16:21 +01:00
|
|
|
'NB_QUERIES' => $page['count_queries'],
|
2006-03-22 02:01:47 +01:00
|
|
|
'SQL_TIME' => number_format($page['queries_time'],3,'.',' ').' s')
|
|
|
|
);
|
2004-02-07 12:50:26 +01:00
|
|
|
}
|
2004-02-02 01:55:18 +01:00
|
|
|
|
2006-03-22 02:01:47 +01:00
|
|
|
if ($conf['show_queries'])
|
2006-01-21 21:38:29 +01:00
|
|
|
{
|
2006-03-22 02:01:47 +01:00
|
|
|
$debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) );
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( !empty($debug_vars) )
|
|
|
|
{
|
|
|
|
$template->assign_block_vars('debug',$debug_vars );
|
2006-01-21 21:38:29 +01:00
|
|
|
}
|
|
|
|
|
2006-11-07 01:55:36 +01:00
|
|
|
trigger_action('loc_end_page_tail');
|
2004-02-02 01:55:18 +01:00
|
|
|
//
|
|
|
|
// Generate the page
|
|
|
|
//
|
2005-01-13 11:18:49 +01:00
|
|
|
$template->parse('tail');
|
|
|
|
|
|
|
|
$template->p();
|
2004-02-12 00:20:38 +01:00
|
|
|
?>
|