1 |
cvsjoko |
1.1 |
<?php |
2 |
|
|
|
3 |
|
|
/* |
4 |
|
|
* Smarty plugin |
5 |
|
|
* ------------------------------------------------------------- |
6 |
|
|
* Type: function |
7 |
joko |
1.2 |
* Name: debug |
8 |
|
|
* Version: 1.0 |
9 |
|
|
* Date: July 1, 2002 |
10 |
cvsjoko |
1.1 |
* Author: Monte Ohrt <monte@ispi.net> |
11 |
joko |
1.2 |
* Purpose: popup debug window |
12 |
cvsjoko |
1.1 |
* ------------------------------------------------------------- |
13 |
|
|
*/ |
14 |
|
|
function smarty_function_debug($params, &$smarty) |
15 |
|
|
{ |
16 |
|
|
if($params['output']) { |
17 |
|
|
$smarty->assign('_smarty_debug_output',$params['output']); |
18 |
|
|
} |
19 |
|
|
echo $smarty->_generate_debug_output(); |
20 |
|
|
} |
21 |
|
|
|
22 |
|
|
/* vim: set expandtab: */ |
23 |
|
|
|
24 |
|
|
?> |