From c55dbbc995e152af3f2c88662101b0643d2e171a Mon Sep 17 00:00:00 2001 From: vdigital Date: Fri, 23 May 2008 22:38:14 +0000 Subject: Removed file/folder git-svn-id: http://piwigo.org/svn/trunk@2358 68402e56-0260-453c-a942-63ccdbb3a9ee --- BSF/plugins/event_tracer/event_list.php | 90 --------------------------------- 1 file changed, 90 deletions(-) delete mode 100644 BSF/plugins/event_tracer/event_list.php (limited to 'BSF/plugins/event_tracer/event_list.php') diff --git a/BSF/plugins/event_tracer/event_list.php b/BSF/plugins/event_tracer/event_list.php deleted file mode 100644 index ae617fe87..000000000 --- a/BSF/plugins/event_tracer/event_list.php +++ /dev/null @@ -1,90 +0,0 @@ -.*<\?php#m', '', $code); - $code = preg_replace( '#\/\*.*\*\/#m', '', $code); - $code = preg_replace( '#\/\/.*#', '', $code); - - $count = preg_match_all( - '#[^a-zA-Z_$-]trigger_(action|event)\s*\(\s*([^,)]+)#m', - $code, $matches - ); - - for ($i=0; $i<$count; $i++) - { - $type = $matches[1][$i]; - $name = preg_replace( '#^[\'"]?([^\'"]*)[\'"]?$#', '$1', $matches[2][$i]); - array_push($events, array($type,$name,$file) ); - } -} - -$sort= isset($_GET['sort']) ? $_GET['sort'] : 1; -usort( - $events, - create_function( '$a,$b', 'return $a['.$sort.']>$b['.$sort.'];' ) - ); - -global $template; - -$url = get_admin_plugin_menu_link(__FILE__); - -$template->assign( array( - 'NB_EVENTS' => count($events), - 'U_SORT0' => add_url_params($url, array('sort'=>0) ), - 'U_SORT1' => add_url_params($url, array('sort'=>1) ), - 'U_SORT2' => add_url_params($url, array('sort'=>2) ), - ) ); - -$template->assign('events', array()); -foreach ($events as $e) -{ - $template->append( 'events', array( - 'TYPE' => $e[0], - 'NAME' => $e[1], - 'FILE' => $e[2], - ) - ); -} - -$template->set_filenames( array('event_list' => dirname(__FILE__).'/event_list.tpl' ) ); -$template->assign_var_from_handle( 'ADMIN_CONTENT', 'event_list'); -?> -- cgit v1.2.3