Changeset 28587
- Timestamp:
- Jun 2, 2014, 9:55:46 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 62 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/about.php
r26461 r28587 38 38 $page['body_id'] = 'theAboutPage'; 39 39 40 trigger_ action('loc_begin_about');40 trigger_notify('loc_begin_about'); 41 41 42 42 $template->set_filename('about', 'about.tpl'); -
trunk/admin.php
r28490 r28587 34 34 include_once(PHPWG_ROOT_PATH.'admin/include/add_core_tabs.inc.php'); 35 35 36 trigger_ action('loc_begin_admin');36 trigger_notify('loc_begin_admin'); 37 37 38 38 // +-----------------------------------------------------------------------+ … … 245 245 // +-----------------------------------------------------------------------+ 246 246 247 $plugin_menu_links = trigger_ event('get_admin_plugin_menu_links', array() );247 $plugin_menu_links = trigger_change('get_admin_plugin_menu_links', array() ); 248 248 249 249 function UC_name_compare($a, $b) … … 285 285 // +-----------------------------------------------------------------------+ 286 286 287 trigger_ action('loc_begin_admin_page');287 trigger_notify('loc_begin_admin_page'); 288 288 include(PHPWG_ROOT_PATH.'admin/'.$page['page'].'.php'); 289 289 … … 299 299 include(PHPWG_ROOT_PATH.'include/page_header.php'); 300 300 301 trigger_ action('loc_end_admin');301 trigger_notify('loc_end_admin'); 302 302 303 303 flush_page_messages(); -
trunk/admin/album_notification.php
r27538 r28587 84 84 $_POST['group'], 85 85 array( 86 'subject' => l10n('[%s] Visit album %s', $conf['gallery_title'], trigger_ event('render_category_name', $category['name'], 'admin_cat_list')),86 'subject' => l10n('[%s] Visit album %s', $conf['gallery_title'], trigger_change('render_category_name', $category['name'], 'admin_cat_list')), 87 87 // TODO : change this language variable to 'Visit album %s' 88 88 // TODO : 'language_selected' => .... … … 92 92 'assign' => array( 93 93 'IMG_URL' => $img_url, 94 'CAT_NAME' => trigger_ event('render_category_name', $category['name'], 'admin_cat_list'),94 'CAT_NAME' => trigger_change('render_category_name', $category['name'], 'admin_cat_list'), 95 95 'LINK' => make_index_url(array( 96 96 'category' => array( 97 97 'id' => $category['id'], 98 'name' => trigger_ event('render_category_name', $category['name'], 'admin_cat_list'),98 'name' => trigger_change('render_category_name', $category['name'], 'admin_cat_list'), 99 99 'permalink' => $category['permalink'] 100 100 ) -
trunk/admin/batch_manager.php
r28459 r28587 302 302 } 303 303 304 $filter_sets = trigger_ event('perform_batch_manager_prefilters', $filter_sets, $_SESSION['bulk_manager_filter']['prefilter']);304 $filter_sets = trigger_change('perform_batch_manager_prefilters', $filter_sets, $_SESSION['bulk_manager_filter']['prefilter']); 305 305 } 306 306 -
trunk/admin/batch_manager_global.php
r28559 r28587 41 41 check_status(ACCESS_ADMINISTRATOR); 42 42 43 trigger_ action('loc_begin_element_set_global');43 trigger_notify('loc_begin_element_set_global'); 44 44 45 45 check_input_parameter('del_tags', $_POST, true, PATTERN_ID); … … 405 405 } 406 406 407 trigger_ action('element_set_global_action', $action, $collection);407 trigger_notify('element_set_global_action', $action, $collection); 408 408 } 409 409 … … 430 430 } 431 431 432 $prefilters = trigger_ event('get_batch_manager_prefilters', $prefilters);432 $prefilters = trigger_change('get_batch_manager_prefilters', $prefilters); 433 433 usort($prefilters, 'UC_name_compare'); 434 434 … … 675 675 )); 676 676 677 trigger_ action('loc_end_element_set_global');677 trigger_notify('loc_end_element_set_global'); 678 678 679 679 //----------------------------------------------------------- sending html code -
trunk/admin/batch_manager_unit.php
r28532 r28587 40 40 check_status(ACCESS_ADMINISTRATOR); 41 41 42 trigger_ action('loc_begin_element_set_unit');42 trigger_notify('loc_begin_element_set_unit'); 43 43 44 44 // +-----------------------------------------------------------------------+ … … 255 255 } 256 256 257 trigger_ action('loc_end_element_set_unit');257 trigger_notify('loc_end_element_set_unit'); 258 258 259 259 // +-----------------------------------------------------------------------+ -
trunk/admin/cat_list.php
r26461 r28587 34 34 check_status(ACCESS_ADMINISTRATOR); 35 35 36 trigger_ action('loc_begin_cat_list');36 trigger_notify('loc_begin_cat_list'); 37 37 38 38 if (!empty($_POST) or isset($_GET['delete'])) … … 325 325 array( 326 326 'NAME' => 327 trigger_ event(327 trigger_change( 328 328 'render_category_name', 329 329 $category['name'], … … 364 364 } 365 365 366 trigger_ action('loc_end_cat_list');366 trigger_notify('loc_end_cat_list'); 367 367 368 368 // +-----------------------------------------------------------------------+ -
trunk/admin/cat_modify.php
r28533 r28587 104 104 check_status(ACCESS_ADMINISTRATOR); 105 105 106 trigger_ action('loc_begin_cat_modify');106 trigger_notify('loc_begin_cat_modify'); 107 107 108 108 //---------------------------------------------------------------- verification … … 369 369 } 370 370 371 trigger_ action('loc_end_cat_modify');371 trigger_notify('loc_end_cat_modify'); 372 372 373 373 //----------------------------------------------------------- sending html code -
trunk/admin/comments.php
r26461 r28587 201 201 'ID' => $row['id'], 202 202 'TN_SRC' => $thumb, 203 'AUTHOR' => trigger_ event('render_comment_author', $author_name),203 'AUTHOR' => trigger_change('render_comment_author', $author_name), 204 204 'DATE' => format_date($row['date'], true), 205 'CONTENT' => trigger_ event('render_comment_content',$row['content']),205 'CONTENT' => trigger_change('render_comment_content',$row['content']), 206 206 'IS_PENDING' => ('false' == $row['validated']), 207 207 ) -
trunk/admin/help.php
r28101 r28587 47 47 $tabsheet->assign(); 48 48 49 trigger_ action('loc_end_help');49 trigger_notify('loc_end_help'); 50 50 51 51 $template->set_filenames(array('help' => 'help.tpl')); -
trunk/admin/history.php
r28500 r28587 217 217 218 218 /*TODO - no need to get a huge number of rows from db (should take only what needed for display + SQL_CALC_FOUND_ROWS*/ 219 $data = trigger_ event('get_history', array(), $page['search'], $types);219 $data = trigger_change('get_history', array(), $page['search'], $types); 220 220 usort($data, 'history_compare'); 221 221 … … 317 317 while ($row=pwg_db_fetch_assoc($result)) 318 318 { 319 $name_of_tag[ $row['id'] ] = '<a href="'.make_index_url( array('tags'=>array($row))).'">'.trigger_ event("render_tag_name", $row['name'], $row).'</a>';319 $name_of_tag[ $row['id'] ] = '<a href="'.make_index_url( array('tags'=>array($row))).'">'.trigger_change("render_tag_name", $row['name'], $row).'</a>'; 320 320 } 321 321 } … … 409 409 if (isset($image_infos[$line['image_id']]['label'])) 410 410 { 411 $image_title.= ' '.trigger_ event('render_element_description', $image_infos[$line['image_id']]['label']);411 $image_title.= ' '.trigger_change('render_element_description', $image_infos[$line['image_id']]['label']); 412 412 } 413 413 else -
trunk/admin/include/check_integrity.class.php
r26461 r28587 67 67 $this->build_ignore_list = array(); 68 68 69 trigger_ action('list_check_integrity', $this);69 trigger_notify('list_check_integrity', $this); 70 70 71 71 // Information -
trunk/admin/include/functions.php
r28572 r28587 163 163 pwg_query($query); 164 164 165 trigger_ action('delete_categories', $ids);165 trigger_notify('delete_categories', $ids); 166 166 } 167 167 … … 251 251 return 0; 252 252 } 253 trigger_ action('begin_delete_elements', $ids);253 trigger_notify('begin_delete_elements', $ids); 254 254 255 255 if ($physical_deletion) … … 326 326 } 327 327 328 trigger_ action('delete_elements', $ids);328 trigger_notify('delete_elements', $ids); 329 329 return count($ids); 330 330 } … … 384 384 pwg_query($query); 385 385 386 trigger_ action('delete_user', $user_id);386 trigger_notify('delete_user', $user_id); 387 387 } 388 388 … … 1574 1574 if (count($existing_tags = array_from_query($query, 'id')) == 0) 1575 1575 { 1576 $url_name = trigger_ event('render_tag_url', $tag_name);1576 $url_name = trigger_change('render_tag_url', $tag_name); 1577 1577 // search existing by url name 1578 1578 $query = ' … … 1842 1842 pwg_query($query); 1843 1843 } 1844 trigger_ action('invalidate_user_cache', $full);1844 trigger_notify('invalidate_user_cache', $full); 1845 1845 } 1846 1846 … … 1977 1977 array( 1978 1978 'name' => $tag_name, 1979 'url_name' => trigger_ event('render_tag_url', $tag_name),1979 'url_name' => trigger_change('render_tag_url', $tag_name), 1980 1980 ) 1981 1981 ); … … 2327 2327 { 2328 2328 $raw_name = $row['name']; 2329 $name = trigger_ event('render_tag_name', $raw_name, $row);2329 $name = trigger_change('render_tag_name', $raw_name, $row); 2330 2330 2331 2331 $taglist[] = array( … … 2336 2336 if (!$only_user_language) 2337 2337 { 2338 $alt_names = trigger_ event('get_tag_alt_names', array(), $raw_name);2338 $alt_names = trigger_change('get_tag_alt_names', array(), $raw_name); 2339 2339 2340 2340 foreach( array_diff( array_unique($alt_names), array($name) ) as $alt) -
trunk/admin/include/functions_history.inc.php
r26946 r28587 178 178 179 179 add_event_handler('get_history', 'get_history', EVENT_HANDLER_PRIORITY_NEUTRAL, 3); 180 trigger_ action('functions_history_included');180 trigger_notify('functions_history_included'); 181 181 182 182 ?> -
trunk/admin/include/image.class.php
r28199 r28587 65 65 $this->source_filepath = $source_filepath; 66 66 67 trigger_ action('load_image_library', array(&$this) );67 trigger_notify('load_image_library', array(&$this) ); 68 68 69 69 if (is_object($this->image)) -
trunk/admin/include/tabsheet.class.php
r26461 r28587 89 89 function select($name) 90 90 { 91 $this->sheets = trigger_ event('tabsheet_before_select', $this->sheets, $this->uniqid);91 $this->sheets = trigger_change('tabsheet_before_select', $this->sheets, $this->uniqid); 92 92 if (!array_key_exists($name, $this->sheets)) 93 93 { -
trunk/admin/maintenance.php
r28432 r28587 221 221 222 222 //$advanced_features is array of array composed of CAPTION & URL 223 $advanced_features = trigger_ event(223 $advanced_features = trigger_change( 224 224 'get_admin_advanced_features_links', 225 225 $advanced_features -
trunk/admin/notification_by_mail.php
r26461 r28587 254 254 255 255 $customize_mail_content = 256 trigger_ event('nbm_render_global_customize_mail_content', $customize_mail_content);256 trigger_change('nbm_render_global_customize_mail_content', $customize_mail_content); 257 257 258 258 … … 341 341 342 342 $nbm_user_customize_mail_content = 343 trigger_ event('nbm_render_user_customize_mail_content',343 trigger_change('nbm_render_user_customize_mail_content', 344 344 $customize_mail_content, $nbm_user); 345 345 if (!empty($nbm_user_customize_mail_content)) … … 483 483 // +-----------------------------------------------------------------------+ 484 484 add_event_handler('nbm_render_global_customize_mail_content', 'render_global_customize_mail_content'); 485 trigger_ action('nbm_event_handler_added');485 trigger_notify('nbm_event_handler_added'); 486 486 487 487 -
trunk/admin/picture_modify.php
r28542 r28587 416 416 )); 417 417 418 trigger_ action('loc_end_picture_modify');418 trigger_notify('loc_end_picture_modify'); 419 419 420 420 //----------------------------------------------------------- sending html code -
trunk/admin/popuphelp.php
r26461 r28587 56 56 } 57 57 58 $help_content = trigger_ event(58 $help_content = trigger_change( 59 59 'get_popup_help_content', $help_content, $_GET['page']); 60 60 } -
trunk/admin/site_manager.php
r26461 r28587 177 177 //$plugin_links is array of array composed of U_HREF, U_HINT & U_CAPTION 178 178 $plugin_links = 179 trigger_ event('get_admins_site_links',179 trigger_change('get_admins_site_links', 180 180 $plugin_links, $row['id'], $is_remote); 181 181 $tpl_var['plugin_links'] = $plugin_links; -
trunk/admin/tags.php
r26650 r28587 77 77 'id' => $tag_id, 78 78 'name' => addslashes($tag_name), 79 'url_name' => trigger_ event('render_tag_url', $tag_name),79 'url_name' => trigger_change('render_tag_url', $tag_name), 80 80 ); 81 81 } … … 134 134 array( 135 135 'name' => $tag_name, 136 'url_name' => trigger_ event('render_tag_url', $tag_name),136 'url_name' => trigger_change('render_tag_url', $tag_name), 137 137 ) 138 138 ); … … 219 219 while ($row = pwg_db_fetch_assoc($result)) 220 220 { 221 $name_of_tag[ $row['id'] ] = trigger_ event('render_tag_name', $row['name'], $row);221 $name_of_tag[ $row['id'] ] = trigger_change('render_tag_name', $row['name'], $row); 222 222 } 223 223 … … 359 359 foreach ($orphan_tags as $tag) 360 360 { 361 $orphan_tag_names[] = trigger_ event('render_tag_name', $tag['name'], $tag);361 $orphan_tag_names[] = trigger_change('render_tag_name', $tag['name'], $tag); 362 362 } 363 363 … … 394 394 { 395 395 $raw_name = $tag['name']; 396 $tag['name'] = trigger_ event('render_tag_name', $raw_name, $tag);396 $tag['name'] = trigger_change('render_tag_name', $raw_name, $tag); 397 397 $tag['counter'] = intval(@$tag_counters[ $tag['id'] ]); 398 398 $tag['U_VIEW'] = make_index_url(array('tags'=>array($tag))); 399 399 $tag['U_EDIT'] = 'admin.php?page=batch_manager&filter=tag-'.$tag['id']; 400 400 401 $alt_names = trigger_ event('get_tag_alt_names', array(), $raw_name);401 $alt_names = trigger_change('get_tag_alt_names', array(), $raw_name); 402 402 $alt_names = array_diff( array_unique($alt_names), array($tag['name']) ); 403 403 if (count($alt_names)) -
trunk/admin/themes_installed.php
r27896 r28587 173 173 ); 174 174 175 trigger_ action('loc_end_themes_installed');175 trigger_notify('loc_end_themes_installed'); 176 176 177 177 $template->set_filenames(array('themes' => 'themes_installed.tpl')); -
trunk/comments.php
r28164 r28587 90 90 ); 91 91 92 trigger_ action('loc_begin_comments');92 trigger_notify('loc_begin_comments'); 93 93 94 94 if (!empty($_GET['since']) && is_numeric($_GET['since'])) … … 484 484 'src_image' => $src_image, 485 485 'ALT' => $name, 486 'AUTHOR' => trigger_ event('render_comment_author', $comment['author']),486 'AUTHOR' => trigger_change('render_comment_author', $comment['author']), 487 487 'WEBSITE_URL' => $comment['website_url'], 488 488 'DATE'=>format_date($comment['date'], true), 489 'CONTENT'=>trigger_ event('render_comment_content',$comment['content']),489 'CONTENT'=>trigger_change('render_comment_content',$comment['content']), 490 490 ); 491 491 … … 544 544 } 545 545 546 $derivative_params = trigger_ event('get_comments_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) );546 $derivative_params = trigger_change('get_comments_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) ); 547 547 $template->assign( 'derivative_params', $derivative_params ); 548 548 … … 558 558 // +-----------------------------------------------------------------------+ 559 559 include(PHPWG_ROOT_PATH.'include/page_header.php'); 560 trigger_ action('loc_end_comments');560 trigger_notify('loc_end_comments'); 561 561 flush_page_messages(); 562 562 $template->pparse('comments'); -
trunk/i.php
r28198 r28587 32 32 33 33 34 function trigger_ action() {}34 function trigger_notify() {} 35 35 function get_extension( $filename ) 36 36 { -
trunk/identification.php
r26461 r28587 31 31 check_status(ACCESS_FREE); 32 32 33 trigger_ action('loc_begin_identification');33 trigger_notify('loc_begin_identification'); 34 34 35 35 //-------------------------------------------------------------- identification … … 107 107 //----------------------------------------------------------- html code display 108 108 include(PHPWG_ROOT_PATH.'include/page_header.php'); 109 trigger_ action('loc_end_identification');109 trigger_notify('loc_end_identification'); 110 110 flush_page_messages(); 111 111 $template->pparse('identification'); -
trunk/include/block.class.php
r27370 r28587 50 50 public function load_registered_blocks() 51 51 { 52 trigger_ action('blockmanager_register_blocks', array($this));52 trigger_notify('blockmanager_register_blocks', array($this)); 53 53 } 54 54 … … 111 111 } 112 112 $this->sort_blocks(); 113 trigger_ action('blockmanager_prepare_display', array($this));113 trigger_notify('blockmanager_prepare_display', array($this)); 114 114 $this->sort_blocks(); 115 115 } … … 192 192 193 193 $template->set_filename('menubar', $file); 194 trigger_ action('blockmanager_apply', array($this) );194 trigger_notify('blockmanager_apply', array($this) ); 195 195 196 196 foreach ($this->display_blocks as $id=>$block) -
trunk/include/category_cats.inc.php
r27336 r28587 270 270 $template->set_filename('index_category_thumbnails', 'mainpage_categories.tpl'); 271 271 272 trigger_ action('loc_begin_index_category_thumbnails', $categories);272 trigger_notify('loc_begin_index_category_thumbnails', $categories); 273 273 274 274 $tpl_thumbnails_var = array(); … … 281 281 } 282 282 283 $category['name'] = trigger_ event(283 $category['name'] = trigger_change( 284 284 'render_category_name', 285 285 $category['name'], … … 317 317 ), 318 318 'DESCRIPTION' => 319 trigger_ event('render_category_literal_description',320 trigger_ event('render_category_description',319 trigger_change('render_category_literal_description', 320 trigger_change('render_category_description', 321 321 @$category['comment'], 322 322 'subcatify_category_description')), … … 368 368 ); 369 369 370 $derivative_params = trigger_ event('get_index_album_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) );371 $tpl_thumbnails_var_selection = trigger_ event('loc_end_index_category_thumbnails', $tpl_thumbnails_var_selection);370 $derivative_params = trigger_change('get_index_album_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) ); 371 $tpl_thumbnails_var_selection = trigger_change('loc_end_index_category_thumbnails', $tpl_thumbnails_var_selection); 372 372 $template->assign( array( 373 373 'maxRequests' =>$conf['max_requests'], -
trunk/include/category_default.inc.php
r27369 r28587 36 36 ); 37 37 38 $selection = trigger_ event('loc_index_thumbnails_selection', $selection);38 $selection = trigger_change('loc_index_thumbnails_selection', $selection); 39 39 40 40 if (count($selection) > 0) … … 92 92 $template->set_filenames( array( 'index_thumbnails' => 'thumbnails.tpl',)); 93 93 94 trigger_ action('loc_begin_index_thumbnails', $pictures);94 trigger_notify('loc_begin_index_thumbnails', $pictures); 95 95 $tpl_thumbnails_var = array(); 96 96 … … 153 153 154 154 $template->assign( array( 155 'derivative_params' => trigger_ event('get_index_derivative_params', ImageStdParams::get_by_type( pwg_get_session_var('index_deriv', IMG_THUMB) ) ),155 'derivative_params' => trigger_change('get_index_derivative_params', ImageStdParams::get_by_type( pwg_get_session_var('index_deriv', IMG_THUMB) ) ), 156 156 'maxRequests' =>$conf['max_requests'], 157 157 'SHOW_THUMBNAIL_CAPTION' =>$conf['show_thumbnail_caption'], 158 158 ) ); 159 $tpl_thumbnails_var = trigger_ event('loc_end_index_thumbnails', $tpl_thumbnails_var, $pictures);159 $tpl_thumbnails_var = trigger_change('loc_end_index_thumbnails', $tpl_thumbnails_var, $pictures); 160 160 $template->assign('thumbnails', $tpl_thumbnails_var); 161 161 -
trunk/include/common.inc.php
r28432 r28587 176 176 load_language('admin.lang'); 177 177 } 178 trigger_ action('loading_lang');178 trigger_notify('loading_lang'); 179 179 load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) ); 180 180 … … 273 273 add_event_handler('get_src_image_url', 'get_src_image_url_protection_handler', EVENT_HANDLER_PRIORITY_NEUTRAL, 2 ); 274 274 } 275 trigger_ action('init');275 trigger_notify('init'); 276 276 ?> -
trunk/include/derivative.inc.php
r26461 r28587 68 68 { 69 69 $ext = strtolower($ext); 70 $this->rel_path = trigger_ event('get_mimetype_location', get_themeconf('mime_icon_dir').$ext.'.png', $ext );70 $this->rel_path = trigger_change('get_mimetype_location', get_themeconf('mime_icon_dir').$ext.'.png', $ext ); 71 71 $this->flags |= self::IS_MIMETYPE; 72 72 if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false) … … 135 135 if ( !($this->flags & self::IS_MIMETYPE) ) 136 136 { 137 $url = trigger_ event('get_src_image_url', $url, $this);137 $url = trigger_change('get_src_image_url', $url, $this); 138 138 } 139 139 return embellish_url($url); … … 236 236 } 237 237 return embellish_url( 238 trigger_ event('get_derivative_url',238 trigger_change('get_derivative_url', 239 239 get_root_url().$rel_url, 240 240 $params, $src_image, $rel_url … … 406 406 } 407 407 return embellish_url( 408 trigger_ event('get_derivative_url',408 trigger_change('get_derivative_url', 409 409 get_root_url().$this->rel_url, 410 410 $this->params, $this->src_image, $this->rel_url -
trunk/include/functions.inc.php
r28579 r28587 424 424 } 425 425 426 $do_log = trigger_ event('pwg_log_allowed', $do_log, $image_id, $image_type);426 $do_log = trigger_change('pwg_log_allowed', $do_log, $image_id, $image_type); 427 427 428 428 if (!$do_log) … … 774 774 $user = build_user( $conf['guest_id'], true); 775 775 load_language('common.lang'); 776 trigger_ action('loading_lang');776 trigger_notify('loading_lang'); 777 777 load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) ); 778 778 $template = new Template(PHPWG_ROOT_PATH.'themes', get_default_theme()); … … 871 871 872 872 // plugins want remove some themes based on user status maybe? 873 $themes = trigger_ event('get_pwg_themes', $themes);873 $themes = trigger_change('get_pwg_themes', $themes); 874 874 875 875 return $themes; … … 1113 1113 list($email) = pwg_db_fetch_row(pwg_query($query)); 1114 1114 1115 $email = trigger_ event('get_webmaster_mail_address', $email);1115 $email = trigger_change('get_webmaster_mail_address', $email); 1116 1116 1117 1117 return $email; … … 1155 1155 } 1156 1156 1157 trigger_ action('load_conf', $condition);1157 trigger_notify('load_conf', $condition); 1158 1158 } 1159 1159 -
trunk/include/functions_category.inc.php
r27926 r28587 109 109 } 110 110 111 $where = trigger_ event('get_categories_menu_sql_where',111 $where = trigger_change('get_categories_menu_sql_where', 112 112 $where, $user['expand'], $filter['enabled'] ); 113 113 … … 124 124 $row = array_merge($row, 125 125 array( 126 'NAME' => trigger_ event(126 'NAME' => trigger_change( 127 127 'render_category_name', 128 128 $row['name'], … … 231 231 global $conf, $page; 232 232 233 return trigger_ event('get_category_preferred_image_orders', array(233 return trigger_change('get_category_preferred_image_orders', array( 234 234 array(l10n('Default'), '', true), 235 235 array(l10n('Photo title, A → Z'), 'name ASC', true), … … 280 280 $option.= '- '; 281 281 $option.= strip_tags( 282 trigger_ event(282 trigger_change( 283 283 'render_category_name', 284 284 $category['name'], -
trunk/include/functions_comment.inc.php
r26916 r28587 32 32 /** 33 33 * Does basic check on comment and returns action to perform. 34 * This method is called by a trigger_ event()34 * This method is called by a trigger_change() 35 35 * 36 36 * @param string $action before check … … 212 212 213 213 // perform more spam check 214 $comment_action = trigger_ event('user_comment_check',214 $comment_action = trigger_change('user_comment_check', 215 215 $comment_action, $comm 216 216 ); … … 304 304 'comment_id' => $comment_id 305 305 )); 306 trigger_ action('user_comment_deletion', $comment_id);306 trigger_notify('user_comment_deletion', $comment_id); 307 307 308 308 return true; … … 343 343 // perform more spam check 344 344 $comment_action = 345 trigger_ event('user_comment_check',345 trigger_change('user_comment_check', 346 346 $comment_action, 347 347 array_merge($comment, … … 510 510 511 511 invalidate_user_cache_nb_comments(); 512 trigger_ action('user_comment_validation', $comment_id);512 trigger_notify('user_comment_validation', $comment_id); 513 513 } 514 514 -
trunk/include/functions_html.inc.php
r27369 r28587 52 52 ); 53 53 54 $cat['name'] = trigger_ event(54 $cat['name'] = trigger_change( 55 55 'render_category_name', 56 56 $cat['name'], … … 133 133 $cat = $cache['cat_names'][$category_id]; 134 134 135 $cat['name'] = trigger_ event(135 $cat['name'] = trigger_change( 136 136 'render_category_name', 137 137 $cat['name'], … … 464 464 .l10n('display photos linked to this tag') 465 465 .'">' 466 .trigger_ event('render_tag_name', $page['tags'][$i]['name'], $page['tags'][$i])466 .trigger_change('render_tag_name', $page['tags'][$i]['name'], $page['tags'][$i]) 467 467 .'</a>'; 468 468 … … 518 518 519 519 header( "$protocol $code $text", true, $code ); 520 trigger_ action('set_status_header', $code, $text);520 trigger_notify('set_status_header', $code, $text); 521 521 } 522 522 523 523 /** 524 524 * Returns the category comment for rendering in html textual mode (subcatify) 525 * This method is called by a trigger_ action()525 * This method is called by a trigger_notify() 526 526 * 527 527 * @param string $desc … … 535 535 /** 536 536 * Add known menubar blocks. 537 * This method is called by a trigger_ event()537 * This method is called by a trigger_change() 538 538 * 539 539 * @param BlockManager[] $menu_ref_arr … … 563 563 if (!empty($info['name'])) 564 564 { 565 return trigger_ event('render_element_name', $info['name']);565 return trigger_change('render_element_name', $info['name']); 566 566 } 567 567 return get_name_from_file($info['file']); … … 579 579 if (!empty($info['comment'])) 580 580 { 581 return trigger_ event('render_element_description', $info['comment'], $param);581 return trigger_change('render_element_description', $info['comment'], $param); 582 582 } 583 583 return ''; … … 625 625 626 626 $title = htmlspecialchars(strip_tags($title)); 627 $title = trigger_ event('get_thumbnail_title', $title, $info);627 $title = trigger_change('get_thumbnail_title', $title, $info); 628 628 629 629 return $title; -
trunk/include/functions_mail.inc.php
r28185 r28587 313 313 } 314 314 315 trigger_ action('loading_lang');315 trigger_notify('loading_lang'); 316 316 load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, 317 317 array('language'=>$language, 'no_fallback'=>true, 'local'=>true) … … 697 697 { 698 698 $conf_mail[$cache_key]['theme'] = get_mail_template($content_type); 699 trigger_ action('before_parse_mail_template', $cache_key, $content_type);699 trigger_notify('before_parse_mail_template', $cache_key, $content_type); 700 700 } 701 701 $template = &$conf_mail[$cache_key]['theme']; … … 855 855 856 856 $ret = true; 857 $pre_result = trigger_ event('before_send_mail', true, $to, $args, $mail);857 $pre_result = trigger_change('before_send_mail', true, $to, $args, $mail); 858 858 859 859 if ($pre_result) … … 946 946 } 947 947 948 trigger_ action('functions_mail_included');948 trigger_notify('functions_mail_included'); 949 949 950 950 ?> -
trunk/include/functions_metadata.inc.php
r28089 r28587 105 105 // apparently mac uses some MacRoman crap encoding. I don't know 106 106 // how to detect it so a plugin should do the trick. 107 $value = trigger_ event('clean_iptc_value', $value);107 $value = trigger_change('clean_iptc_value', $value); 108 108 if ( ($qual = qualify_utf8($value)) != 0) 109 109 {// has non ascii chars … … 153 153 if ($exif = @read_exif_data($filename)) 154 154 { 155 $exif = trigger_ event('format_exif_data', $exif, $filename, $map);155 $exif = trigger_change('format_exif_data', $exif, $filename, $map); 156 156 157 157 // configured fields -
trunk/include/functions_plugins.inc.php
r27335 r28587 247 247 * 248 248 * @since 2.6 249 * @todo remove trigger_event()250 249 * 251 250 * @param string $event … … 256 255 function trigger_change($event, $data=null) 257 256 { 258 $args = func_get_args();259 return call_user_func_array('trigger_event', $args);260 }261 262 /**263 * @deprecated 2.6264 * @see trigger_change265 */266 function trigger_event($event, $data=null)267 {268 257 global $pwg_event_handlers; 269 258 270 259 if (isset($pwg_event_handlers['trigger'])) 271 260 {// debugging 272 trigger_ action('trigger',261 trigger_notify('trigger', 273 262 array('type'=>'event', 'event'=>$event, 'data'=>$data) 274 263 ); … … 299 288 if (isset($pwg_event_handlers['trigger'])) 300 289 {// debugging 301 trigger_ action('trigger',290 trigger_notify('trigger', 302 291 array('type'=>'post_event', 'event'=>$event, 'data'=>$data) 303 292 ); … … 312 301 * 313 302 * @since 2.6 314 * @todo remove trigger_action()315 303 * 316 304 * @param string $event … … 319 307 function trigger_notify($event) 320 308 { 321 $args = func_get_args();322 return call_user_func_array('trigger_action', $args);323 }324 325 /**326 * @deprecated 2.6327 * @see trigger_notify328 */329 function trigger_action($event)330 {331 309 global $pwg_event_handlers; 332 310 333 311 if (isset($pwg_event_handlers['trigger']) and $event!='trigger') 334 312 {// debugging - avoid recursive calls 335 trigger_ action('trigger',313 trigger_notify('trigger', 336 314 array('type'=>'action', 'event'=>$event, 'data'=>null) 337 315 ); … … 456 434 load_plugin($plugin); 457 435 } 458 trigger_ action('plugins_loaded');436 trigger_notify('plugins_loaded'); 459 437 } 460 438 } -
trunk/include/functions_rate.inc.php
r27294 r28587 137 137 function update_rating_score($element_id = false) 138 138 { 139 if ( ($alt_result = trigger_ event('update_rating_score', false, $element_id)) !== false)139 if ( ($alt_result = trigger_change('update_rating_score', false, $element_id)) !== false) 140 140 { 141 141 return $alt_result; -
trunk/include/functions_search.inc.php
r28579 r28587 929 929 default: 930 930 // allow plugins to have their own scope with columns added in db by themselves 931 $clauses = trigger_ event('qsearch_get_images_sql_scopes', $clauses, $token, $expr);931 $clauses = trigger_change('qsearch_get_images_sql_scopes', $clauses, $token, $expr); 932 932 break; 933 933 } … … 1020 1020 foreach ( $all_tags as &$tag ) 1021 1021 { 1022 $tag['name'] = trigger_ event('render_tag_name', $tag['name'], $tag);1022 $tag['name'] = trigger_change('render_tag_name', $tag['name'], $tag); 1023 1023 } 1024 1024 $qsr->all_tags = $all_tags; … … 1152 1152 1153 1153 // allow plugins to add their own scopes 1154 $scopes = trigger_ event('qsearch_get_scopes', $scopes);1154 $scopes = trigger_change('qsearch_get_scopes', $scopes); 1155 1155 $expression = new QExpression($q, $scopes); 1156 1156 … … 1177 1177 1178 1178 1179 trigger_ action('qsearch_expression_parsed', $expression);1179 trigger_notify('qsearch_expression_parsed', $expression); 1180 1180 //var_export($expression); 1181 1181 … … 1189 1189 1190 1190 // allow plugins to evaluate their own scopes 1191 trigger_ action('qsearch_before_eval', $expression, $qsr);1191 trigger_notify('qsearch_before_eval', $expression, $qsr); 1192 1192 1193 1193 $ids = qsearch_eval($expression, $qsr, $tmp, $search_results['qs']['unmatched_terms']); -
trunk/include/functions_tag.inc.php
r27336 r28587 90 90 { 91 91 $row['counter'] = $counter; 92 $row['name'] = trigger_ event('render_tag_name', $row['name'], $row);92 $row['name'] = trigger_change('render_tag_name', $row['name'], $row); 93 93 $tags[] = $row; 94 94 } … … 112 112 while ($row = pwg_db_fetch_assoc($result)) 113 113 { 114 $row['name'] = trigger_ event('render_tag_name', $row['name'], $row);114 $row['name'] = trigger_change('render_tag_name', $row['name'], $row); 115 115 $tags[] = $row; 116 116 } … … 278 278 while($row = pwg_db_fetch_assoc($result)) 279 279 { 280 $row['name'] = trigger_ event('render_tag_name', $row['name'], $row);280 $row['name'] = trigger_change('render_tag_name', $row['name'], $row); 281 281 $tags[] = $row; 282 282 } -
trunk/include/functions_user.inc.php
r27388 r28587 175 175 } 176 176 177 $errors = trigger_ event(177 $errors = trigger_change( 178 178 'register_user_check', 179 179 $errors, … … 274 274 } 275 275 276 trigger_ action(276 trigger_notify( 277 277 'register_user', 278 278 array( … … 960 960 961 961 $user['id'] = $_SESSION['pwg_uid']; 962 trigger_ action('user_login', $user['id']);962 trigger_notify('user_login', $user['id']); 963 963 } 964 964 … … 985 985 { 986 986 log_user($cookie[0], true); 987 trigger_ action('login_success', stripslashes($username));987 trigger_notify('login_success', stripslashes($username)); 988 988 return true; 989 989 } … … 1086 1086 function try_log_user($username, $password, $remember_me) 1087 1087 { 1088 return trigger_ event('try_log_user', false, $username, $password, $remember_me);1088 return trigger_change('try_log_user', false, $username, $password, $remember_me); 1089 1089 } 1090 1090 … … 1122 1122 { 1123 1123 log_user($row['id'], $remember_me); 1124 trigger_ action('login_success', stripslashes($username));1124 trigger_notify('login_success', stripslashes($username)); 1125 1125 return true; 1126 1126 } 1127 trigger_ action('login_failure', stripslashes($username));1127 trigger_notify('login_failure', stripslashes($username)); 1128 1128 return false; 1129 1129 } … … 1136 1136 global $conf; 1137 1137 1138 trigger_ action('user_logout', @$_SESSION['pwg_uid']);1138 trigger_notify('user_logout', @$_SESSION['pwg_uid']); 1139 1139 1140 1140 $_SESSION = array(); -
trunk/include/no_photo_yet.inc.php
r28101 r28587 98 98 } 99 99 100 trigger_ action('loc_end_no_photo_yet');100 trigger_notify('loc_end_no_photo_yet'); 101 101 102 102 $template->pparse('no_photo_yet'); -
trunk/include/page_header.php
r26461 r28587 27 27 $template->set_filenames(array('header'=>'header.tpl')); 28 28 29 trigger_ action('loc_begin_page_header');29 trigger_notify('loc_begin_page_header'); 30 30 31 31 $template->assign( … … 36 36 37 37 'PAGE_BANNER' => 38 trigger_ event(38 trigger_change( 39 39 'render_page_banner', 40 40 str_replace( … … 97 97 } 98 98 99 trigger_ action('loc_end_page_header');99 trigger_notify('loc_end_page_header'); 100 100 101 101 header('Content-Type: text/html; charset='.get_pwg_charset()); 102 102 $template->parse('header'); 103 103 104 trigger_ action('loc_after_page_header');104 trigger_notify('loc_after_page_header'); 105 105 ?> -
trunk/include/page_tail.php
r26461 r28587 23 23 $template->set_filenames(array('tail'=>'footer.tpl')); 24 24 25 trigger_ action('loc_begin_page_tail');25 trigger_notify('loc_begin_page_tail'); 26 26 27 27 $template->assign( … … 77 77 } 78 78 79 trigger_ action('loc_end_page_tail');79 trigger_notify('loc_end_page_tail'); 80 80 // 81 81 // Generate the page -
trunk/include/picture_comment.inc.php
r28183 r28587 74 74 75 75 // allow plugins to notify what's going on 76 trigger_ action( 'user_comment_insertion',76 trigger_notify( 'user_comment_insertion', 77 77 array_merge($comm, array('action'=>$comment_action) ) 78 78 ); … … 182 182 array( 183 183 'ID' => $row['id'], 184 'AUTHOR' => trigger_ event('render_comment_author', $row['author']),184 'AUTHOR' => trigger_change('render_comment_author', $row['author']), 185 185 'DATE' => format_date($row['date'], true), 186 'CONTENT' => trigger_ event('render_comment_content',$row['content']),186 'CONTENT' => trigger_change('render_comment_content',$row['content']), 187 187 'WEBSITE_URL' => $row['website_url'], 188 188 ); -
trunk/include/section_init.inc.php
r28432 r28587 232 232 $page, 233 233 array( 234 'comment' => trigger_ event(234 'comment' => trigger_change( 235 235 'render_category_description', 236 236 $page['category']['comment'], … … 638 638 } 639 639 640 trigger_ action('loc_end_section_init');640 trigger_notify('loc_end_section_init'); 641 641 ?> -
trunk/include/template.class.php
r27184 r28587 522 522 $href .= '?v' . ($combi->version ? $combi->version : PHPWG_VERSION); 523 523 // trigger the event for eventual use of a cdn 524 $href = trigger_ event('combined_css', $href, $combi);524 $href = trigger_change('combined_css', $href, $combi); 525 525 $content[] = '<link rel="stylesheet" type="text/css" href="'.$href.'">'; 526 526 } … … 879 879 } 880 880 // trigger the event for eventual use of a cdn 881 $ret = trigger_ event('combined_script', $ret, $script);881 $ret = trigger_change('combined_script', $ret, $script); 882 882 return embellish_url($ret); 883 883 } … … 1935 1935 $handle = $this->type. '.' .$combinable->id; 1936 1936 $template->set_filename($handle, realpath(PHPWG_ROOT_PATH.$combinable->path)); 1937 trigger_ action( 'combinable_preparse', $template, $combinable, $this); //allow themes and plugins to set their own vars to template ...1937 trigger_notify( 'combinable_preparse', $template, $combinable, $this); //allow themes and plugins to set their own vars to template ... 1938 1938 $content = $template->parse($handle, true); 1939 1939 … … 1991 1991 $css = CssMin::minify($css, array('Variables'=>false)); 1992 1992 } 1993 $css = trigger_ event('combined_css_postfilter', $css);1993 $css = trigger_change('combined_css_postfilter', $css); 1994 1994 return $css; 1995 1995 } -
trunk/include/user.inc.php
r26461 r28587 73 73 get_browser_language($user['language']); 74 74 } 75 trigger_ action('user_init', $user);75 trigger_notify('user_init', $user); 76 76 ?> -
trunk/include/ws_core.inc.php
r26461 r28587 292 292 ); 293 293 294 trigger_ action('ws_add_methods', array(&$this) );294 trigger_notify('ws_add_methods', array(&$this) ); 295 295 uksort( $this->_methods, 'strnatcmp' ); 296 296 $this->_requestHandler->handleRequest($this); … … 307 307 @header('Content-Type: '.$contentType.'; charset='.get_pwg_charset()); 308 308 print_r($encodedResponse); 309 trigger_ action('sendResponse', $encodedResponse );309 trigger_notify('sendResponse', $encodedResponse ); 310 310 } 311 311 … … 599 599 } 600 600 601 $result = trigger_ event('ws_invoke_allowed', true, $methodName, $params);601 $result = trigger_change('ws_invoke_allowed', true, $methodName, $params); 602 602 if ( strtolower( @get_class($result) )!='pwgerror') 603 603 { -
trunk/include/ws_functions/pwg.categories.php
r28542 r28587 265 265 { 266 266 $row['name'] = strip_tags( 267 trigger_ event(267 trigger_change( 268 268 'render_category_name', 269 269 $row['name'], … … 274 274 275 275 $row['comment'] = strip_tags( 276 trigger_ event(276 trigger_change( 277 277 'render_category_description', 278 278 $row['comment'], … … 502 502 503 503 $row['name'] = strip_tags( 504 trigger_ event(504 trigger_change( 505 505 'render_category_name', 506 506 $row['name'], … … 515 515 ); 516 516 $row['comment'] = strip_tags( 517 trigger_ event(517 trigger_change( 518 518 'render_category_description', 519 519 $row['comment'], … … 788 788 { 789 789 $row['name'] = strip_tags( 790 trigger_ event(790 trigger_change( 791 791 'render_category_name', 792 792 $row['name'], -
trunk/index.php
r28316 r28587 41 41 } 42 42 43 trigger_ action('loc_begin_index');43 trigger_notify('loc_begin_index'); 44 44 45 45 //---------------------------------------------- change of image display order … … 362 362 //------------------------------------------------------------ end 363 363 include(PHPWG_ROOT_PATH.'include/page_header.php'); 364 trigger_ action('loc_end_index');364 trigger_notify('loc_end_index'); 365 365 flush_page_messages(); 366 366 $template->parse_index_buttons(); -
trunk/nbm.php
r26461 r28587 34 34 load_language('admin.lang'); 35 35 // Need to update a second time 36 trigger_ action('loading_lang');36 trigger_notify('loading_lang'); 37 37 load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) ); 38 38 -
trunk/notification.php
r26461 r28587 57 57 check_status(ACCESS_GUEST); 58 58 59 trigger_ action('loc_begin_notification');59 trigger_notify('loc_begin_notification'); 60 60 61 61 // +-----------------------------------------------------------------------+ … … 115 115 // +-----------------------------------------------------------------------+ 116 116 include(PHPWG_ROOT_PATH.'include/page_header.php'); 117 trigger_ action('loc_end_notification');117 trigger_notify('loc_end_notification'); 118 118 flush_page_messages(); 119 119 $template->pparse('notification'); -
trunk/password.php
r26461 r28587 36 36 check_status(ACCESS_FREE); 37 37 38 trigger_ action('loc_begin_password');38 trigger_notify('loc_begin_password'); 39 39 40 40 // +-----------------------------------------------------------------------+ … … 118 118 unset_make_full_url(); 119 119 120 $message = trigger_ event('render_lost_password_mail_content', $message);120 $message = trigger_change('render_lost_password_mail_content', $message); 121 121 122 122 $email_params = array( … … 354 354 355 355 include(PHPWG_ROOT_PATH.'include/page_header.php'); 356 trigger_ action('loc_end_password');356 trigger_notify('loc_end_password'); 357 357 flush_page_messages(); 358 358 $template->pparse('password'); -
trunk/picture.php
r28184 r28587 145 145 add_event_handler('render_element_description', 'nl2br'); 146 146 147 trigger_ action('loc_begin_picture');147 trigger_notify('loc_begin_picture'); 148 148 149 149 // this is the default handler that generates the display for the element … … 435 435 436 436 // don't increment if adding a comment 437 if (trigger_ event('allow_increment_element_hit_count', $inc_hit_count, $page['image_id'] ) )437 if (trigger_change('allow_increment_element_hit_count', $inc_hit_count, $page['image_id'] ) ) 438 438 { 439 439 $query = ' … … 615 615 616 616 // do we have a plugin that can show metadata for something else than images? 617 $metadata_showable = trigger_ event(617 $metadata_showable = trigger_change( 618 618 'get_element_metadata_available', 619 619 ( … … 633 633 634 634 // allow plugins to change what we computed before passing data to template 635 $picture = trigger_ event('picture_pictures_data', $picture);635 $picture = trigger_change('picture_pictures_data', $picture); 636 636 637 637 //------------------------------------------------------- navigation management … … 809 809 $template->assign( 810 810 'COMMENT_IMG', 811 trigger_ event('render_element_description',811 trigger_change('render_element_description', 812 812 $picture['current']['comment'], 813 813 'picture_page_element_description' … … 938 938 // maybe someone wants a special display (call it before page_header so that 939 939 // they can add stylesheets) 940 $element_content = trigger_ event(940 $element_content = trigger_change( 941 941 'render_element_content', 942 942 '', … … 988 988 989 989 include(PHPWG_ROOT_PATH.'include/page_header.php'); 990 trigger_ action('loc_end_picture');990 trigger_notify('loc_end_picture'); 991 991 flush_page_messages(); 992 992 if ($page['slideshow'] and $conf['light_slideshow']) -
trunk/popuphelp.php
r26461 r28587 55 55 } 56 56 57 $help_content = trigger_ event(57 $help_content = trigger_change( 58 58 'get_popup_help_content', $help_content, $_GET['page']); 59 59 } -
trunk/profile.php
r26461 r28587 44 44 $userdata = $user; 45 45 46 trigger_ action('loc_begin_profile');46 trigger_notify('loc_begin_profile'); 47 47 48 48 // Reset to default (Guest) custom settings … … 85 85 86 86 include(PHPWG_ROOT_PATH.'include/page_header.php'); 87 trigger_ action('loc_end_profile');87 trigger_notify('loc_end_profile'); 88 88 flush_page_messages(); 89 89 $template->pparse('profile'); … … 280 280 array($data)); 281 281 } 282 trigger_ action( 'save_profile_from_post', $userdata['id'] );282 trigger_notify( 'save_profile_from_post', $userdata['id'] ); 283 283 284 284 if (!empty($_POST['redirect'])) … … 336 336 337 337 // allow plugins to add their own form data to content 338 trigger_ action( 'load_profile_in_template', $userdata );338 trigger_notify( 'load_profile_in_template', $userdata ); 339 339 340 340 $template->assign('PWG_TOKEN', get_pwg_token()); -
trunk/register.php
r26461 r28587 38 38 } 39 39 40 trigger_ action('loc_begin_register');40 trigger_notify('loc_begin_register'); 41 41 42 42 if (isset($_POST['submit'])) … … 118 118 119 119 include(PHPWG_ROOT_PATH.'include/page_header.php'); 120 trigger_ action('loc_end_register');120 trigger_notify('loc_end_register'); 121 121 flush_page_messages(); 122 122 $template->parse('register'); -
trunk/search.php
r26825 r28587 31 31 check_status(ACCESS_GUEST); 32 32 33 trigger_ action('loc_begin_search');33 trigger_notify('loc_begin_search'); 34 34 35 35 //------------------------------------------------------------------ form check … … 237 237 //------------------------------------------------------------ html code display 238 238 include(PHPWG_ROOT_PATH.'include/page_header.php'); 239 trigger_ action('loc_end_search');239 trigger_notify('loc_end_search'); 240 240 flush_page_messages(); 241 241 $template->pparse('search'); -
trunk/tags.php
r26461 r28587 50 50 check_status(ACCESS_GUEST); 51 51 52 trigger_ action('loc_begin_tags');52 trigger_notify('loc_begin_tags'); 53 53 54 54 // +-----------------------------------------------------------------------+ … … 196 196 197 197 include(PHPWG_ROOT_PATH.'include/page_header.php'); 198 trigger_ action('loc_end_tags');198 trigger_notify('loc_end_tags'); 199 199 flush_page_messages(); 200 200 $template->pparse('tags'); -
trunk/tools/triggers_list.php
r28166 r28587 3 3 array( 4 4 'name' => 'allow_increment_element_hit_count', 5 'type' => 'trigger_ event',5 'type' => 'trigger_change', 6 6 'vars' => array('bool', 'content_not_set'), 7 7 'files' => array('picture.php'), … … 9 9 array( 10 10 'name' => 'begin_delete_elements', 11 'type' => 'trigger_ action',11 'type' => 'trigger_notify', 12 12 'vars' => array('array', 'ids'), 13 13 'files' => array('admin\include\functions.inc.php (delete_elements)'), … … 15 15 array( 16 16 'name' => 'blockmanager_apply', 17 'type' => 'trigger_ action',17 'type' => 'trigger_notify', 18 18 'vars' => array('object', 'menublock'), 19 19 'files' => array('include\block.class.php (BlockManager::apply)'), … … 22 22 array( 23 23 'name' => 'blockmanager_prepare_display', 24 'type' => 'trigger_ action',24 'type' => 'trigger_notify', 25 25 'vars' => array('object', 'this'), 26 26 'files' => array('include\block.class.php (BlockManager::prepare_display)'), … … 28 28 array( 29 29 'name' => 'blockmanager_register_blocks', 30 'type' => 'trigger_ action',30 'type' => 'trigger_notify', 31 31 'vars' => array('object', 'menu'), 32 32 'files' => array('include\block.class.php (BlockManager::load_registered_blocks)'), … … 35 35 array( 36 36 'name' => 'clean_iptc_value', 37 'type' => 'trigger_ event',37 'type' => 'trigger_change', 38 38 'vars' => array('string', 'value'), 39 39 'files' => array('include\functions_metadata.inc.php (clean_iptc_value)'), … … 41 41 array( 42 42 'name' => 'combined_css', 43 'type' => 'trigger_ event',43 'type' => 'trigger_change', 44 44 'vars' => array('string', 'href', 'Combinable', '$combinable'), 45 45 'files' => array('include\template.class.php (Template::flush)'), … … 47 47 array( 48 48 'name' => 'combined_css_postfilter', 49 'type' => 'trigger_ event',49 'type' => 'trigger_change', 50 50 'vars' => array('string', 'css'), 51 51 'files' => array('include\template.class.php (Template::process_css)'), … … 53 53 array( 54 54 'name' => 'combined_script', 55 'type' => 'trigger_ event',55 'type' => 'trigger_change', 56 56 'vars' => array('string', 'ret', 'string', 'script'), 57 57 'files' => array('include\template.class.php (Template::make_script_src)'), … … 59 59 array( 60 60 'name' => 'delete_categories', 61 'type' => 'trigger_ action',61 'type' => 'trigger_notify', 62 62 'vars' => array('array', 'ids'), 63 63 'files' => array('admin\include\functions.inc.php (delete_categories)'), … … 65 65 array( 66 66 'name' => 'delete_elements', 67 'type' => 'trigger_ action',67 'type' => 'trigger_notify', 68 68 'vars' => array('array', 'ids'), 69 69 'files' => array('admin\include\functions.inc.php (delete_elements)'), … … 71 71 array( 72 72 'name' => 'delete_user', 73 'type' => 'trigger_ action',73 'type' => 'trigger_notify', 74 74 'vars' => array('int', 'user_id'), 75 75 'files' => array('admin\include\functions.inc.php (delete_user)'), … … 77 77 array( 78 78 'name' => 'element_set_global_action', 79 'type' => 'trigger_ action',79 'type' => 'trigger_notify', 80 80 'vars' => array('string', 'action', 'array', 'collection'), 81 81 'files' => array('admin\batch_manager_global.php'), … … 83 83 array( 84 84 'name' => 'format_exif_data', 85 'type' => 'trigger_ event',85 'type' => 'trigger_change', 86 86 'vars' => array('array', 'exif', 'string', 'filename', 'array', 'map'), 87 87 'files' => array('include\functions_metadata.inc.php (get_exif_data)'), … … 89 89 array( 90 90 'name' => 'functions_history_included', 91 'type' => 'trigger_ action',91 'type' => 'trigger_notify', 92 92 'vars' => array(), 93 93 'files' => array('admin\include\functions_history.inc.php'), … … 95 95 array( 96 96 'name' => 'functions_mail_included', 97 'type' => 'trigger_ action',97 'type' => 'trigger_notify', 98 98 'vars' => array(), 99 99 'files' => array('include\functions_mail.inc.php'), … … 101 101 array( 102 102 'name' => 'get_admin_advanced_features_links', 103 'type' => 'trigger_ event',103 'type' => 'trigger_change', 104 104 'vars' => array('array', 'advanced_features'), 105 105 'files' => array('admin\maintenance.php'), … … 107 107 array( 108 108 'name' => 'get_admin_plugin_menu_links', 109 'type' => 'trigger_ event',109 'type' => 'trigger_change', 110 110 'vars' => array('array', null), 111 111 'files' => array('admin.php'), … … 114 114 array( 115 115 'name' => 'get_admins_site_links', 116 'type' => 'trigger_ event',116 'type' => 'trigger_change', 117 117 'vars' => array('array', 'plugin_links', 'int', 'site_id', 'bool', 'is_remote'), 118 118 'files' => array('admin\site_manager.php'), … … 120 120 array( 121 121 'name' => 'get_batch_manager_prefilters', 122 'type' => 'trigger_ event',122 'type' => 'trigger_change', 123 123 'vars' => array('array', 'prefilters'), 124 124 'files' => array('admin\batch_manager_global.php'), … … 127 127 array( 128 128 'name' => 'get_categories_menu_sql_where', 129 'type' => 'trigger_ event',129 'type' => 'trigger_change', 130 130 'vars' => array('string', 'where', 'bool', 'user_expand', 'bool', 'filter_enabled'), 131 131 'files' => array('include\functions_category.inc.php (get_categories_menu)'), … … 133 133 array( 134 134 'name' => 'get_category_preferred_image_orders', 135 'type' => 'trigger_ event',135 'type' => 'trigger_change', 136 136 'vars' => array('array', null), 137 137 'files' => array('include\functions_category.inc.php (get_category_preferred_image_orders)'), … … 139 139 array( 140 140 'name' => 'get_download_url', 141 'type' => 'trigger_ event',141 'type' => 'trigger_change', 142 142 'vars' => array('string', 'url', 'array', 'element_info'), 143 143 'files' => array('include\functions_picture.inc.php (get_download_url)'), … … 145 145 array( 146 146 'name' => 'get_element_metadata_available', 147 'type' => 'trigger_ event',147 'type' => 'trigger_change', 148 148 'vars' => array('bool', null, 'string', 'element_path'), 149 149 'files' => array('picture.php'), … … 151 151 array( 152 152 'name' => 'get_element_url', 153 'type' => 'trigger_ event',153 'type' => 'trigger_change', 154 154 'vars' => array('string', 'url', 'array', 'element_info'), 155 155 'files' => array('include\functions_picture.inc.php (get_element_url)'), … … 157 157 array( 158 158 'name' => 'get_high_location', 159 'type' => 'trigger_ event',159 'type' => 'trigger_change', 160 160 'vars' => array('string', 'location', 'array', 'element_info'), 161 161 'files' => array('include\functions_picture.inc.php (get_high_location)'), … … 163 163 array( 164 164 'name' => 'get_high_url', 165 'type' => 'trigger_ event',165 'type' => 'trigger_change', 166 166 'vars' => array('string', 'url', 'array', 'element_info'), 167 167 'files' => array('include\functions_picture.inc.php (get_high_url)'), … … 169 169 array( 170 170 'name' => 'get_history', 171 'type' => 'trigger_ event',171 'type' => 'trigger_change', 172 172 'vars' => array('array', null, 'array', 'page_search', 'array', 'types'), 173 173 'files' => array('admin\history.php'), … … 175 175 array( 176 176 'name' => 'get_image_location', 177 'type' => 'trigger_ event',177 'type' => 'trigger_change', 178 178 'vars' => array('string', 'path', 'array', 'element_info'), 179 179 'files' => array('include\functions_picture.inc.php (get_image_location)'), … … 181 181 array( 182 182 'name' => 'get_popup_help_content', 183 'type' => 'trigger_ event',183 'type' => 'trigger_change', 184 184 'vars' => array('string', 'help_content', 'string', 'page'), 185 185 'files' => array('admin\popuphelp.php', 'popuphelp.php'), … … 187 187 array( 188 188 'name' => 'get_pwg_themes', 189 'type' => 'trigger_ event',189 'type' => 'trigger_change', 190 190 'vars' => array('array', 'themes'), 191 191 'files' => array('include\functions.inc.php (get_pwg_themes)'), … … 193 193 array( 194 194 'name' => 'get_thumbnail_title', 195 'type' => 'trigger_ event',195 'type' => 'trigger_change', 196 196 'vars' => array('string', 'title', 'array', 'info'), 197 197 'files' => array('include\functions.inc.php (get_thumbnail_title)'), … … 199 199 array( 200 200 'name' => 'get_comments_derivative_params', 201 'type' => 'trigger_ event',201 'type' => 'trigger_change', 202 202 'vars' => array('ImageStdParams', null), 203 203 'files' => array('comments.php'), … … 206 206 array( 207 207 'name' => 'get_index_album_derivative_params', 208 'type' => 'trigger_ event',208 'type' => 'trigger_change', 209 209 'vars' => array('ImageStdParams', null), 210 210 'files' => array('includecategory_cats.php', 'include\category_default.inc.php'), … … 213 213 array( 214 214 'name' => 'get_src_image_url', 215 'type' => 'trigger_ event',215 'type' => 'trigger_change', 216 216 'vars' => array('string', 'url', 'SrcImage', 'this'), 217 217 'files' => array('include\derivative.inc.php (SrcImage::__construct)'), … … 220 220 array( 221 221 'name' => 'get_derivative_url', 222 'type' => 'trigger_ event',222 'type' => 'trigger_change', 223 223 'vars' => array('string', 'url', 'ImageStdParams', null, 'SrcImage', 'this', 'string', 'rel_url'), 224 224 'files' => array('include\derivative.inc.php (SrcImage::url, SrcImage::get_url)'), … … 227 227 array( 228 228 'name' => 'get_tag_alt_names', 229 'type' => 'trigger_ event',229 'type' => 'trigger_change', 230 230 'vars' => array('array', null, 'array', 'raw_name'), 231 231 'files' => array('admin\tags.php', 'admin\include\functions.php (get_taglist)'), … … 234 234 array( 235 235 'name' => 'get_webmaster_mail_address', 236 'type' => 'trigger_ event',236 'type' => 'trigger_change', 237 237 'vars' => array('string', 'email'), 238 238 'files' => array('include\functions.inc.php (get_webmaster_mail_address)'), … … 241 241 array( 242 242 'name' => 'init', 243 'type' => 'trigger_ action',243 'type' => 'trigger_notify', 244 244 'vars' => array(), 245 245 'files' => array('include\common.inc.php'), … … 248 248 array( 249 249 'name' => 'invalidate_user_cache', 250 'type' => 'trigger_ action',250 'type' => 'trigger_notify', 251 251 'vars' => array('bool', 'full'), 252 252 'files' => array('admin\include\functions.inc.php (invalidate_user_cache)'), … … 254 254 array( 255 255 'name' => 'load_conf', 256 'type' => 'trigger_ action',256 'type' => 'trigger_notify', 257 257 'vars' => array('string', 'condition'), 258 258 'files' => array('include\functions.inc.php (load_conf_from_db)'), … … 261 261 array( 262 262 'name' => 'list_check_integrity', 263 'type' => 'trigger_ action',263 'type' => 'trigger_notify', 264 264 'vars' => array('object', 'this'), 265 265 'files' => array('admin\include\check_integrity.class.php (check_integrity::check)'), … … 267 267 array( 268 268 'name' => 'load_image_library', 269 'type' => 'trigger_ action',269 'type' => 'trigger_notify', 270 270 'vars' => array('object', 'this'), 271 271 'files' => array('admin\include\image.class.php (pwg_image::__construct)'), … … 273 273 array( 274 274 'name' => 'load_profile_in_template', 275 'type' => 'trigger_ action',275 'type' => 'trigger_notify', 276 276 'vars' => array('array', 'userdata'), 277 277 'files' => array('profile.php (load_profile_in_template)'), … … 279 279 array( 280 280 'name' => 'loading_lang', 281 'type' => 'trigger_ action',281 'type' => 'trigger_notify', 282 282 'vars' => array(), 283 283 'files' => array('include\common.inc.php', 'include\functions.inc.php (redirect_html)', 'include\functions_mail.inc.php (switch_lang_to)', 'nbm.php'), … … 285 285 array( 286 286 'name' => 'loc_after_page_header', 287 'type' => 'trigger_ action',287 'type' => 'trigger_notify', 288 288 'vars' => array(), 289 289 'files' => array('include\page_header.php'), … … 291 291 array( 292 292 'name' => 'loc_begin_about', 293 'type' => 'trigger_ action',293 'type' => 'trigger_notify', 294 294 'vars' => array(), 295 295 'files' => array('about.php'), … … 297 297 array( 298 298 'name' => 'loc_begin_admin', 299 'type' => 'trigger_ action',299 'type' => 'trigger_notify', 300 300 'vars' => array(), 301 301 'files' => array('admin.php'), … … 303 303 array( 304 304 'name' => 'loc_begin_admin_page', 305 'type' => 'trigger_ action',305 'type' => 'trigger_notify', 306 306 'vars' => array(), 307 307 'files' => array('admin.php'), … … 309 309 array( 310 310 'name' => 'loc_begin_cat_list', 311 'type' => 'trigger_ action',311 'type' => 'trigger_notify', 312 312 'vars' => array(), 313 313 'files' => array('admin\cat_list.php'), … … 315 315 array( 316 316 'name' => 'loc_begin_cat_modify', 317 'type' => 'trigger_ action',317 'type' => 'trigger_notify', 318 318 'vars' => array(), 319 319 'files' => array('admin\cat_modify.php'), … … 321 321 array( 322 322 'name' => 'loc_begin_element_set_global', 323 'type' => 'trigger_ action',323 'type' => 'trigger_notify', 324 324 'vars' => array(), 325 325 'files' => array('admin\batch_manager_global.php'), … … 327 327 array( 328 328 'name' => 'loc_begin_element_set_unit', 329 'type' => 'trigger_ action',329 'type' => 'trigger_notify', 330 330 'vars' => array(), 331 331 'files' => array('admin\batch_manager_unit.php'), … … 333 333 array( 334 334 'name' => 'loc_begin_index', 335 'type' => 'trigger_ action',335 'type' => 'trigger_notify', 336 336 'vars' => array(), 337 337 'files' => array('index.php'), … … 339 339 array( 340 340 'name' => 'loc_begin_index_category_thumbnails', 341 'type' => 'trigger_ action',341 'type' => 'trigger_notify', 342 342 'vars' => array('array', 'categories'), 343 343 'files' => array('include\category_cats.inc.php'), … … 345 345 array( 346 346 'name' => 'loc_begin_index_thumbnails', 347 'type' => 'trigger_ action',347 'type' => 'trigger_notify', 348 348 'vars' => array('array', 'pictures'), 349 349 'files' => array('include\category_default.inc.php'), … … 351 351 array( 352 352 'name' => 'loc_begin_page_header', 353 'type' => 'trigger_ action',353 'type' => 'trigger_notify', 354 354 'vars' => array(), 355 355 'files' => array('include\page_header.php'), … … 357 357 array( 358 358 'name' => 'loc_begin_page_tail', 359 'type' => 'trigger_ action',359 'type' => 'trigger_notify', 360 360 'vars' => array(), 361 361 'files' => array('include\page_tail.php'), … … 363 363 array( 364 364 'name' => 'loc_begin_picture', 365 'type' => 'trigger_ action',365 'type' => 'trigger_notify', 366 366 'vars' => array(), 367 367 'files' => array('picture.php'), … … 369 369 array( 370 370 'name' => 'loc_begin_profile', 371 'type' => 'trigger_ action',371 'type' => 'trigger_notify', 372 372 'vars' => array(), 373 373 'files' => array('profile.php'), … … 375 375 array( 376 376 'name' => 'loc_begin_password', 377 'type' => 'trigger_ action',377 'type' => 'trigger_notify', 378 378 'vars' => array(), 379 379 'files' => array('password.php'), … … 382 382 array( 383 383 'name' => 'loc_begin_register', 384 'type' => 'trigger_ action',384 'type' => 'trigger_notify', 385 385 'vars' => array(), 386 386 'files' => array('register.php'), … … 389 389 array( 390 390 'name' => 'loc_begin_search', 391 'type' => 'trigger_ action',391 'type' => 'trigger_notify', 392 392 'vars' => array(), 393 393 'files' => array('search.php'), … … 396 396 array( 397 397 'name' => 'loc_begin_tags', 398 'type' => 'trigger_ action',398 'type' => 'trigger_notify', 399 399 'vars' => array(), 400 400 'files' => array('tags.php'), … … 403 403 array( 404 404 'name' => 'loc_begin_comments', 405 'type' => 'trigger_ action',405 'type' => 'trigger_notify', 406 406 'vars' => array(), 407 407 'files' => array('comments.php'), … … 410 410 array( 411 411 'name' => 'loc_begin_identification', 412 'type' => 'trigger_ action',412 'type' => 'trigger_notify', 413 413 'vars' => array(), 414 414 'files' => array('identification.php'), … … 417 417 array( 418 418 'name' => 'loc_begin_notification', 419 'type' => 'trigger_ action',419 'type' => 'trigger_notify', 420 420 'vars' => array(), 421 421 'files' => array('notification.php'), … … 424 424 array( 425 425 'name' => 'loc_end_password', 426 'type' => 'trigger_ action',426 'type' => 'trigger_notify', 427 427 'vars' => array(), 428 428 'files' => array('password.php'), … … 431 431 array( 432 432 'name' => 'loc_end_register', 433 'type' => 'trigger_ action',433 'type' => 'trigger_notify', 434 434 'vars' => array(), 435 435 'files' => array('register.php'), … … 438 438 array( 439 439 'name' => 'loc_end_search', 440 'type' => 'trigger_ action',440 'type' => 'trigger_notify', 441 441 'vars' => array(), 442 442 'files' => array('search.php'), … … 445 445 array( 446 446 'name' => 'loc_end_tags', 447 'type' => 'trigger_ action',447 'type' => 'trigger_notify', 448 448 'vars' => array(), 449 449 'files' => array('tags.php'), … … 452 452 array( 453 453 'name' => 'loc_end_comments', 454 'type' => 'trigger_ action',454 'type' => 'trigger_notify', 455 455 'vars' => array(), 456 456 'files' => array('comments.php'), … … 459 459 array( 460 460 'name' => 'loc_end_identification', 461 'type' => 'trigger_ action',461 'type' => 'trigger_notify', 462 462 'vars' => array(), 463 463 'files' => array('identification.php'), … … 466 466 array( 467 467 'name' => 'loc_end_notification', 468 'type' => 'trigger_ action',468 'type' => 'trigger_notify', 469 469 'vars' => array(), 470 470 'files' => array('notification.php'), … … 473 473 array( 474 474 'name' => 'loc_end_admin', 475 'type' => 'trigger_ action',475 'type' => 'trigger_notify', 476 476 'vars' => array(), 477 477 'files' => array('admin.php'), … … 479 479 array( 480 480 'name' => 'loc_end_cat_list', 481 'type' => 'trigger_ action',481 'type' => 'trigger_notify', 482 482 'vars' => array(), 483 483 'files' => array('admin\cat_list.php'), … … 485 485 array( 486 486 'name' => 'loc_end_cat_modify', 487 'type' => 'trigger_ action',487 'type' => 'trigger_notify', 488 488 'vars' => array(), 489 489 'files' => array('admin\cat_modify.php'), … … 491 491 array( 492 492 'name' => 'loc_end_element_set_global', 493 'type' => 'trigger_ action',493 'type' => 'trigger_notify', 494 494 'vars' => array(), 495 495 'files' => array('admin\batch_manager_global.php'), … … 497 497 array( 498 498 'name' => 'loc_end_element_set_unit', 499 'type' => 'trigger_ action',499 'type' => 'trigger_notify', 500 500 'vars' => array(), 501 501 'files' => array('admin\batch_manager_unit.php'), … … 503 503 array( 504 504 'name' => 'loc_end_help', 505 'type' => 'trigger_ action',505 'type' => 'trigger_notify', 506 506 'vars' => array(), 507 507 'files' => array('admin\help.php'), … … 509 509 array( 510 510 'name' => 'loc_end_index', 511 'type' => 'trigger_ action',511 'type' => 'trigger_notify', 512 512 'vars' => array(), 513 513 'files' => array('index.php'), … … 515 515 array( 516 516 'name' => 'loc_end_index_category_thumbnails', 517 'type' => 'trigger_ event',517 'type' => 'trigger_change', 518 518 'vars' => array('array', 'tpl_thumbnails_var'), 519 519 'files' => array('include\category_cats.inc.php'), … … 521 521 array( 522 522 'name' => 'loc_end_index_thumbnails', 523 'type' => 'trigger_ event',523 'type' => 'trigger_change', 524 524 'vars' => array('array', 'tpl_thumbnails_var', 'array', 'pictures'), 525 525 'files' => array('include\category_default.inc.php'), … … 527 527 array( 528 528 'name' => 'loc_end_no_photo_yet', 529 'type' => 'trigger_ action',529 'type' => 'trigger_notify', 530 530 'vars' => array(), 531 531 'files' => array('include\no_photo_yet.inc.php'), … … 533 533 array( 534 534 'name' => 'loc_end_page_header', 535 'type' => 'trigger_ action',535 'type' => 'trigger_notify', 536 536 'vars' => array(), 537 537 'files' => array('include\page_header.php'), … … 539 539 array( 540 540 'name' => 'loc_end_page_tail', 541 'type' => 'trigger_ action',541 'type' => 'trigger_notify', 542 542 'vars' => array(), 543 543 'files' => array('include\page_tail.php'), … … 545 545 array( 546 546 'name' => 'loc_end_picture', 547 'type' => 'trigger_ action',547 'type' => 'trigger_notify', 548 548 'vars' => array(), 549 549 'files' => array('picture.php'), … … 551 551 array( 552 552 'name' => 'loc_end_picture_modify', 553 'type' => 'trigger_ action',553 'type' => 'trigger_notify', 554 554 'vars' => array(), 555 555 'files' => array('admin\picture_modify.php'), … … 558 558 array( 559 559 'name' => 'loc_end_profile', 560 'type' => 'trigger_ action',560 'type' => 'trigger_notify', 561 561 'vars' => array(), 562 562 'files' => array('profile.php'), … … 564 564 array( 565 565 'name' => 'loc_end_section_init', 566 'type' => 'trigger_ action',566 'type' => 'trigger_notify', 567 567 'vars' => array(), 568 568 'files' => array('include\section_init.inc.php'), … … 571 571 array( 572 572 'name' => 'loc_end_themes_installed', 573 'type' => 'trigger_ action',573 'type' => 'trigger_notify', 574 574 'vars' => array(), 575 575 'files' => array('admin\themes_installed.php'), … … 578 578 array( 579 579 'name' => 'loc_visible_user_list', 580 'type' => 'trigger_ event',580 'type' => 'trigger_change', 581 581 'vars' => array('array', 'visible_user_list'), 582 582 'files' => array('admin\user_list.php'), … … 584 584 array( 585 585 'name' => 'login_failure', 586 'type' => 'trigger_ action',586 'type' => 'trigger_notify', 587 587 'vars' => array('string', 'username'), 588 588 'files' => array('include\functions_user.inc.php (try_log_user)'), … … 590 590 array( 591 591 'name' => 'login_success', 592 'type' => 'trigger_ action',592 'type' => 'trigger_notify', 593 593 'vars' => array('string', 'username'), 594 594 'files' => array('include\functions_user.inc.php (auto_login, try_log_user)'), … … 596 596 array( 597 597 'name' => 'nbm_event_handler_added', 598 'type' => 'trigger_ action',598 'type' => 'trigger_notify', 599 599 'vars' => array(), 600 600 'files' => array('admin\notification_by_mail.php'), … … 602 602 array( 603 603 'name' => 'nbm_render_global_customize_mail_content', 604 'type' => 'trigger_ event',604 'type' => 'trigger_change', 605 605 'vars' => array('string', 'customize_mail_content'), 606 606 'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'), … … 608 608 array( 609 609 'name' => 'nbm_render_user_customize_mail_content', 610 'type' => 'trigger_ event',610 'type' => 'trigger_change', 611 611 'vars' => array('string', 'customize_mail_content', 'string', 'nbm_user'), 612 612 'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'), … … 614 614 array( 615 615 'name' => 'perform_batch_manager_prefilters', 616 'type' => 'trigger_ event',616 'type' => 'trigger_change', 617 617 'vars' => array('array', 'filter_sets', 'string', 'session_prefilter'), 618 618 'files' => array('admin\batch_manager.php'), … … 620 620 array( 621 621 'name' => 'picture_pictures_data', 622 'type' => 'trigger_ event',622 'type' => 'trigger_change', 623 623 'vars' => array('array', 'picture'), 624 624 'files' => array('picture.php'), … … 626 626 array( 627 627 'name' => 'plugins_loaded', 628 'type' => 'trigger_ action',628 'type' => 'trigger_notify', 629 629 'vars' => array(), 630 630 'files' => array('include\functions_plugins.inc.php (load_plugins)'), … … 632 632 array( 633 633 'name' => 'pwg_log_allowed', 634 'type' => 'trigger_ event',634 'type' => 'trigger_change', 635 635 'vars' => array('bool', 'do_log', 'int', 'image_id', 'string', 'image_type'), 636 636 'files' => array('include\functions.inc.php (pwg_log)'), … … 638 638 array( 639 639 'name' => 'register_user', 640 'type' => 'trigger_ action',640 'type' => 'trigger_notify', 641 641 'vars' => array('array', 'user'), 642 642 'files' => array('include\functions_user.inc.php (register_user)'), … … 644 644 array( 645 645 'name' => 'register_user_check', 646 'type' => 'trigger_ event',646 'type' => 'trigger_change', 647 647 'vars' => array('array', 'errors', 'array', 'user'), 648 648 'files' => array('include\functions_user.inc.php (register_user)'), … … 650 650 array( 651 651 'name' => 'render_category_description', 652 'type' => 'trigger_ event',652 'type' => 'trigger_change', 653 653 'vars' => array('string', 'category_description', 'string', 'action'), 654 654 'files' => array('include\category_cats.inc.php', 'include\section_init.inc.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList)'), … … 656 656 array( 657 657 'name' => 'render_category_literal_description', 658 'type' => 'trigger_ event',658 'type' => 'trigger_change', 659 659 'vars' => array('string', 'category_description'), 660 660 'files' => array('include\category_cats.inc.php'), … … 662 662 array( 663 663 'name' => 'render_category_name', 664 'type' => 'trigger_ event',664 'type' => 'trigger_change', 665 665 'vars' => array('string', 'category_name', 'string', 'location'), 666 666 'files' => array('admin\cat_list.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList, ws_categories_move)'), … … 668 668 array( 669 669 'name' => 'render_comment_author', 670 'type' => 'trigger_ event',670 'type' => 'trigger_change', 671 671 'vars' => array('string', 'comment_author'), 672 672 'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'), … … 674 674 array( 675 675 'name' => 'render_comment_content', 676 'type' => 'trigger_ event',676 'type' => 'trigger_change', 677 677 'vars' => array('string', 'comment_content'), 678 678 'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'), … … 680 680 array( 681 681 'name' => 'render_element_content', 682 'type' => 'trigger_ event',682 'type' => 'trigger_change', 683 683 'vars' => array('string', 'content', 'array', 'current_picture'), 684 684 'files' => array('picture.php'), … … 686 686 array( 687 687 'name' => 'render_element_name', 688 'type' => 'trigger_ event',688 'type' => 'trigger_change', 689 689 'vars' => array('string', 'element_name'), 690 690 'files' => array('include\functions_html.inc.php (render_element_name)'), … … 692 692 array( 693 693 'name' => 'render_element_description', 694 'type' => 'trigger_ event',694 'type' => 'trigger_change', 695 695 'vars' => array('string', 'element_description', 'string', 'action'), 696 696 'files' => array('picture.php', 'include\functions_html.inc.php (render_element_description)'), … … 698 698 array( 699 699 'name' => 'render_lost_password_mail_content', 700 'type' => 'trigger_ event',700 'type' => 'trigger_change', 701 701 'vars' => array('string', 'message'), 702 702 'files' => array('password.php (process_password_request)'), … … 704 704 array( 705 705 'name' => 'render_page_banner', 706 'type' => 'trigger_ event',706 'type' => 'trigger_change', 707 707 'vars' => array('string', 'gallery_title'), 708 708 'files' => array('include\page_header.php'), … … 710 710 array( 711 711 'name' => 'render_tag_name', 712 'type' => 'trigger_ event',712 'type' => 'trigger_change', 713 713 'vars' => array('string', 'tag_name', 'array', 'tag'), 714 714 'files' => array('admin\include\functions.php (get_taglist)', 'admin\tags.php', 'admin\history.php', 'include\functions_tag.inc.php (get_available_tags, get_all_tags, get_common_tags)', 'include\functions_html.inc.php (get_tags_content_title)', 'include\functions_search.inc.php (get_qsearch_tags)'), … … 716 716 array( 717 717 'name' => 'render_tag_url', 718 'type' => 'trigger_ event',718 'type' => 'trigger_change', 719 719 'vars' => array('string', 'tag_name'), 720 720 'files' => array('admin\include\functions.php (tag_id_from_tag_name, create_tag)', 'admin\tags.php'), … … 722 722 array( 723 723 'name' => 'save_profile_from_post', 724 'type' => 'trigger_ action',724 'type' => 'trigger_notify', 725 725 'vars' => array('int', 'user_id'), 726 726 'files' => array('profile.php (save_profile_from_post)'), … … 728 728 array( 729 729 'name' => 'before_send_mail', 730 'type' => 'trigger_ event',730 'type' => 'trigger_change', 731 731 'vars' => array('bool', 'result', 'mixed', 'to', 'array', 'arguments', 'PHPMailer', 'mail'), 732 732 'files' => array('include\functions_mail.inc.php (pwg_mail)'), … … 734 734 array( 735 735 'name' => 'before_parse_mail_template', 736 'type' => 'trigger_ action',736 'type' => 'trigger_notify', 737 737 'vars' => array('string', 'cache_key', 'string', 'content_type'), 738 738 'files' => array('include\functions_mail.inc.php (pwg_mail)'), … … 740 740 array( 741 741 'name' => 'sendResponse', 742 'type' => 'trigger_ action',742 'type' => 'trigger_notify', 743 743 'vars' => array('string', 'encodedResponse'), 744 744 'files' => array('include\ws_core.inc.php (PwgServer::sendResponse)'), … … 746 746 array( 747 747 'name' => 'set_status_header', 748 'type' => 'trigger_ action',748 'type' => 'trigger_notify', 749 749 'vars' => array('int', 'code', 'string', 'text'), 750 750 'files' => array('include\functions_html.inc.php (set_status_header)'), … … 752 752 array( 753 753 'name' => 'tabsheet_before_select', 754 'type' => 'trigger_ event',754 'type' => 'trigger_change', 755 755 'vars' => array('array', 'sheets', 'string', 'tabsheet_id'), 756 756 'files' => array('include\tabsheet.class.php (tabsheet::select)'), … … 759 759 array( 760 760 'name' => 'trigger', 761 'type' => 'trigger_ action',761 'type' => 'trigger_notify', 762 762 'vars' => array('array', null), 763 'files' => array('include\functions_plugins.inc.php (trigger_ event, trigger_action)'),763 'files' => array('include\functions_plugins.inc.php (trigger_change, trigger_notify)'), 764 764 ), 765 765 array( 766 766 'name' => 'user_comment_check', 767 'type' => 'trigger_ event',767 'type' => 'trigger_change', 768 768 'vars' => array('string', 'comment_action', 'array', 'comm'), 769 769 'files' => array('include\functions_comment.inc.php (insert_user_comment, update_user_comment)'), … … 772 772 array( 773 773 'name' => 'user_comment_deletion', 774 'type' => 'trigger_ action',774 'type' => 'trigger_notify', 775 775 'vars' => array('mixed', 'comment_id'), 776 776 'files' => array('include\functions_comment.inc.php (delete_user_comment)'), … … 779 779 array( 780 780 'name' => 'user_comment_insertion', 781 'type' => 'trigger_ action',781 'type' => 'trigger_notify', 782 782 'vars' => array('array', 'comm'), 783 783 'files' => array('include\picture_comment.inc.php'), … … 785 785 array( 786 786 'name' => 'user_comment_validation', 787 'type' => 'trigger_ action',787 'type' => 'trigger_notify', 788 788 'vars' => array('mixed', 'comment_id'), 789 789 'files' => array('include\functions_comment.inc.php (validate_user_comment)'), … … 792 792 array( 793 793 'name' => 'user_init', 794 'type' => 'trigger_ action',794 'type' => 'trigger_notify', 795 795 'vars' => array('array', 'user'), 796 796 'files' => array('include\user.inc.php'), … … 798 798 array( 799 799 'name' => 'ws_add_methods', 800 'type' => 'trigger_ action',800 'type' => 'trigger_notify', 801 801 'vars' => array('object', 'this'), 802 802 'files' => array('include\ws_core.inc.php (PwgServer::run)'), … … 804 804 array( 805 805 'name' => 'ws_invoke_allowed', 806 'type' => 'trigger_ event',806 'type' => 'trigger_change', 807 807 'vars' => array('bool', null, 'string', 'methodName', 'array', 'params'), 808 808 'files' => array('include\ws_core.inc.php (PwgServer::invoke)'), … … 810 810 array( 811 811 'name' => 'user_logout', 812 'type' => 'trigger_ action',812 'type' => 'trigger_notify', 813 813 'vars' => array('int', 'user_id'), 814 814 'files' => array('include\functions_user.inc.php (logout_user)'), … … 817 817 array( 818 818 'name' => 'user_login', 819 'type' => 'trigger_ action',819 'type' => 'trigger_notify', 820 820 'vars' => array('int', 'user_id'), 821 821 'files' => array('include\functions_user.inc.php (log_user)'), … … 824 824 array( 825 825 'name' => 'try_log_user', 826 'type' => 'trigger_ event',826 'type' => 'trigger_change', 827 827 'vars' => array('boolean', 'success', 'string', 'username', 'string', 'password', 'bool', 'remember_me'), 828 828 'files' => array('include\functions_user.inc.php (try_log_user)'), … … 831 831 array( 832 832 'name' => 'combinable_preparse', 833 'type' => 'trigger_ action',833 'type' => 'trigger_notify', 834 834 'vars' => array('Template', 'template', 'Combinable', '$combinable', 'FileCombiner', '$combiner'), 835 835 'files' => array('include\template.class.php (FileCombiner::process_combinable)'), … … 838 838 array( 839 839 'name' => 'user_list_columns', 840 'type' => 'trigger_ event',840 'type' => 'trigger_change', 841 841 'vars' => array('string[]', 'aColumns'), 842 842 'files' => array('admin\user_list_backend.php'), … … 845 845 array( 846 846 'name' => 'after_render_user_list', 847 'type' => 'trigger_ event',847 'type' => 'trigger_change', 848 848 'vars' => array('array', 'output'), 849 849 'files' => array('admin\user_list_backend.php'), … … 852 852 array( 853 853 'name' => 'update_rating_score', 854 'type' => 'trigger_ event',854 'type' => 'trigger_change', 855 855 'vars' => array('boolean', 'done', 'int', 'element_id'), 856 856 'files' => array('include\functions_rate.inc.php'), … … 859 859 array( 860 860 'name' => 'picture_modify_before_update', 861 'type' => 'trigger_ event',861 'type' => 'trigger_change', 862 862 'vars' => array('array', 'data'), 863 863 'files' => array('admin\picture_modify.php'), … … 866 866 array( 867 867 'name' => 'ws_users_getList', 868 'type' => 'trigger_ event',868 'type' => 'trigger_change', 869 869 'vars' => array('array', 'users'), 870 870 'files' => array('include\ws_functions\pwg.users.php'), … … 974 974 <select class="search_input"> 975 975 <option value="">Type</option> 976 <option value="trigger_ action">trigger_action</option>977 <option value="trigger_ event">trigger_event</option>976 <option value="trigger_notify">trigger_notify</option> 977 <option value="trigger_change">trigger_change</option> 978 978 </select> 979 979 </td>
Note: See TracChangeset
for help on using the changeset viewer.