mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-05 08:22:32 +01:00
Persons and their association to photos, with an optional face box. Admin: People page (merge, bulk actions, cover), People tab on the photo edit page (identify a face), access settings in Permissions. Gallery: faces on the photo page, person page, People filter in the search. API: pwg.people.* methods, new events for plugins. Core has no AI: source manual, auto or imported is stored for plugins.
49 lines
2.0 KiB
PHP
49 lines
2.0 KiB
PHP
<?php
|
|
// +-----------------------------------------------------------------------+
|
|
// | This file is part of Piwigo. |
|
|
// | |
|
|
// | For copyright and license information, please view the COPYING.txt |
|
|
// | file that was distributed with this source code. |
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
if (!defined('PHPWG_ROOT_PATH'))
|
|
{
|
|
die('Hacking attempt!');
|
|
}
|
|
|
|
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
// | Check Access and exit when user status is not ok |
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
check_status(ACCESS_ADMINISTRATOR);
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
// | tabs |
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
$page['tab'] = 'people';
|
|
include(PHPWG_ROOT_PATH.'admin/include/people_tab.inc.php');
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
// | template initialization |
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
$template->set_filename('people', 'people.tpl');
|
|
$template->assign('ADMIN_PAGE_TITLE', l10n('People'));
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
// | sending html code |
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
$template->assign(array(
|
|
'PWG_TOKEN' => get_pwg_token(),
|
|
// toaster of the standard pages, reused here
|
|
'PWG_TOASTER_TPL' => realpath(PHPWG_ROOT_PATH.'themes/standard_pages/template/toaster.tpl'),
|
|
));
|
|
|
|
trigger_notify('loc_end_people');
|
|
|
|
$template->assign_var_from_handle('ADMIN_CONTENT', 'people');
|