2003-07-21 19:24:56 +00:00
|
|
|
<?php
|
2004-02-11 23:20:38 +00:00
|
|
|
// +-----------------------------------------------------------------------+
|
2011-01-18 00:02:52 +00:00
|
|
|
// | Piwigo - a PHP based photo gallery |
|
2008-04-04 22:57:23 +00:00
|
|
|
// +-----------------------------------------------------------------------+
|
2016-01-14 12:17:58 +01:00
|
|
|
// | Copyright(C) 2008-2016 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 |
|
|
|
|
// | |
|
|
|
|
// | 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 |
|
2004-02-11 23:20:38 +00:00
|
|
|
// | 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. |
|
|
|
|
// +-----------------------------------------------------------------------+
|
- improvement: long localized messages are in HTML files instead of $lang
array. This is the case of admin/help and about pages.
- deletion: of unused functions (ts_to_mysqldt, is_image, TN_exists,
check_date_format, date_convert, get_category_directories,
get_used_metadata_list, array_remove, pwg_write_debug,
get_group_restrictions, get_all_group_restrictions, is_group_allowed,
style_select, deprecated_getAttribute).
- new: many new contextual help pages to replace descriptions previously
included in pages.
- modification: reorganisation of language files. Deletion of unused
language keys, alphabetical sort. No faq.lang.php anymore (replaced by
help.html). Only done for en_UK.iso-8859-1.
git-svn-id: http://piwigo.org/svn/trunk@862 68402e56-0260-453c-a942-63ccdbb3a9ee
2005-09-14 21:57:05 +00:00
|
|
|
|
2006-03-09 22:46:28 +00:00
|
|
|
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
2010-03-18 22:12:30 +00:00
|
|
|
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
|
2006-03-09 22:46:28 +00:00
|
|
|
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | Check Access and exit when user status is not ok |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
check_status(ACCESS_ADMINISTRATOR);
|
2004-03-20 00:52:37 +00:00
|
|
|
|
2012-07-23 11:50:41 +00:00
|
|
|
$help_link = get_root_url().'admin.php?page=help§ion=';
|
2010-03-18 22:12:30 +00:00
|
|
|
$selected = null;
|
|
|
|
|
|
|
|
if (!isset($_GET['section']))
|
|
|
|
{
|
2012-07-23 11:50:41 +00:00
|
|
|
$selected = 'add_photos';
|
2010-03-18 22:12:30 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2012-07-23 11:50:41 +00:00
|
|
|
$selected = $_GET['section'];
|
2010-03-18 22:12:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$tabsheet = new tabsheet();
|
2012-07-23 10:03:14 +00:00
|
|
|
$tabsheet->set_id('help');
|
2012-08-04 09:22:46 +00:00
|
|
|
$tabsheet->select($selected);
|
2010-03-18 22:12:30 +00:00
|
|
|
$tabsheet->assign();
|
|
|
|
|
2014-06-02 07:55:46 +00:00
|
|
|
trigger_notify('loc_end_help');
|
2014-04-06 19:25:38 +00:00
|
|
|
|
2010-03-18 22:12:30 +00:00
|
|
|
$template->set_filenames(array('help' => 'help.tpl'));
|
|
|
|
|
|
|
|
$template->assign(
|
|
|
|
array(
|
|
|
|
'HELP_CONTENT' => load_language(
|
2012-07-23 11:50:41 +00:00
|
|
|
'help/help_'.$tabsheet->selected.'.html',
|
2010-03-18 22:12:30 +00:00
|
|
|
'',
|
|
|
|
array('return'=>true)
|
|
|
|
),
|
2012-07-23 11:50:41 +00:00
|
|
|
'HELP_SECTION_TITLE' => $tabsheet->sheets[ $tabsheet->selected ]['caption'],
|
2010-03-18 22:12:30 +00:00
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | sending html code |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
|
|
|
|
$template->assign_var_from_handle('ADMIN_CONTENT', 'help');
|
2004-02-11 23:20:38 +00:00
|
|
|
?>
|