Changeset 3611
- Timestamp:
- Jul 16, 2009, 9:23:43 PM (15 years ago)
- Location:
- trunk/plugins/event_tracer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/event_tracer/main.inc.php
r3282 r3611 24 24 /* 25 25 Plugin Name: Event tracer 26 Version: 2.0. 226 Version: 2.0.3 27 27 Description: For developers. Shows all calls to trigger_event. 28 28 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=288 … … 66 66 { 67 67 $this->my_config['filters'] = array( '.*' ); 68 $this->my_config['show_args'] = false;69 68 $this->my_config['show_registered'] = true; 70 69 $this->save_config(); … … 83 82 function on_page_tail() 84 83 { 85 if (1 || @$this->my_config['show_registered']) 84 global $debug; 85 if (@$this->my_config['show_registered']) 86 86 { 87 global $ debug, $pwg_event_handlers;87 global $pwg_event_handlers; 88 88 $out = ''; 89 89 foreach ($pwg_event_handlers as $event => $prio_array) … … 112 112 $debug .= '<pre>'.$out.'</pre>'; 113 113 } 114 if (@$this->my_config['show_included_files']) 115 { 116 $debug .= "<pre><em>Included files</em>\n".var_export( get_included_files(), true ).'</pre>'; 117 } 114 118 } 115 119 … … 123 127 if ( preg_match( '/'.$filter.'/', $event_info['event'] ) ) 124 128 { 125 if ( $this->my_config['show_args'])129 if (@$this->my_config['show_args']) 126 130 { 127 131 $s = '<pre>'; -
trunk/plugins/event_tracer/tracer_admin.php
r3282 r3611 19 19 $me->my_config['show_args'] = isset($_POST['eventTracer_show_args']); 20 20 $me->my_config['show_registered'] = isset($_POST['eventTracer_show_registered']); 21 if (isset($_POST['eventTracer_show_included_files']) ) 22 $me->my_config['show_included_files'] = true; 23 else 24 unset($me->my_config['show_included_files']); 21 25 $me->save_config(); 22 26 global $page; … … 24 28 } 25 29 $template->assign('EVENT_TRACER_FILTERS', implode("\n", $me->my_config['filters'] ) ); 26 $template->assign('EVENT_TRACER_SHOW_ARGS', $me->my_config['show_args'] ? 'checked="checked"' : '' );30 $template->assign('EVENT_TRACER_SHOW_ARGS', @$me->my_config['show_args'] ? 'checked="checked"' : '' ); 27 31 $template->assign('U_LIST_EVENTS', get_admin_plugin_menu_link(dirname(__FILE__).'/event_list.php')); 28 $template->assign('EVENT_TRACER_SHOW_REGISTERED', $me->my_config['show_registered'] ? 'checked="checked"' : '' ); 32 $template->assign('EVENT_TRACER_SHOW_REGISTERED', @$me->my_config['show_registered'] ? 'checked="checked"' : '' ); 33 $template->assign('EVENT_TRACER_SHOW_INCLUDED_FILES', @$me->my_config['show_included_files'] ? 'checked="checked"' : '' ); 29 34 30 35 //$template->assign_var('EVENT_TRACER_F_ACTION', $my_url); -
trunk/plugins/event_tracer/tracer_admin.tpl
r3283 r3611 29 29 </label> 30 30 31 <label>Show all included php files 32 <input type="checkbox" name="eventTracer_show_included_files" {$EVENT_TRACER_SHOW_INCLUDED_FILES} /> 33 </label> 34 31 35 </fieldset> 32 36
Note: See TracChangeset
for help on using the changeset viewer.