2011-11-12 10:44:00 +01:00
|
|
|
<?php
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | Piwigo - a PHP based photo gallery |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org |
|
|
|
|
// | 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 |
|
|
|
|
// | 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. |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
|
|
|
|
$core = array(
|
|
|
|
array(
|
|
|
|
'name' => 'allow_increment_element_hit_count',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('bool', 'content_not_set'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('picture.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'begin_delete_elements',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'ids'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\include\functions.inc.php (delete_elements)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'blockmanager_apply',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('object', 'menublock'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\block.class.php (BlockManager::apply)'),
|
2012-01-17 23:18:27 +01:00
|
|
|
'infos' => 'use this trigger to modify existing menu blocks',
|
2011-11-12 10:44:00 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'blockmanager_prepare_display',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('object', 'this'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\block.class.php (BlockManager::prepare_display)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'blockmanager_register_blocks',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('object', 'menu'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\block.class.php (BlockManager::load_registered_blocks)'),
|
2012-01-17 23:18:27 +01:00
|
|
|
'infos' => 'use this trigger to add menu block',
|
2011-11-12 10:44:00 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'clean_iptc_value',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'value'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_metadata.inc.php (clean_iptc_value)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'combined_css',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'href', 'int', 'file_ver0', 'int', 'file_ver1'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\template.class.php (Template::flush)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'combined_css_postfilter',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'css'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\template.class.php (Template::process_css)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'combined_script',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'ret', 'string', 'script'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\template.class.php (Template::make_script_src)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'delete_categories',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'ids'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\include\functions.inc.php (delete_categories)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'delete_elements',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'ids'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\include\functions.inc.php (delete_elements)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'delete_user',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('int', 'user_id'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\include\functions.inc.php (delete_user)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'element_set_global_action',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'action', 'array', 'collection'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\batch_manager_global.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'format_exif_data',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'exif', 'string', 'filename', 'array', 'map'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_metadata.inc.php (get_exif_data)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'functions_history_included',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin\include\functions_history.inc.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'functions_mail_included',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('include\functions_mail.inc.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_admin_advanced_features_links',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'advanced_features'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\maintenance.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_admin_plugin_menu_links',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', null),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin.php'),
|
2012-01-17 23:18:27 +01:00
|
|
|
'infos' => 'use this trigger to add links into admin plugins menu',
|
2011-11-12 10:44:00 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_admins_site_links',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'plugin_links', 'int', 'site_id', 'bool', 'is_remote'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\site_manager.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_batch_manager_prefilters',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'prefilters'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\batch_manager_global.php'),
|
2012-01-17 23:18:27 +01:00
|
|
|
'infos' => 'use this trigger to add prefilters into batch manager global',
|
2011-11-12 10:44:00 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_categories_menu_sql_where',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'where', 'bool', 'user_expand', 'bool', 'filter_enabled'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_category.inc.php (get_categories_menu)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_category_preferred_image_orders',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', null),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_category.inc.php (get_category_preferred_image_orders)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_download_url',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'url', 'array', 'element_info'),
|
2012-09-16 18:30:00 +02:00
|
|
|
'files' => array('include\functions_picture.inc.php (get_download_url)'),
|
2011-11-12 10:44:00 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_element_metadata_available',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('bool', null, 'string', 'element_path'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('picture.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_element_url',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'url', 'array', 'element_info'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_picture.inc.php (get_element_url)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_high_location',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'location', 'array', 'element_info'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_picture.inc.php (get_high_location)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_high_url',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'url', 'array', 'element_info'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_picture.inc.php (get_high_url)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_history',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', null, 'array', 'page_search', 'array', 'types'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\history.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_image_location',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'path', 'array', 'element_info'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_picture.inc.php (get_image_location)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_popup_help_content',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'help_content', 'string', 'page'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\popuphelp.php', 'popuphelp.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_pwg_themes',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'themes'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions.inc.php (get_pwg_themes)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_thumbnail_title',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'title', 'array', 'info'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions.inc.php (get_thumbnail_title)'),
|
|
|
|
),
|
|
|
|
array(
|
2012-06-04 16:45:52 +02:00
|
|
|
'name' => 'get_comments_derivative_params',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('ImageStdParams', null),
|
2012-06-04 16:45:52 +02:00
|
|
|
'files' => array('comments.php'),
|
|
|
|
'infos' => 'New in 2.4',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_index_album_derivative_params',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('ImageStdParams', null),
|
2012-06-04 16:45:52 +02:00
|
|
|
'files' => array('includecategory_cats.php', 'include\category_default.inc.php'),
|
|
|
|
'infos' => 'New in 2.4',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_src_image_url',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'url', 'SrcImage', 'this'),
|
2012-06-04 16:45:52 +02:00
|
|
|
'files' => array('include\derivative.inc.php (SrcImage::__construct)'),
|
|
|
|
'infos' => 'New in 2.4',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'get_derivative_url',
|
2011-11-12 10:44:00 +01:00
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'url', 'ImageStdParams', null, 'SrcImage', 'this', 'string', 'rel_url'),
|
2012-06-04 16:45:52 +02:00
|
|
|
'files' => array('include\derivative.inc.php (SrcImage::url, SrcImage::get_url)'),
|
|
|
|
'infos' => 'New in 2.4',
|
2011-11-12 10:44:00 +01:00
|
|
|
),
|
2012-09-16 18:30:00 +02:00
|
|
|
array(
|
|
|
|
'name' => 'get_tag_alt_names',
|
|
|
|
'type' => 'trigger_event',
|
|
|
|
'vars' => array('array', null, 'array', 'raw_name'),
|
|
|
|
'files' => array('admin\tags.php', 'admin\include\functions.php (get_taglist)'),
|
|
|
|
'infos' => 'New in 2.4',
|
|
|
|
),
|
2011-11-12 10:44:00 +01:00
|
|
|
array(
|
|
|
|
'name' => 'init',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('include\common.inc.php'),
|
2012-01-17 23:18:27 +01:00
|
|
|
'infos' => 'this action is called just after the common initialization, $conf, $user and $page (partial) variables are availables',
|
2011-11-12 10:44:00 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'invalidate_user_cache',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('bool', 'full'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\include\functions.inc.php (invalidate_user_cache)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'list_check_integrity',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('object', 'this'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\include\check_integrity.class.php (check_integrity::check)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'load_image_library',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('object', 'this'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\include\image.class.php (pwg_image::__construct)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'load_profile_in_template',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'userdata'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('profile.php (load_profile_in_template)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loading_lang',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('include\common.inc.php', 'include\functions.inc.php (redirect_html)', 'include\functions_mail.inc.php (switch_lang_to)', 'nbm.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_after_page_header',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('include\page_header.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_about',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('about.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_admin',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_admin_page',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_cat_list',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin\cat_list.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_cat_modify',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin\cat_modify.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_element_set_global',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin\batch_manager_global.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_element_set_unit',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin\batch_manager_unit.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_index',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('index.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_index_category_thumbnails',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'categories'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\category_cats.inc.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_index_thumbnails',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'pictures'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\category_default.inc.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_page_header',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('include\page_header.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_page_tail',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('include\page_tail.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_picture',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('picture.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_profile',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('profile.php'),
|
|
|
|
),
|
2012-09-20 14:16:45 +02:00
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_password',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('password.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_register',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('register.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_search',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('search.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_tags',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('tags.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_comments',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('comments.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_identification',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('identification.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_begin_notification',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('notification.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_password',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('password.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_register',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('register.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_search',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('search.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_tags',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('tags.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_comments',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('comments.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_identification',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('identification.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_notification',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('notification.php'),
|
|
|
|
'infos' => 'New in 2.5',
|
|
|
|
),
|
2011-11-12 10:44:00 +01:00
|
|
|
array(
|
|
|
|
'name' => 'loc_end_admin',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_cat_list',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin\cat_list.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_cat_modify',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin\cat_modify.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_element_set_global',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin\batch_manager_global.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_element_set_unit',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin\batch_manager_unit.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_index',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('index.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_index_category_thumbnails',
|
|
|
|
'type' => 'trigger_event',
|
2012-11-04 13:13:00 +01:00
|
|
|
'vars' => array('array', 'tpl_thumbnails_var'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\category_cats.inc.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_index_thumbnails',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'tpl_thumbnails_var', 'array', 'pictures'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\category_default.inc.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_page_header',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('include\page_header.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_page_tail',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('include\page_tail.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_picture',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('picture.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_profile',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('profile.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_end_section_init',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('include\section_init.inc.php'),
|
2012-01-17 23:18:27 +01:00
|
|
|
'infos' => 'this action is called after section initilization, $page variable is fully defined',
|
2011-11-12 10:44:00 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'loc_visible_user_list',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'visible_user_list'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\user_list.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'login_failure',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'username'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_user.inc.php (try_log_user)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'login_success',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'username'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_user.inc.php (auto_login, try_log_user)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'mail_group_assign_vars',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'assign_vars'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_mail.inc.php (pwg_mail_group)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'nbm_event_handler_added',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('admin\notification_by_mail.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'nbm_render_global_customize_mail_content',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'customize_mail_content'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'nbm_render_user_customize_mail_content',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'customize_mail_content', 'string', 'nbm_user'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'perform_batch_manager_prefilters',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'filter_sets', 'string', 'session_prefilter'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\batch_manager.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'picture_pictures_data',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'picture'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('picture.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'plugins_loaded',
|
|
|
|
'type' => 'trigger_action',
|
|
|
|
'vars' => array(),
|
|
|
|
'files' => array('include\functions_plugins.inc.php (load_plugins)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'pwg_log_allowed',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('bool', 'do_log', 'int', 'image_id', 'string', 'image_type'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions.inc.php (pwg_log)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'register_user',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'user'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_user.inc.php (register_user)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'register_user_check',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'errors', 'array', 'user'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_user.inc.php (register_user)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'render_category_description',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'category_description', 'string', 'action'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\category_cats.inc.php', 'include\section_init.inc.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'render_category_literal_description',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'category_description'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\category_cats.inc.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'render_category_name',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'category_name', 'string', 'location'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\cat_list.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList, ws_categories_move)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'render_comment_author',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'comment_author'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'render_comment_content',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'comment_content'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'render_element_content',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'content', 'array', 'current_picture'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('picture.php'),
|
|
|
|
),
|
|
|
|
array(
|
2012-09-17 22:34:46 +02:00
|
|
|
'name' => 'render_element_name',
|
2011-11-12 10:44:00 +01:00
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'element_name'),
|
2012-09-17 22:34:46 +02:00
|
|
|
'files' => array('include\functions_html.inc.php (render_element_name)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'render_element_description',
|
|
|
|
'type' => 'trigger_event',
|
|
|
|
'vars' => array('string', 'element_secription'),
|
|
|
|
'files' => array('picture.php'),
|
2011-11-12 10:44:00 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'render_lost_password_mail_content',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'message'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('password.php (process_password_request)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'render_page_banner',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'gallery_title'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\page_header.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'render_tag_name',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'tag_name'),
|
2012-09-16 18:30:00 +02:00
|
|
|
'files' => array('admin\include\functions.php (get_taglist)', 'admin\tags.php', 'include\functions_tag.inc.php (get_available_tags, get_all_tags, get_common_tags)', 'index.php'),
|
2011-11-12 10:44:00 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'render_tag_url',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'tag_name'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions.php (tag_id_from_tag_name, create_tag)', 'admin\tags.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'save_profile_from_post',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('int', 'user_id'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('profile.php (save_profile_from_post)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'send_mail',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('bool', 'result', 'string', 'mail_to', 'string', 'mail_subject', 'string', 'mail_content', 'array', 'mail_headers'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_mail.inc.php (pwg_mail)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'send_mail_content',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'content'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_mail.inc.php (pwg_mail)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'send_mail_headers',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'headers'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_mail.inc.php (pwg_mail)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'send_mail_subject',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'cvt_subject'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_mail.inc.php (pwg_mail)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'send_mail_to',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'to'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_mail.inc.php (pwg_mail)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'sendResponse',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'encodedResponse'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\ws_core.inc.php (PwgServer::sendResponse)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'set_status_header',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('int', 'code', 'string', 'text'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_html.inc.php (set_status_header)'),
|
|
|
|
),
|
2012-07-24 11:42:38 +02:00
|
|
|
array(
|
|
|
|
'name' => 'tabsheet_before_select',
|
|
|
|
'type' => 'trigger_event',
|
|
|
|
'vars' => array('array', 'sheets', 'string', 'tabsheet_id'),
|
|
|
|
'files' => array('include\tabsheet.class.php (tabsheet::select)'),
|
|
|
|
'infos' => 'New in 2.4, use this trigger to add tabs to a tabsheets',
|
|
|
|
),
|
2011-11-12 10:44:00 +01:00
|
|
|
array(
|
|
|
|
'name' => 'trigger',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', null),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_plugins.inc.php (trigger_event, trigger_action)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'user_comment_check',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('string', 'comment_action', 'array', 'comm'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_comment.inc.php (insert_user_comment, update_user_comment)'),
|
2012-01-17 23:18:27 +01:00
|
|
|
'infos' => 'use this trigger to add conditions on comment validation',
|
2011-11-12 10:44:00 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'user_comment_deletion',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('mixed', 'comment_id'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_comment.inc.php (delete_user_comment)'),
|
|
|
|
'infos' => '$comment_id is and int or an array of int',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'user_comment_insertion',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'comm'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\picture_comment.inc.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'user_comment_validation',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('mixed', 'comment_id'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\functions_comment.inc.php (validate_user_comment)'),
|
|
|
|
'infos' => '$comment_id is and int or an array of int',
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'user_init',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('array', 'user'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\user.inc.php'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'ws_add_methods',
|
|
|
|
'type' => 'trigger_action',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('object', 'this'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\ws_core.inc.php (PwgServer::run)'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'name' => 'ws_invoke_allowed',
|
|
|
|
'type' => 'trigger_event',
|
2012-07-24 11:42:38 +02:00
|
|
|
'vars' => array('bool', null, 'string', 'methodName', 'array', 'params'),
|
2011-11-12 10:44:00 +01:00
|
|
|
'files' => array('include\ws_core.inc.php (PwgServer::invoke)'),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
<title>Piwigo Core Triggers</title>
|
|
|
|
|
|
|
|
<link type="text/css" rel="stylesheet" media="screen" href="tablesorter/jquery.tablesorter.css">
|
|
|
|
<script type="text/javascript" src="../themes/default/js/jquery.min.js"></script>
|
|
|
|
<script type="text/javascript" src="tablesorter/jquery.tablesorter.min.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#triggers').tablesorter({
|
2012-01-17 23:18:27 +01:00
|
|
|
sortList: [[0,0]]
|
2011-11-12 10:44:00 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body style="font-family:arial;">
|
|
|
|
<h2>Piwigo Core Triggers</h2>
|
|
|
|
|
|
|
|
<a href="http://piwigo.org/doc/doku.php?id=dev:plugins">For more infos about triggers</a>
|
|
|
|
|
|
|
|
<table id="triggers" class="tablesorter">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Vars</th>
|
|
|
|
<th>Usage in the core <span style="font-weight:normal !important;">file (<i>function</i>)</span></th>
|
|
|
|
<th>Commentary</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
foreach ($core as $trigger)
|
|
|
|
{
|
|
|
|
echo '
|
|
|
|
<tr>
|
|
|
|
<td>'.$trigger['name'].'</td>
|
|
|
|
<td>'.$trigger['type'].'</td>
|
|
|
|
<td>';
|
2012-07-24 11:42:38 +02:00
|
|
|
for ($i=0; $i<count($trigger['vars']); $i+=2)
|
2011-11-12 10:44:00 +01:00
|
|
|
{
|
2012-07-24 11:42:38 +02:00
|
|
|
if ($i>0) echo ', ';
|
|
|
|
echo $trigger['vars'][$i].' '.(!empty($trigger['vars'][$i+1])?'<i>$'.$trigger['vars'][$i+1].'</i>':null);
|
2011-11-12 10:44:00 +01:00
|
|
|
}
|
|
|
|
echo '
|
|
|
|
</td>
|
|
|
|
<td>';
|
|
|
|
$f=1;
|
|
|
|
foreach ($trigger['files'] as $file)
|
|
|
|
{
|
|
|
|
if (!$f) echo '<br>'; $f=0;
|
|
|
|
echo preg_replace('#\((.+)\)#', '(<i>$1</i>)', $file);
|
|
|
|
}
|
|
|
|
echo '
|
|
|
|
</td>
|
|
|
|
<td>'.@$trigger['infos'].'</td>
|
|
|
|
</tr>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|