PageRenderTime 48ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/core/model/smarty/plugins/function.exit.php

http://modx-revo-ja.googlecode.com/
PHP | 27 lines | 6 code | 4 blank | 17 comment | 0 complexity | 2719ac72892c9f7a838f95e3d209882e MD5 | raw file
Possible License(s): AGPL-1.0, LGPL-2.1, GPL-2.0, GPL-3.0
  1. <?php
  2. /**
  3. * Smarty plugin
  4. * @package Smarty
  5. * @subpackage plugins
  6. */
  7. /**
  8. * Smarty {exit} function plugin
  9. *
  10. * Type: function<br>
  11. * Name: exit<br>
  12. * Purpose: Mimic exit
  13. * @author Shaun McCormick <splittingred at gmail dot com>
  14. * @param array
  15. * @param Smarty
  16. * @return string
  17. */
  18. function smarty_function_exit($params, &$smarty)
  19. {
  20. exit();
  21. }
  22. /* vim: set expandtab: */
  23. ?>