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 |
|
|
|
|
// | Copyright (C) 2003-2004 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
|
|
|
|
2004-08-05 19:37:59 +02:00
|
|
|
$template->assign_vars(
|
|
|
|
array(
|
2004-09-07 22:10:36 +02:00
|
|
|
'VERSION' => PHPWG_VERSION,
|
2004-08-05 19:37:59 +02:00
|
|
|
'MAIL'=>$conf['mail_webmaster'],
|
|
|
|
|
|
|
|
'L_GEN_TIME' => $lang['generation_time'],
|
2004-12-27 15:30:49 +01:00
|
|
|
'L_SQL_QUERIES_IN' => $lang['sql_queries_in'],
|
2004-08-05 19:37:59 +02:00
|
|
|
'L_SEND_MAIL' => $lang['send_mail'],
|
|
|
|
'L_TITLE_MAIL' => $lang['title_send_mail'],
|
- in admin/configuration, add new step with "sections" (general, comments,
default, upload, metadata, sessions)
- admin/configuration.php and its template have been higly simplificated by
making things more generic : for example, for each configuration
parameter, its name must correspond to the name we find in the config
table and belongs to a section, in the lang array we find :
- $lang['conf_<section>_<param>']
- $lang['conf_<section>_<param>_info']
- $lang['conf_<section>_<param>_error'] optionnaly
- more described message when connection to database server is impossible
- redefinitions of get_languages and get_templates functions
- deletion of configuration parameters : webmaster, session_keyword
- rename of configuration parameters :
- default_lang => default_language
- default_style => default_template
git-svn-id: http://piwigo.org/svn/trunk@512 68402e56-0260-453c-a942-63ccdbb3a9ee
2004-09-03 17:01:05 +02:00
|
|
|
'L_WEBMASTER'=>$lang['webmaster'],
|
2004-08-05 19:37:59 +02:00
|
|
|
));
|
2004-12-27 15:30:49 +01:00
|
|
|
//------------------------------------------------------------- generation time
|
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());
|
|
|
|
|
|
|
|
if (!isset($count_queries))
|
|
|
|
{
|
|
|
|
$count_queries = 0;
|
|
|
|
$queries_time = 0;
|
|
|
|
}
|
2004-12-27 15:30:49 +01:00
|
|
|
|
|
|
|
$template->assign_block_vars(
|
|
|
|
'debug',
|
|
|
|
array('TIME' => $time,
|
|
|
|
'NB_QUERIES' => $count_queries,
|
|
|
|
'SQL_TIME' => number_format($queries_time, 3, '.', ' ').' s'));
|
2004-02-07 12:50:26 +01:00
|
|
|
}
|
2004-02-02 01:55:18 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Generate the page
|
|
|
|
//
|
|
|
|
|
2004-02-07 12:50:26 +01:00
|
|
|
$template->pparse('tail');
|
2004-02-12 00:20:38 +01:00
|
|
|
?>
|