2004-02-02 00:55:18 +00:00
|
|
|
<?php
|
2004-02-11 23:20:38 +00:00
|
|
|
// +-----------------------------------------------------------------------+
|
2008-04-04 22:57:23 +00:00
|
|
|
// | Piwigo - a PHP based picture gallery |
|
|
|
|
// +-----------------------------------------------------------------------+
|
2010-03-19 22:37:10 +00:00
|
|
|
// | Copyright(C) 2008-2010 Piwigo Team http://piwigo.org |
|
2008-04-04 22:57:23 +00:00
|
|
|
// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net |
|
|
|
|
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | 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 |
|
2004-02-11 23:20:38 +00:00
|
|
|
// | |
|
|
|
|
// | 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 11:50:26 +00:00
|
|
|
$template->set_filenames(array('tail'=>'footer.tpl'));
|
2004-02-02 00:55:18 +00:00
|
|
|
|
2006-11-07 00:55:36 +00:00
|
|
|
trigger_action('loc_begin_page_tail');
|
|
|
|
|
2008-03-20 00:35:36 +00:00
|
|
|
$template->assign(
|
2004-08-05 17:37:59 +00:00
|
|
|
array(
|
2005-03-16 20:57:54 +00:00
|
|
|
'VERSION' => $conf['show_version'] ? PHPWG_VERSION : '',
|
2007-01-16 22:23:05 +00:00
|
|
|
'PHPWG_URL' => PHPWG_URL,
|
2004-08-05 17:37:59 +00:00
|
|
|
));
|
2006-02-01 22:07:26 +00:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------- contact
|
|
|
|
|
2007-06-05 22:01:15 +00:00
|
|
|
if (!is_a_guest())
|
2006-02-01 22:07:26 +00:00
|
|
|
{
|
2008-02-29 01:25:13 +00:00
|
|
|
$template->assign(
|
|
|
|
'CONTACT_MAIL', get_webmaster_mail_address()
|
2006-02-01 22:07:26 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2004-12-27 14:30:49 +00:00
|
|
|
//------------------------------------------------------------- generation time
|
2006-03-22 01:01:47 +00:00
|
|
|
$debug_vars = array();
|
2008-03-01 13:12:07 +00:00
|
|
|
|
|
|
|
if ($conf['show_queries'])
|
2004-02-07 11:50:26 +00:00
|
|
|
{
|
2008-03-01 13:12:07 +00:00
|
|
|
$debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) );
|
|
|
|
}
|
2004-12-28 16:31:58 +00:00
|
|
|
|
2008-03-01 13:12:07 +00:00
|
|
|
if ($conf['show_gt'])
|
|
|
|
{
|
2005-01-06 22:16:21 +00:00
|
|
|
if (!isset($page['count_queries']))
|
2004-12-28 16:31:58 +00:00
|
|
|
{
|
2005-01-06 22:16:21 +00:00
|
|
|
$page['count_queries'] = 0;
|
|
|
|
$page['queries_time'] = 0;
|
2004-12-28 16:31:58 +00:00
|
|
|
}
|
2008-03-01 13:12:07 +00:00
|
|
|
$time = get_elapsed_time($t2, get_moment());
|
2006-03-22 01:01:47 +00:00
|
|
|
|
|
|
|
$debug_vars = array_merge($debug_vars,
|
2004-12-27 14:30:49 +00:00
|
|
|
array('TIME' => $time,
|
2005-01-06 22:16:21 +00:00
|
|
|
'NB_QUERIES' => $page['count_queries'],
|
2006-03-22 01:01:47 +00:00
|
|
|
'SQL_TIME' => number_format($page['queries_time'],3,'.',' ').' s')
|
|
|
|
);
|
2004-02-07 11:50:26 +00:00
|
|
|
}
|
2004-02-02 00:55:18 +00:00
|
|
|
|
2008-02-29 01:25:13 +00:00
|
|
|
$template->assign('debug', $debug_vars );
|
2006-01-21 20:38:29 +00:00
|
|
|
|
2006-11-07 00:55:36 +00:00
|
|
|
trigger_action('loc_end_page_tail');
|
2004-02-02 00:55:18 +00:00
|
|
|
//
|
|
|
|
// Generate the page
|
|
|
|
//
|
2008-03-01 13:12:07 +00:00
|
|
|
$template->parse('tail');
|
|
|
|
$template->p();
|
|
|
|
?>
|