| 
									
										
										
										
											2002-07-16 15:04:02 +00:00
										 |  |  | <?php | 
					
						
							| 
									
										
										
										
											2003-04-20 21:12:13 +00:00
										 |  |  | /** | 
					
						
							| 
									
										
										
										
											2002-07-16 15:04:02 +00:00
										 |  |  |  * Smarty plugin | 
					
						
							| 
									
										
										
										
											2003-04-20 21:12:13 +00:00
										 |  |  |  * @package Smarty | 
					
						
							|  |  |  |  * @subpackage plugins | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Smarty {debug} function plugin | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Type:     function<br> | 
					
						
							|  |  |  |  * Name:     debug<br> | 
					
						
							|  |  |  |  * Date:     July 1, 2002<br> | 
					
						
							| 
									
										
										
										
											2002-09-09 13:20:09 +00:00
										 |  |  |  * Purpose:  popup debug window | 
					
						
							| 
									
										
										
										
											2003-04-20 21:12:13 +00:00
										 |  |  |  * @link http://smarty.php.net/manual/en/language.function.debug.php {debug} | 
					
						
							|  |  |  |  *       (Smarty online manual) | 
					
						
							| 
									
										
										
										
											2003-08-07 21:18:41 +00:00
										 |  |  |  * @author   Monte Ohrt <monte@ispi.net> | 
					
						
							| 
									
										
										
										
											2003-04-20 21:12:13 +00:00
										 |  |  |  * @version  1.0 | 
					
						
							|  |  |  |  * @param array | 
					
						
							|  |  |  |  * @param Smarty | 
					
						
							|  |  |  |  * @return string output from {@link Smarty::_generate_debug_output()} | 
					
						
							| 
									
										
										
										
											2002-07-16 15:04:02 +00:00
										 |  |  |  */ | 
					
						
							|  |  |  | function smarty_function_debug($params, &$smarty) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2003-08-07 21:18:41 +00:00
										 |  |  |     if($params['output']) { | 
					
						
							|  |  |  |         $smarty->assign('_smarty_debug_output',$params['output']); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.display_debug_console.php'); | 
					
						
							|  |  |  |     return smarty_core_display_debug_console(null, $smarty); | 
					
						
							| 
									
										
										
										
											2002-07-16 15:04:02 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* vim: set expandtab: */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ?>
 |