Ignore:
Timestamp:
Jul 16, 2009, 9:23:43 PM (15 years ago)
Author:
rvelices
Message:

improve event tracer: add the possibility to dump all the included php files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/event_tracer/main.inc.php

    r3282 r3611  
    2424/*
    2525Plugin Name: Event tracer
    26 Version: 2.0.2
     26Version: 2.0.3
    2727Description: For developers. Shows all calls to trigger_event.
    2828Plugin URI: http://piwigo.org/ext/extension_view.php?eid=288
     
    6666    {
    6767      $this->my_config['filters'] = array( '.*' );
    68       $this->my_config['show_args'] = false;
    6968      $this->my_config['show_registered'] = true;
    7069      $this->save_config();
     
    8382  function on_page_tail()
    8483  {
    85     if (1 || @$this->my_config['show_registered'])
     84    global $debug;
     85    if (@$this->my_config['show_registered'])
    8686    {
    87       global $debug, $pwg_event_handlers;
     87      global $pwg_event_handlers;
    8888      $out = '';
    8989      foreach ($pwg_event_handlers as $event => $prio_array)
     
    112112      $debug .= '<pre>'.$out.'</pre>';
    113113    }
     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    }
    114118  }
    115119
     
    123127      if ( preg_match( '/'.$filter.'/', $event_info['event'] ) )
    124128      {
    125         if ($this->my_config['show_args'])
     129        if (@$this->my_config['show_args'])
    126130        {
    127131          $s = '<pre>';
Note: See TracChangeset for help on using the changeset viewer.