Automatically exported from code.google.com/p/planningalerts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

function.debug.php 835 B

18 years ago
1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Smarty plugin
  4. * @package Smarty
  5. * @subpackage plugins
  6. */
  7. /**
  8. * Smarty {debug} function plugin
  9. *
  10. * Type: function<br>
  11. * Name: debug<br>
  12. * Date: July 1, 2002<br>
  13. * Purpose: popup debug window
  14. * @link http://smarty.php.net/manual/en/language.function.debug.php {debug}
  15. * (Smarty online manual)
  16. * @author Monte Ohrt <monte at ohrt dot com>
  17. * @version 1.0
  18. * @param array
  19. * @param Smarty
  20. * @return string output from {@link Smarty::_generate_debug_output()}
  21. */
  22. function smarty_function_debug($params, &$smarty)
  23. {
  24. if (isset($params['output'])) {
  25. $smarty->assign('_smarty_debug_output', $params['output']);
  26. }
  27. require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');
  28. return smarty_core_display_debug_console(null, $smarty);
  29. }
  30. /* vim: set expandtab: */
  31. ?>