| 
									
										
										
										
											2002-07-16 15:04:02 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* | 
					
						
							|  |  |  |  * Smarty plugin | 
					
						
							|  |  |  |  * ------------------------------------------------------------- | 
					
						
							|  |  |  |  * Type:     function
 | 
					
						
							| 
									
										
										
										
											2002-09-09 13:20:09 +00:00
										 |  |  |  * Name:     debug | 
					
						
							|  |  |  |  * Version:  1.0 | 
					
						
							|  |  |  |  * Date:     July 1, 2002 | 
					
						
							| 
									
										
										
										
											2002-07-16 15:04:02 +00:00
										 |  |  |  * Author:	 Monte Ohrt <monte@ispi.net> | 
					
						
							| 
									
										
										
										
											2002-09-09 13:20:09 +00:00
										 |  |  |  * Purpose:  popup debug window | 
					
						
							| 
									
										
										
										
											2002-07-16 15:04:02 +00:00
										 |  |  |  * ------------------------------------------------------------- | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | function smarty_function_debug($params, &$smarty) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	if($params['output']) { | 
					
						
							|  |  |  | 		$smarty->assign('_smarty_debug_output',$params['output']); | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2003-01-08 17:34:45 +00:00
										 |  |  | 	return $smarty->_generate_debug_output(); | 
					
						
							| 
									
										
										
										
											2002-07-16 15:04:02 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* vim: set expandtab: */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ?>
 |