Code

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