2004-02-02 01:55:18 +01:00
|
|
|
<?php
|
2004-02-12 00:20:38 +01:00
|
|
|
// +-----------------------------------------------------------------------+
|
2008-04-05 00:57:23 +02:00
|
|
|
// | Piwigo - a PHP based picture gallery |
|
|
|
|
// +-----------------------------------------------------------------------+
|
2009-01-05 00:09:15 +01:00
|
|
|
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
|
2008-04-05 00:57:23 +02: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-12 00:20:38 +01: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 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');
|
|
|
|
|
2008-03-20 01:35:36 +01:00
|
|
|
$template->assign(
|
2004-08-05 19:37:59 +02:00
|
|
|
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,
|
2004-08-05 19:37:59 +02:00
|
|
|
));
|
2006-02-01 23:07:26 +01:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------- contact
|
|
|
|
|
2007-06-06 00:01:15 +02:00
|
|
|
if (!is_a_guest())
|
2006-02-01 23:07:26 +01:00
|
|
|
{
|
2008-02-29 02:25:13 +01:00
|
|
|
$template->assign(
|
|
|
|
'CONTACT_MAIL', get_webmaster_mail_address()
|
2006-02-01 23:07:26 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2004-12-27 15:30:49 +01:00
|
|
|
//------------------------------------------------------------- generation time
|
2006-03-22 02:01:47 +01:00
|
|
|
$debug_vars = array();
|
2008-03-01 14:12:07 +01:00
|
|
|
|
|
|
|
if ($conf['show_queries'])
|
2004-02-07 12:50:26 +01:00
|
|
|
{
|
2008-03-01 14:12:07 +01:00
|
|
|
$debug_vars = array_merge($debug_vars, array('QUERIES_LIST' => $debug) );
|
|
|
|
}
|
2004-12-28 17:31:58 +01:00
|
|
|
|
2008-03-01 14:12:07 +01:00
|
|
|
if ($conf['show_gt'])
|
|
|
|
{
|
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
|
|
|
}
|
2008-03-01 14:12:07 +01:00
|
|
|
$time = get_elapsed_time($t2, get_moment());
|
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
|
|
|
|
2008-02-29 02:25:13 +01:00
|
|
|
$template->assign('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
|
|
|
|
//
|
2008-03-01 14:12:07 +01:00
|
|
|
$template->parse('tail');
|
|
|
|
$template->p();
|
|
|
|
?>
|