| 
									
										
										
										
											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) | 
					
						
							| 
									
										
										
										
											2005-01-21 17:46:15 +00:00
										 |  |  |  * @author   Monte Ohrt <monte at ohrt dot com> | 
					
						
							| 
									
										
										
										
											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) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2004-09-11 18:52:13 +00:00
										 |  |  |     if (isset($params['output'])) { | 
					
						
							|  |  |  |         $smarty->assign('_smarty_debug_output', $params['output']); | 
					
						
							| 
									
										
										
										
											2003-08-07 21:18:41 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2004-09-16 23:07:32 +00:00
										 |  |  |     require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php'); | 
					
						
							| 
									
										
										
										
											2003-08-07 21:18:41 +00:00
										 |  |  |     return smarty_core_display_debug_console(null, $smarty); | 
					
						
							| 
									
										
										
										
											2002-07-16 15:04:02 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* vim: set expandtab: */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ?>
 |