[12608] | 1 | <?php |
---|
| 2 | // +-----------------------------------------------------------------------+ |
---|
| 3 | // | Piwigo - a PHP based photo gallery | |
---|
| 4 | // +-----------------------------------------------------------------------+ |
---|
| 5 | // | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org | |
---|
| 6 | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | |
---|
| 7 | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | |
---|
| 8 | // +-----------------------------------------------------------------------+ |
---|
| 9 | // | This program is free software; you can redistribute it and/or modify | |
---|
| 10 | // | it under the terms of the GNU General Public License as published by | |
---|
| 11 | // | the Free Software Foundation | |
---|
| 12 | // | | |
---|
| 13 | // | This program is distributed in the hope that it will be useful, but | |
---|
| 14 | // | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
| 15 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
| 16 | // | General Public License for more details. | |
---|
| 17 | // | | |
---|
| 18 | // | You should have received a copy of the GNU General Public License | |
---|
| 19 | // | along with this program; if not, write to the Free Software | |
---|
| 20 | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
| 21 | // | USA. | |
---|
| 22 | // +-----------------------------------------------------------------------+ |
---|
| 23 | |
---|
| 24 | $core = array( |
---|
| 25 | array( |
---|
| 26 | 'name' => 'allow_increment_element_hit_count', |
---|
| 27 | 'type' => 'trigger_event', |
---|
[16968] | 28 | 'vars' => array('bool', 'content_not_set'), |
---|
[12608] | 29 | 'files' => array('picture.php'), |
---|
| 30 | ), |
---|
| 31 | array( |
---|
| 32 | 'name' => 'begin_delete_elements', |
---|
| 33 | 'type' => 'trigger_action', |
---|
[16968] | 34 | 'vars' => array('array', 'ids'), |
---|
[12608] | 35 | 'files' => array('admin\include\functions.inc.php (delete_elements)'), |
---|
| 36 | ), |
---|
| 37 | array( |
---|
| 38 | 'name' => 'blockmanager_apply', |
---|
| 39 | 'type' => 'trigger_action', |
---|
[16968] | 40 | 'vars' => array('object', 'menublock'), |
---|
[12608] | 41 | 'files' => array('include\block.class.php (BlockManager::apply)'), |
---|
[12921] | 42 | 'infos' => 'use this trigger to modify existing menu blocks', |
---|
[12608] | 43 | ), |
---|
| 44 | array( |
---|
| 45 | 'name' => 'blockmanager_prepare_display', |
---|
| 46 | 'type' => 'trigger_action', |
---|
[16968] | 47 | 'vars' => array('object', 'this'), |
---|
[12608] | 48 | 'files' => array('include\block.class.php (BlockManager::prepare_display)'), |
---|
| 49 | ), |
---|
| 50 | array( |
---|
| 51 | 'name' => 'blockmanager_register_blocks', |
---|
| 52 | 'type' => 'trigger_action', |
---|
[16968] | 53 | 'vars' => array('object', 'menu'), |
---|
[12608] | 54 | 'files' => array('include\block.class.php (BlockManager::load_registered_blocks)'), |
---|
[12921] | 55 | 'infos' => 'use this trigger to add menu block', |
---|
[12608] | 56 | ), |
---|
| 57 | array( |
---|
| 58 | 'name' => 'clean_iptc_value', |
---|
| 59 | 'type' => 'trigger_event', |
---|
[16968] | 60 | 'vars' => array('string', 'value'), |
---|
[12608] | 61 | 'files' => array('include\functions_metadata.inc.php (clean_iptc_value)'), |
---|
| 62 | ), |
---|
| 63 | array( |
---|
| 64 | 'name' => 'combined_css', |
---|
| 65 | 'type' => 'trigger_event', |
---|
[16968] | 66 | 'vars' => array('string', 'href', 'int', 'file_ver0', 'int', 'file_ver1'), |
---|
[12608] | 67 | 'files' => array('include\template.class.php (Template::flush)'), |
---|
| 68 | ), |
---|
| 69 | array( |
---|
| 70 | 'name' => 'combined_css_postfilter', |
---|
| 71 | 'type' => 'trigger_event', |
---|
[16968] | 72 | 'vars' => array('string', 'css'), |
---|
[12608] | 73 | 'files' => array('include\template.class.php (Template::process_css)'), |
---|
| 74 | ), |
---|
| 75 | array( |
---|
| 76 | 'name' => 'combined_script', |
---|
| 77 | 'type' => 'trigger_event', |
---|
[16968] | 78 | 'vars' => array('string', 'ret', 'string', 'script'), |
---|
[12608] | 79 | 'files' => array('include\template.class.php (Template::make_script_src)'), |
---|
| 80 | ), |
---|
| 81 | array( |
---|
| 82 | 'name' => 'delete_categories', |
---|
| 83 | 'type' => 'trigger_action', |
---|
[16968] | 84 | 'vars' => array('array', 'ids'), |
---|
[12608] | 85 | 'files' => array('admin\include\functions.inc.php (delete_categories)'), |
---|
| 86 | ), |
---|
| 87 | array( |
---|
| 88 | 'name' => 'delete_elements', |
---|
| 89 | 'type' => 'trigger_action', |
---|
[16968] | 90 | 'vars' => array('array', 'ids'), |
---|
[12608] | 91 | 'files' => array('admin\include\functions.inc.php (delete_elements)'), |
---|
| 92 | ), |
---|
| 93 | array( |
---|
| 94 | 'name' => 'delete_user', |
---|
| 95 | 'type' => 'trigger_action', |
---|
[16968] | 96 | 'vars' => array('int', 'user_id'), |
---|
[12608] | 97 | 'files' => array('admin\include\functions.inc.php (delete_user)'), |
---|
| 98 | ), |
---|
| 99 | array( |
---|
| 100 | 'name' => 'element_set_global_action', |
---|
| 101 | 'type' => 'trigger_action', |
---|
[16968] | 102 | 'vars' => array('string', 'action', 'array', 'collection'), |
---|
[12608] | 103 | 'files' => array('admin\batch_manager_global.php'), |
---|
| 104 | ), |
---|
| 105 | array( |
---|
| 106 | 'name' => 'format_exif_data', |
---|
| 107 | 'type' => 'trigger_event', |
---|
[16968] | 108 | 'vars' => array('array', 'exif', 'string', 'filename', 'array', 'map'), |
---|
[12608] | 109 | 'files' => array('include\functions_metadata.inc.php (get_exif_data)'), |
---|
| 110 | ), |
---|
| 111 | array( |
---|
| 112 | 'name' => 'functions_history_included', |
---|
| 113 | 'type' => 'trigger_action', |
---|
| 114 | 'vars' => array(), |
---|
| 115 | 'files' => array('admin\include\functions_history.inc.php'), |
---|
| 116 | ), |
---|
| 117 | array( |
---|
| 118 | 'name' => 'functions_mail_included', |
---|
| 119 | 'type' => 'trigger_action', |
---|
| 120 | 'vars' => array(), |
---|
| 121 | 'files' => array('include\functions_mail.inc.php'), |
---|
| 122 | ), |
---|
| 123 | array( |
---|
| 124 | 'name' => 'get_admin_advanced_features_links', |
---|
| 125 | 'type' => 'trigger_event', |
---|
[16968] | 126 | 'vars' => array('array', 'advanced_features'), |
---|
[12608] | 127 | 'files' => array('admin\maintenance.php'), |
---|
| 128 | ), |
---|
| 129 | array( |
---|
| 130 | 'name' => 'get_admin_plugin_menu_links', |
---|
| 131 | 'type' => 'trigger_event', |
---|
[16968] | 132 | 'vars' => array('array', null), |
---|
[12608] | 133 | 'files' => array('admin.php'), |
---|
[12921] | 134 | 'infos' => 'use this trigger to add links into admin plugins menu', |
---|
[12608] | 135 | ), |
---|
| 136 | array( |
---|
| 137 | 'name' => 'get_admins_site_links', |
---|
| 138 | 'type' => 'trigger_event', |
---|
[16968] | 139 | 'vars' => array('array', 'plugin_links', 'int', 'site_id', 'bool', 'is_remote'), |
---|
[12608] | 140 | 'files' => array('admin\site_manager.php'), |
---|
| 141 | ), |
---|
| 142 | array( |
---|
| 143 | 'name' => 'get_batch_manager_prefilters', |
---|
| 144 | 'type' => 'trigger_event', |
---|
[16968] | 145 | 'vars' => array('array', 'prefilters'), |
---|
[12608] | 146 | 'files' => array('admin\batch_manager_global.php'), |
---|
[12921] | 147 | 'infos' => 'use this trigger to add prefilters into batch manager global', |
---|
[12608] | 148 | ), |
---|
| 149 | array( |
---|
| 150 | 'name' => 'get_categories_menu_sql_where', |
---|
| 151 | 'type' => 'trigger_event', |
---|
[16968] | 152 | 'vars' => array('string', 'where', 'bool', 'user_expand', 'bool', 'filter_enabled'), |
---|
[12608] | 153 | 'files' => array('include\functions_category.inc.php (get_categories_menu)'), |
---|
| 154 | ), |
---|
| 155 | array( |
---|
| 156 | 'name' => 'get_category_preferred_image_orders', |
---|
| 157 | 'type' => 'trigger_event', |
---|
[16968] | 158 | 'vars' => array('array', null), |
---|
[12608] | 159 | 'files' => array('include\functions_category.inc.php (get_category_preferred_image_orders)'), |
---|
| 160 | ), |
---|
| 161 | array( |
---|
| 162 | 'name' => 'get_download_url', |
---|
| 163 | 'type' => 'trigger_event', |
---|
[16968] | 164 | 'vars' => array('string', 'url', 'array', 'element_info'), |
---|
[17949] | 165 | 'files' => array('include\functions_picture.inc.php (get_download_url)'), |
---|
[12608] | 166 | ), |
---|
| 167 | array( |
---|
| 168 | 'name' => 'get_element_metadata_available', |
---|
| 169 | 'type' => 'trigger_event', |
---|
[16968] | 170 | 'vars' => array('bool', null, 'string', 'element_path'), |
---|
[12608] | 171 | 'files' => array('picture.php'), |
---|
| 172 | ), |
---|
| 173 | array( |
---|
| 174 | 'name' => 'get_element_url', |
---|
| 175 | 'type' => 'trigger_event', |
---|
[16968] | 176 | 'vars' => array('string', 'url', 'array', 'element_info'), |
---|
[12608] | 177 | 'files' => array('include\functions_picture.inc.php (get_element_url)'), |
---|
| 178 | ), |
---|
| 179 | array( |
---|
| 180 | 'name' => 'get_high_location', |
---|
| 181 | 'type' => 'trigger_event', |
---|
[16968] | 182 | 'vars' => array('string', 'location', 'array', 'element_info'), |
---|
[12608] | 183 | 'files' => array('include\functions_picture.inc.php (get_high_location)'), |
---|
| 184 | ), |
---|
| 185 | array( |
---|
| 186 | 'name' => 'get_high_url', |
---|
| 187 | 'type' => 'trigger_event', |
---|
[16968] | 188 | 'vars' => array('string', 'url', 'array', 'element_info'), |
---|
[12608] | 189 | 'files' => array('include\functions_picture.inc.php (get_high_url)'), |
---|
| 190 | ), |
---|
| 191 | array( |
---|
| 192 | 'name' => 'get_history', |
---|
| 193 | 'type' => 'trigger_event', |
---|
[16968] | 194 | 'vars' => array('array', null, 'array', 'page_search', 'array', 'types'), |
---|
[12608] | 195 | 'files' => array('admin\history.php'), |
---|
| 196 | ), |
---|
| 197 | array( |
---|
| 198 | 'name' => 'get_image_location', |
---|
| 199 | 'type' => 'trigger_event', |
---|
[16968] | 200 | 'vars' => array('string', 'path', 'array', 'element_info'), |
---|
[12608] | 201 | 'files' => array('include\functions_picture.inc.php (get_image_location)'), |
---|
| 202 | ), |
---|
| 203 | array( |
---|
| 204 | 'name' => 'get_popup_help_content', |
---|
| 205 | 'type' => 'trigger_event', |
---|
[16968] | 206 | 'vars' => array('string', 'help_content', 'string', 'page'), |
---|
[12608] | 207 | 'files' => array('admin\popuphelp.php', 'popuphelp.php'), |
---|
| 208 | ), |
---|
| 209 | array( |
---|
| 210 | 'name' => 'get_pwg_themes', |
---|
| 211 | 'type' => 'trigger_event', |
---|
[16968] | 212 | 'vars' => array('array', 'themes'), |
---|
[12608] | 213 | 'files' => array('include\functions.inc.php (get_pwg_themes)'), |
---|
| 214 | ), |
---|
| 215 | array( |
---|
| 216 | 'name' => 'get_thumbnail_title', |
---|
| 217 | 'type' => 'trigger_event', |
---|
[16968] | 218 | 'vars' => array('string', 'title', 'array', 'info'), |
---|
[12608] | 219 | 'files' => array('include\functions.inc.php (get_thumbnail_title)'), |
---|
| 220 | ), |
---|
| 221 | array( |
---|
[15536] | 222 | 'name' => 'get_comments_derivative_params', |
---|
[12608] | 223 | 'type' => 'trigger_event', |
---|
[16968] | 224 | 'vars' => array('ImageStdParams', null), |
---|
[15536] | 225 | 'files' => array('comments.php'), |
---|
| 226 | 'infos' => 'New in 2.4', |
---|
[12608] | 227 | ), |
---|
| 228 | array( |
---|
[15536] | 229 | 'name' => 'get_index_album_derivative_params', |
---|
| 230 | 'type' => 'trigger_event', |
---|
[16968] | 231 | 'vars' => array('ImageStdParams', null), |
---|
[15536] | 232 | 'files' => array('includecategory_cats.php', 'include\category_default.inc.php'), |
---|
| 233 | 'infos' => 'New in 2.4', |
---|
| 234 | ), |
---|
| 235 | array( |
---|
| 236 | 'name' => 'get_src_image_url', |
---|
| 237 | 'type' => 'trigger_event', |
---|
[16968] | 238 | 'vars' => array('string', 'url', 'SrcImage', 'this'), |
---|
[15536] | 239 | 'files' => array('include\derivative.inc.php (SrcImage::__construct)'), |
---|
| 240 | 'infos' => 'New in 2.4', |
---|
| 241 | ), |
---|
| 242 | array( |
---|
| 243 | 'name' => 'get_derivative_url', |
---|
| 244 | 'type' => 'trigger_event', |
---|
[16968] | 245 | 'vars' => array('string', 'url', 'ImageStdParams', null, 'SrcImage', 'this', 'string', 'rel_url'), |
---|
[15536] | 246 | 'files' => array('include\derivative.inc.php (SrcImage::url, SrcImage::get_url)'), |
---|
| 247 | 'infos' => 'New in 2.4', |
---|
| 248 | ), |
---|
| 249 | array( |
---|
[17949] | 250 | 'name' => 'get_tag_alt_names', |
---|
| 251 | 'type' => 'trigger_event', |
---|
| 252 | 'vars' => array('array', null, 'array', 'raw_name'), |
---|
| 253 | 'files' => array('admin\tags.php', 'admin\include\functions.php (get_taglist)'), |
---|
| 254 | 'infos' => 'New in 2.4', |
---|
| 255 | ), |
---|
| 256 | array( |
---|
[12608] | 257 | 'name' => 'init', |
---|
| 258 | 'type' => 'trigger_action', |
---|
| 259 | 'vars' => array(), |
---|
| 260 | 'files' => array('include\common.inc.php'), |
---|
[12921] | 261 | 'infos' => 'this action is called just after the common initialization, $conf, $user and $page (partial) variables are availables', |
---|
[12608] | 262 | ), |
---|
| 263 | array( |
---|
| 264 | 'name' => 'invalidate_user_cache', |
---|
| 265 | 'type' => 'trigger_action', |
---|
[16968] | 266 | 'vars' => array('bool', 'full'), |
---|
[12608] | 267 | 'files' => array('admin\include\functions.inc.php (invalidate_user_cache)'), |
---|
| 268 | ), |
---|
| 269 | array( |
---|
| 270 | 'name' => 'list_check_integrity', |
---|
| 271 | 'type' => 'trigger_action', |
---|
[16968] | 272 | 'vars' => array('object', 'this'), |
---|
[12608] | 273 | 'files' => array('admin\include\check_integrity.class.php (check_integrity::check)'), |
---|
| 274 | ), |
---|
| 275 | array( |
---|
| 276 | 'name' => 'load_image_library', |
---|
| 277 | 'type' => 'trigger_action', |
---|
[16968] | 278 | 'vars' => array('object', 'this'), |
---|
[12608] | 279 | 'files' => array('admin\include\image.class.php (pwg_image::__construct)'), |
---|
| 280 | ), |
---|
| 281 | array( |
---|
| 282 | 'name' => 'load_profile_in_template', |
---|
| 283 | 'type' => 'trigger_action', |
---|
[16968] | 284 | 'vars' => array('array', 'userdata'), |
---|
[12608] | 285 | 'files' => array('profile.php (load_profile_in_template)'), |
---|
| 286 | ), |
---|
| 287 | array( |
---|
| 288 | 'name' => 'loading_lang', |
---|
| 289 | 'type' => 'trigger_action', |
---|
| 290 | 'vars' => array(), |
---|
| 291 | 'files' => array('include\common.inc.php', 'include\functions.inc.php (redirect_html)', 'include\functions_mail.inc.php (switch_lang_to)', 'nbm.php'), |
---|
| 292 | ), |
---|
| 293 | array( |
---|
| 294 | 'name' => 'loc_after_page_header', |
---|
| 295 | 'type' => 'trigger_action', |
---|
| 296 | 'vars' => array(), |
---|
| 297 | 'files' => array('include\page_header.php'), |
---|
| 298 | ), |
---|
| 299 | array( |
---|
| 300 | 'name' => 'loc_begin_about', |
---|
| 301 | 'type' => 'trigger_action', |
---|
| 302 | 'vars' => array(), |
---|
| 303 | 'files' => array('about.php'), |
---|
| 304 | ), |
---|
| 305 | array( |
---|
| 306 | 'name' => 'loc_begin_admin', |
---|
| 307 | 'type' => 'trigger_action', |
---|
| 308 | 'vars' => array(), |
---|
| 309 | 'files' => array('admin.php'), |
---|
| 310 | ), |
---|
| 311 | array( |
---|
| 312 | 'name' => 'loc_begin_admin_page', |
---|
| 313 | 'type' => 'trigger_action', |
---|
| 314 | 'vars' => array(), |
---|
| 315 | 'files' => array('admin.php'), |
---|
| 316 | ), |
---|
| 317 | array( |
---|
| 318 | 'name' => 'loc_begin_cat_list', |
---|
| 319 | 'type' => 'trigger_action', |
---|
| 320 | 'vars' => array(), |
---|
| 321 | 'files' => array('admin\cat_list.php'), |
---|
| 322 | ), |
---|
| 323 | array( |
---|
| 324 | 'name' => 'loc_begin_cat_modify', |
---|
| 325 | 'type' => 'trigger_action', |
---|
| 326 | 'vars' => array(), |
---|
| 327 | 'files' => array('admin\cat_modify.php'), |
---|
| 328 | ), |
---|
| 329 | array( |
---|
| 330 | 'name' => 'loc_begin_element_set_global', |
---|
| 331 | 'type' => 'trigger_action', |
---|
| 332 | 'vars' => array(), |
---|
| 333 | 'files' => array('admin\batch_manager_global.php'), |
---|
| 334 | ), |
---|
| 335 | array( |
---|
| 336 | 'name' => 'loc_begin_element_set_unit', |
---|
| 337 | 'type' => 'trigger_action', |
---|
| 338 | 'vars' => array(), |
---|
| 339 | 'files' => array('admin\batch_manager_unit.php'), |
---|
| 340 | ), |
---|
| 341 | array( |
---|
| 342 | 'name' => 'loc_begin_index', |
---|
| 343 | 'type' => 'trigger_action', |
---|
| 344 | 'vars' => array(), |
---|
| 345 | 'files' => array('index.php'), |
---|
| 346 | ), |
---|
| 347 | array( |
---|
| 348 | 'name' => 'loc_begin_index_category_thumbnails', |
---|
| 349 | 'type' => 'trigger_action', |
---|
[16968] | 350 | 'vars' => array('array', 'categories'), |
---|
[12608] | 351 | 'files' => array('include\category_cats.inc.php'), |
---|
| 352 | ), |
---|
| 353 | array( |
---|
| 354 | 'name' => 'loc_begin_index_thumbnails', |
---|
| 355 | 'type' => 'trigger_action', |
---|
[16968] | 356 | 'vars' => array('array', 'pictures'), |
---|
[12608] | 357 | 'files' => array('include\category_default.inc.php'), |
---|
| 358 | ), |
---|
| 359 | array( |
---|
| 360 | 'name' => 'loc_begin_page_header', |
---|
| 361 | 'type' => 'trigger_action', |
---|
| 362 | 'vars' => array(), |
---|
| 363 | 'files' => array('include\page_header.php'), |
---|
| 364 | ), |
---|
| 365 | array( |
---|
| 366 | 'name' => 'loc_begin_page_tail', |
---|
| 367 | 'type' => 'trigger_action', |
---|
| 368 | 'vars' => array(), |
---|
| 369 | 'files' => array('include\page_tail.php'), |
---|
| 370 | ), |
---|
| 371 | array( |
---|
| 372 | 'name' => 'loc_begin_picture', |
---|
| 373 | 'type' => 'trigger_action', |
---|
| 374 | 'vars' => array(), |
---|
| 375 | 'files' => array('picture.php'), |
---|
| 376 | ), |
---|
| 377 | array( |
---|
| 378 | 'name' => 'loc_begin_profile', |
---|
| 379 | 'type' => 'trigger_action', |
---|
| 380 | 'vars' => array(), |
---|
| 381 | 'files' => array('profile.php'), |
---|
| 382 | ), |
---|
| 383 | array( |
---|
| 384 | 'name' => 'loc_end_admin', |
---|
| 385 | 'type' => 'trigger_action', |
---|
| 386 | 'vars' => array(), |
---|
| 387 | 'files' => array('admin.php'), |
---|
| 388 | ), |
---|
| 389 | array( |
---|
| 390 | 'name' => 'loc_end_cat_list', |
---|
| 391 | 'type' => 'trigger_action', |
---|
| 392 | 'vars' => array(), |
---|
| 393 | 'files' => array('admin\cat_list.php'), |
---|
| 394 | ), |
---|
| 395 | array( |
---|
| 396 | 'name' => 'loc_end_cat_modify', |
---|
| 397 | 'type' => 'trigger_action', |
---|
| 398 | 'vars' => array(), |
---|
| 399 | 'files' => array('admin\cat_modify.php'), |
---|
| 400 | ), |
---|
| 401 | array( |
---|
| 402 | 'name' => 'loc_end_element_set_global', |
---|
| 403 | 'type' => 'trigger_action', |
---|
| 404 | 'vars' => array(), |
---|
| 405 | 'files' => array('admin\batch_manager_global.php'), |
---|
| 406 | ), |
---|
| 407 | array( |
---|
| 408 | 'name' => 'loc_end_element_set_unit', |
---|
| 409 | 'type' => 'trigger_action', |
---|
| 410 | 'vars' => array(), |
---|
| 411 | 'files' => array('admin\batch_manager_unit.php'), |
---|
| 412 | ), |
---|
| 413 | array( |
---|
| 414 | 'name' => 'loc_end_index', |
---|
| 415 | 'type' => 'trigger_action', |
---|
| 416 | 'vars' => array(), |
---|
| 417 | 'files' => array('index.php'), |
---|
| 418 | ), |
---|
| 419 | array( |
---|
| 420 | 'name' => 'loc_end_index_category_thumbnails', |
---|
| 421 | 'type' => 'trigger_event', |
---|
[16968] | 422 | 'vars' => array('array', 'tpl_thumbnails_var', 'array', 'categories'), |
---|
[12608] | 423 | 'files' => array('include\category_cats.inc.php'), |
---|
| 424 | ), |
---|
| 425 | array( |
---|
| 426 | 'name' => 'loc_end_index_thumbnails', |
---|
| 427 | 'type' => 'trigger_event', |
---|
[16968] | 428 | 'vars' => array('array', 'tpl_thumbnails_var', 'array', 'pictures'), |
---|
[12608] | 429 | 'files' => array('include\category_default.inc.php'), |
---|
| 430 | ), |
---|
| 431 | array( |
---|
| 432 | 'name' => 'loc_end_page_header', |
---|
| 433 | 'type' => 'trigger_action', |
---|
| 434 | 'vars' => array(), |
---|
| 435 | 'files' => array('include\page_header.php'), |
---|
| 436 | ), |
---|
| 437 | array( |
---|
| 438 | 'name' => 'loc_end_page_tail', |
---|
| 439 | 'type' => 'trigger_action', |
---|
| 440 | 'vars' => array(), |
---|
| 441 | 'files' => array('include\page_tail.php'), |
---|
| 442 | ), |
---|
| 443 | array( |
---|
| 444 | 'name' => 'loc_end_picture', |
---|
| 445 | 'type' => 'trigger_action', |
---|
| 446 | 'vars' => array(), |
---|
| 447 | 'files' => array('picture.php'), |
---|
| 448 | ), |
---|
| 449 | array( |
---|
| 450 | 'name' => 'loc_end_profile', |
---|
| 451 | 'type' => 'trigger_action', |
---|
| 452 | 'vars' => array(), |
---|
| 453 | 'files' => array('profile.php'), |
---|
| 454 | ), |
---|
| 455 | array( |
---|
| 456 | 'name' => 'loc_end_section_init', |
---|
| 457 | 'type' => 'trigger_action', |
---|
| 458 | 'vars' => array(), |
---|
| 459 | 'files' => array('include\section_init.inc.php'), |
---|
[12921] | 460 | 'infos' => 'this action is called after section initilization, $page variable is fully defined', |
---|
[12608] | 461 | ), |
---|
| 462 | array( |
---|
| 463 | 'name' => 'loc_visible_user_list', |
---|
| 464 | 'type' => 'trigger_event', |
---|
[16968] | 465 | 'vars' => array('array', 'visible_user_list'), |
---|
[12608] | 466 | 'files' => array('admin\user_list.php'), |
---|
| 467 | ), |
---|
| 468 | array( |
---|
| 469 | 'name' => 'login_failure', |
---|
| 470 | 'type' => 'trigger_action', |
---|
[16968] | 471 | 'vars' => array('string', 'username'), |
---|
[12608] | 472 | 'files' => array('include\functions_user.inc.php (try_log_user)'), |
---|
| 473 | ), |
---|
| 474 | array( |
---|
| 475 | 'name' => 'login_success', |
---|
| 476 | 'type' => 'trigger_action', |
---|
[16968] | 477 | 'vars' => array('string', 'username'), |
---|
[12608] | 478 | 'files' => array('include\functions_user.inc.php (auto_login, try_log_user)'), |
---|
| 479 | ), |
---|
| 480 | array( |
---|
| 481 | 'name' => 'mail_group_assign_vars', |
---|
| 482 | 'type' => 'trigger_event', |
---|
[16968] | 483 | 'vars' => array('array', 'assign_vars'), |
---|
[12608] | 484 | 'files' => array('include\functions_mail.inc.php (pwg_mail_group)'), |
---|
| 485 | ), |
---|
| 486 | array( |
---|
| 487 | 'name' => 'nbm_event_handler_added', |
---|
| 488 | 'type' => 'trigger_action', |
---|
| 489 | 'vars' => array(), |
---|
| 490 | 'files' => array('admin\notification_by_mail.php'), |
---|
| 491 | ), |
---|
| 492 | array( |
---|
| 493 | 'name' => 'nbm_render_global_customize_mail_content', |
---|
| 494 | 'type' => 'trigger_event', |
---|
[16968] | 495 | 'vars' => array('string', 'customize_mail_content'), |
---|
[12608] | 496 | 'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'), |
---|
| 497 | ), |
---|
| 498 | array( |
---|
| 499 | 'name' => 'nbm_render_user_customize_mail_content', |
---|
| 500 | 'type' => 'trigger_event', |
---|
[16968] | 501 | 'vars' => array('string', 'customize_mail_content', 'string', 'nbm_user'), |
---|
[12608] | 502 | 'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'), |
---|
| 503 | ), |
---|
| 504 | array( |
---|
| 505 | 'name' => 'perform_batch_manager_prefilters', |
---|
| 506 | 'type' => 'trigger_event', |
---|
[16968] | 507 | 'vars' => array('array', 'filter_sets', 'string', 'session_prefilter'), |
---|
[12608] | 508 | 'files' => array('admin\batch_manager.php'), |
---|
| 509 | ), |
---|
| 510 | array( |
---|
| 511 | 'name' => 'picture_pictures_data', |
---|
| 512 | 'type' => 'trigger_event', |
---|
[16968] | 513 | 'vars' => array('array', 'picture'), |
---|
[12608] | 514 | 'files' => array('picture.php'), |
---|
| 515 | ), |
---|
| 516 | array( |
---|
| 517 | 'name' => 'plugins_loaded', |
---|
| 518 | 'type' => 'trigger_action', |
---|
| 519 | 'vars' => array(), |
---|
| 520 | 'files' => array('include\functions_plugins.inc.php (load_plugins)'), |
---|
| 521 | ), |
---|
| 522 | array( |
---|
| 523 | 'name' => 'pwg_log_allowed', |
---|
| 524 | 'type' => 'trigger_event', |
---|
[16968] | 525 | 'vars' => array('bool', 'do_log', 'int', 'image_id', 'string', 'image_type'), |
---|
[12608] | 526 | 'files' => array('include\functions.inc.php (pwg_log)'), |
---|
| 527 | ), |
---|
| 528 | array( |
---|
| 529 | 'name' => 'register_user', |
---|
| 530 | 'type' => 'trigger_action', |
---|
[16968] | 531 | 'vars' => array('array', 'user'), |
---|
[12608] | 532 | 'files' => array('include\functions_user.inc.php (register_user)'), |
---|
| 533 | ), |
---|
| 534 | array( |
---|
| 535 | 'name' => 'register_user_check', |
---|
| 536 | 'type' => 'trigger_event', |
---|
[16968] | 537 | 'vars' => array('array', 'errors', 'array', 'user'), |
---|
[12608] | 538 | 'files' => array('include\functions_user.inc.php (register_user)'), |
---|
| 539 | ), |
---|
| 540 | array( |
---|
| 541 | 'name' => 'render_category_description', |
---|
| 542 | 'type' => 'trigger_event', |
---|
[16968] | 543 | 'vars' => array('string', 'category_description', 'string', 'action'), |
---|
[12608] | 544 | 'files' => array('include\category_cats.inc.php', 'include\section_init.inc.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList)'), |
---|
| 545 | ), |
---|
| 546 | array( |
---|
| 547 | 'name' => 'render_category_literal_description', |
---|
| 548 | 'type' => 'trigger_event', |
---|
[16968] | 549 | 'vars' => array('string', 'category_description'), |
---|
[12608] | 550 | 'files' => array('include\category_cats.inc.php'), |
---|
| 551 | ), |
---|
| 552 | array( |
---|
| 553 | 'name' => 'render_category_name', |
---|
| 554 | 'type' => 'trigger_event', |
---|
[16968] | 555 | 'vars' => array('string', 'category_name', 'string', 'location'), |
---|
[12608] | 556 | 'files' => array('admin\cat_list.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList, ws_categories_move)'), |
---|
| 557 | ), |
---|
| 558 | array( |
---|
| 559 | 'name' => 'render_comment_author', |
---|
| 560 | 'type' => 'trigger_event', |
---|
[16968] | 561 | 'vars' => array('string', 'comment_author'), |
---|
[12608] | 562 | 'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'), |
---|
| 563 | ), |
---|
| 564 | array( |
---|
| 565 | 'name' => 'render_comment_content', |
---|
| 566 | 'type' => 'trigger_event', |
---|
[16968] | 567 | 'vars' => array('string', 'comment_content'), |
---|
[12608] | 568 | 'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'), |
---|
| 569 | ), |
---|
| 570 | array( |
---|
| 571 | 'name' => 'render_element_content', |
---|
| 572 | 'type' => 'trigger_event', |
---|
[16968] | 573 | 'vars' => array('string', 'content', 'array', 'current_picture'), |
---|
[12608] | 574 | 'files' => array('picture.php'), |
---|
| 575 | ), |
---|
| 576 | array( |
---|
| 577 | 'name' => 'render_element_description', |
---|
| 578 | 'type' => 'trigger_event', |
---|
[16968] | 579 | 'vars' => array('string', 'element_name'), |
---|
[12608] | 580 | 'files' => array('include\functions.inc.php (get_picture_title)', 'picture.php'), |
---|
| 581 | ), |
---|
| 582 | array( |
---|
| 583 | 'name' => 'render_lost_password_mail_content', |
---|
| 584 | 'type' => 'trigger_event', |
---|
[16968] | 585 | 'vars' => array('string', 'message'), |
---|
[12608] | 586 | 'files' => array('password.php (process_password_request)'), |
---|
| 587 | ), |
---|
| 588 | array( |
---|
| 589 | 'name' => 'render_page_banner', |
---|
| 590 | 'type' => 'trigger_event', |
---|
[16968] | 591 | 'vars' => array('string', 'gallery_title'), |
---|
[12608] | 592 | 'files' => array('include\page_header.php'), |
---|
| 593 | ), |
---|
| 594 | array( |
---|
| 595 | 'name' => 'render_tag_name', |
---|
| 596 | 'type' => 'trigger_event', |
---|
[16968] | 597 | 'vars' => array('string', 'tag_name'), |
---|
[17949] | 598 | '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'), |
---|
[12608] | 599 | ), |
---|
| 600 | array( |
---|
| 601 | 'name' => 'render_tag_url', |
---|
| 602 | 'type' => 'trigger_event', |
---|
[16968] | 603 | 'vars' => array('string', 'tag_name'), |
---|
[12608] | 604 | 'files' => array('include\functions.php (tag_id_from_tag_name, create_tag)', 'admin\tags.php'), |
---|
| 605 | ), |
---|
| 606 | array( |
---|
| 607 | 'name' => 'save_profile_from_post', |
---|
| 608 | 'type' => 'trigger_action', |
---|
[16968] | 609 | 'vars' => array('int', 'user_id'), |
---|
[12608] | 610 | 'files' => array('profile.php (save_profile_from_post)'), |
---|
| 611 | ), |
---|
| 612 | array( |
---|
| 613 | 'name' => 'send_mail', |
---|
| 614 | 'type' => 'trigger_event', |
---|
[16968] | 615 | 'vars' => array('bool', 'result', 'string', 'mail_to', 'string', 'mail_subject', 'string', 'mail_content', 'array', 'mail_headers'), |
---|
[12608] | 616 | 'files' => array('include\functions_mail.inc.php (pwg_mail)'), |
---|
| 617 | ), |
---|
| 618 | array( |
---|
| 619 | 'name' => 'send_mail_content', |
---|
| 620 | 'type' => 'trigger_event', |
---|
[16968] | 621 | 'vars' => array('string', 'content'), |
---|
[12608] | 622 | 'files' => array('include\functions_mail.inc.php (pwg_mail)'), |
---|
| 623 | ), |
---|
| 624 | array( |
---|
| 625 | 'name' => 'send_mail_headers', |
---|
| 626 | 'type' => 'trigger_event', |
---|
[16968] | 627 | 'vars' => array('array', 'headers'), |
---|
[12608] | 628 | 'files' => array('include\functions_mail.inc.php (pwg_mail)'), |
---|
| 629 | ), |
---|
| 630 | array( |
---|
| 631 | 'name' => 'send_mail_subject', |
---|
| 632 | 'type' => 'trigger_event', |
---|
[16968] | 633 | 'vars' => array('string', 'cvt_subject'), |
---|
[12608] | 634 | 'files' => array('include\functions_mail.inc.php (pwg_mail)'), |
---|
| 635 | ), |
---|
| 636 | array( |
---|
| 637 | 'name' => 'send_mail_to', |
---|
| 638 | 'type' => 'trigger_event', |
---|
[16968] | 639 | 'vars' => array('string', 'to'), |
---|
[12608] | 640 | 'files' => array('include\functions_mail.inc.php (pwg_mail)'), |
---|
| 641 | ), |
---|
| 642 | array( |
---|
| 643 | 'name' => 'sendResponse', |
---|
| 644 | 'type' => 'trigger_action', |
---|
[16968] | 645 | 'vars' => array('string', 'encodedResponse'), |
---|
[12608] | 646 | 'files' => array('include\ws_core.inc.php (PwgServer::sendResponse)'), |
---|
| 647 | ), |
---|
| 648 | array( |
---|
| 649 | 'name' => 'set_status_header', |
---|
| 650 | 'type' => 'trigger_action', |
---|
[16968] | 651 | 'vars' => array('int', 'code', 'string', 'text'), |
---|
[12608] | 652 | 'files' => array('include\functions_html.inc.php (set_status_header)'), |
---|
| 653 | ), |
---|
| 654 | array( |
---|
[16968] | 655 | 'name' => 'tabsheet_before_select', |
---|
| 656 | 'type' => 'trigger_event', |
---|
| 657 | 'vars' => array('array', 'sheets', 'string', 'tabsheet_id'), |
---|
| 658 | 'files' => array('include\tabsheet.class.php (tabsheet::select)'), |
---|
| 659 | 'infos' => 'New in 2.4, use this trigger to add tabs to a tabsheets', |
---|
| 660 | ), |
---|
| 661 | array( |
---|
[12608] | 662 | 'name' => 'trigger', |
---|
| 663 | 'type' => 'trigger_action', |
---|
[16968] | 664 | 'vars' => array('array', null), |
---|
[12608] | 665 | 'files' => array('include\functions_plugins.inc.php (trigger_event, trigger_action)'), |
---|
| 666 | ), |
---|
| 667 | array( |
---|
| 668 | 'name' => 'user_comment_check', |
---|
| 669 | 'type' => 'trigger_event', |
---|
[16968] | 670 | 'vars' => array('string', 'comment_action', 'array', 'comm'), |
---|
[12608] | 671 | 'files' => array('include\functions_comment.inc.php (insert_user_comment, update_user_comment)'), |
---|
[12921] | 672 | 'infos' => 'use this trigger to add conditions on comment validation', |
---|
[12608] | 673 | ), |
---|
| 674 | array( |
---|
| 675 | 'name' => 'user_comment_deletion', |
---|
| 676 | 'type' => 'trigger_action', |
---|
[16968] | 677 | 'vars' => array('mixed', 'comment_id'), |
---|
[12608] | 678 | 'files' => array('include\functions_comment.inc.php (delete_user_comment)'), |
---|
| 679 | 'infos' => '$comment_id is and int or an array of int', |
---|
| 680 | ), |
---|
| 681 | array( |
---|
| 682 | 'name' => 'user_comment_insertion', |
---|
| 683 | 'type' => 'trigger_action', |
---|
[16968] | 684 | 'vars' => array('array', 'comm'), |
---|
[12608] | 685 | 'files' => array('include\picture_comment.inc.php'), |
---|
| 686 | ), |
---|
| 687 | array( |
---|
| 688 | 'name' => 'user_comment_validation', |
---|
| 689 | 'type' => 'trigger_action', |
---|
[16968] | 690 | 'vars' => array('mixed', 'comment_id'), |
---|
[12608] | 691 | 'files' => array('include\functions_comment.inc.php (validate_user_comment)'), |
---|
| 692 | 'infos' => '$comment_id is and int or an array of int', |
---|
| 693 | ), |
---|
| 694 | array( |
---|
| 695 | 'name' => 'user_init', |
---|
| 696 | 'type' => 'trigger_action', |
---|
[16968] | 697 | 'vars' => array('array', 'user'), |
---|
[12608] | 698 | 'files' => array('include\user.inc.php'), |
---|
| 699 | ), |
---|
| 700 | array( |
---|
| 701 | 'name' => 'ws_add_methods', |
---|
| 702 | 'type' => 'trigger_action', |
---|
[16968] | 703 | 'vars' => array('object', 'this'), |
---|
[12608] | 704 | 'files' => array('include\ws_core.inc.php (PwgServer::run)'), |
---|
| 705 | ), |
---|
| 706 | array( |
---|
| 707 | 'name' => 'ws_invoke_allowed', |
---|
| 708 | 'type' => 'trigger_event', |
---|
[16968] | 709 | 'vars' => array('bool', null, 'string', 'methodName', 'array', 'params'), |
---|
[12608] | 710 | 'files' => array('include\ws_core.inc.php (PwgServer::invoke)'), |
---|
| 711 | ), |
---|
| 712 | ); |
---|
| 713 | ?> |
---|
| 714 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
---|
| 715 | "http://www.w3.org/TR/html4/strict.dtd"> |
---|
| 716 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr"> |
---|
| 717 | <head> |
---|
| 718 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
| 719 | <title>Piwigo Core Triggers</title> |
---|
| 720 | |
---|
| 721 | <link type="text/css" rel="stylesheet" media="screen" href="tablesorter/jquery.tablesorter.css"> |
---|
| 722 | <script type="text/javascript" src="../themes/default/js/jquery.min.js"></script> |
---|
| 723 | <script type="text/javascript" src="tablesorter/jquery.tablesorter.min.js"></script> |
---|
| 724 | |
---|
| 725 | |
---|
| 726 | <script type="text/javascript"> |
---|
| 727 | $(document).ready(function() { |
---|
| 728 | $('#triggers').tablesorter({ |
---|
[12921] | 729 | sortList: [[0,0]] |
---|
[12608] | 730 | }); |
---|
| 731 | }); |
---|
| 732 | </script> |
---|
| 733 | </head> |
---|
| 734 | |
---|
| 735 | <body style="font-family:arial;"> |
---|
| 736 | <h2>Piwigo Core Triggers</h2> |
---|
| 737 | |
---|
| 738 | <a href="http://piwigo.org/doc/doku.php?id=dev:plugins">For more infos about triggers</a> |
---|
| 739 | |
---|
| 740 | <table id="triggers" class="tablesorter"> |
---|
| 741 | <thead> |
---|
| 742 | <tr> |
---|
| 743 | <th>Name</th> |
---|
| 744 | <th>Type</th> |
---|
| 745 | <th>Vars</th> |
---|
| 746 | <th>Usage in the core <span style="font-weight:normal !important;">file (<i>function</i>)</span></th> |
---|
| 747 | <th>Commentary</th> |
---|
| 748 | </tr> |
---|
| 749 | </thead> |
---|
| 750 | <tbody> |
---|
| 751 | |
---|
| 752 | <?php |
---|
| 753 | foreach ($core as $trigger) |
---|
| 754 | { |
---|
| 755 | echo ' |
---|
| 756 | <tr> |
---|
| 757 | <td>'.$trigger['name'].'</td> |
---|
| 758 | <td>'.$trigger['type'].'</td> |
---|
| 759 | <td>'; |
---|
[16968] | 760 | for ($i=0; $i<count($trigger['vars']); $i+=2) |
---|
[12608] | 761 | { |
---|
[16968] | 762 | if ($i>0) echo ', '; |
---|
| 763 | echo $trigger['vars'][$i].' '.(!empty($trigger['vars'][$i+1])?'<i>$'.$trigger['vars'][$i+1].'</i>':null); |
---|
[12608] | 764 | } |
---|
| 765 | echo ' |
---|
| 766 | </td> |
---|
| 767 | <td>'; |
---|
| 768 | $f=1; |
---|
| 769 | foreach ($trigger['files'] as $file) |
---|
| 770 | { |
---|
| 771 | if (!$f) echo '<br>'; $f=0; |
---|
| 772 | echo preg_replace('#\((.+)\)#', '(<i>$1</i>)', $file); |
---|
| 773 | } |
---|
| 774 | echo ' |
---|
| 775 | </td> |
---|
| 776 | <td>'.@$trigger['infos'].'</td> |
---|
| 777 | </tr>'; |
---|
| 778 | } |
---|
| 779 | ?> |
---|
| 780 | |
---|
| 781 | </tbody> |
---|
| 782 | </table> |
---|
| 783 | |
---|
| 784 | </body> |
---|
| 785 | </html> |
---|