PostfixAdmin - web based virtual user administration interface for Postfix mail servers https://postfixadmin.github.io/postfixadmin/
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.

26 lines
589 B

  1. <?php
  2. /**
  3. * Smarty plugin to execute PHP code
  4. *
  5. * @package Smarty
  6. * @subpackage PluginsBlock
  7. * @author Uwe Tews
  8. */
  9. /**
  10. * Smarty {php}{/php} block plugin
  11. *
  12. * @param string $content contents of the block
  13. * @param object $template template object
  14. * @param boolean $ &$repeat repeat flag
  15. * @return string content re-formatted
  16. */
  17. function smarty_block_php($params, $content, $template, &$repeat)
  18. {
  19. if (!$template->allow_php_tag) {
  20. throw new SmartyException("{php} is deprecated, set allow_php_tag = true to enable");
  21. }
  22. eval($content);
  23. return '';
  24. }
  25. ?>