2003-07-21 19:24:56 +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 |
|
|
|
|
// | |
|
|
|
|
// | 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
|
|
|
|
2010-03-18 22:12:30 +00:00
|
|
|
$link = get_root_url().'admin.php?page=help§ion=';
|
|
|
|
$selected = null;
|
|
|
|
$help_section_title = null;
|
|
|
|
|
2010-05-25 22:29:31 +00:00
|
|
|
$tabs = array();
|
|
|
|
$tabs[] = array(
|
|
|
|
'code' => 'add_photos',
|
|
|
|
'label' => l10n('Add Photos'),
|
|
|
|
);
|
|
|
|
$tabs[] = array(
|
|
|
|
'code' => 'permissions',
|
|
|
|
'label' => l10n('Permissions'),
|
|
|
|
);
|
|
|
|
$tabs[] = array(
|
|
|
|
'code' => 'groups',
|
|
|
|
'label' => l10n('Groups'),
|
|
|
|
);
|
|
|
|
if ($conf['enable_synchronization'])
|
|
|
|
{
|
|
|
|
$tabs[] = array(
|
2010-03-18 22:12:30 +00:00
|
|
|
'code' => 'user_upload',
|
2010-04-01 12:27:44 +00:00
|
|
|
'label' => l10n('User Upload'),
|
2010-05-25 22:29:31 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
$tabs[] = array(
|
|
|
|
'code' => 'virtual_links',
|
|
|
|
'label' => l10n('Virtual Links'),
|
|
|
|
);
|
|
|
|
$tabs[] = array(
|
|
|
|
'code' => 'misc',
|
|
|
|
'label' => l10n('Miscellaneous'),
|
2010-03-18 22:12:30 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
if (!isset($_GET['section']))
|
|
|
|
{
|
|
|
|
$section = $tabs[0]['code'];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$section = $_GET['section'];
|
|
|
|
}
|
|
|
|
|
|
|
|
$tabsheet = new tabsheet();
|
|
|
|
foreach ($tabs as $tab)
|
|
|
|
{
|
|
|
|
if ($tab['code'] == $section)
|
|
|
|
{
|
|
|
|
$selected_tab = $tab['code'];
|
2010-04-01 12:27:44 +00:00
|
|
|
$help_section_title = $tab['label'];
|
2010-03-18 22:12:30 +00:00
|
|
|
}
|
|
|
|
|
2010-04-01 12:27:44 +00:00
|
|
|
$tabsheet->add($tab['code'], $tab['label'], $link.$tab['code']);
|
2010-03-18 22:12:30 +00:00
|
|
|
}
|
|
|
|
$tabsheet->select($selected_tab);
|
|
|
|
$tabsheet->assign();
|
|
|
|
|
|
|
|
$template->set_filenames(array('help' => 'help.tpl'));
|
|
|
|
|
|
|
|
$template->assign(
|
|
|
|
array(
|
|
|
|
'HELP_CONTENT' => load_language(
|
|
|
|
'help/help_'.$selected_tab.'.html',
|
|
|
|
'',
|
|
|
|
array('return'=>true)
|
|
|
|
),
|
|
|
|
'HELP_SECTION_TITLE' => $help_section_title,
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | sending html code |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
|
|
|
|
$template->assign_var_from_handle('ADMIN_CONTENT', 'help');
|
2004-02-11 23:20:38 +00:00
|
|
|
?>
|