diff --git a/libs/plugins/function.eval.php b/libs/plugins/function.eval.php new file mode 100644 index 00000000..e13e065d --- /dev/null +++ b/libs/plugins/function.eval.php @@ -0,0 +1,34 @@ +trigger_error("assign: missing 'var' parameter"); + return; + } + + $this->_compile_template("eval_var",$var,$source); + + if (!empty($assign)) { + ob_start(); + eval('?>'.$source); + $this->assign($assign,ob_get_contents()); + ob_end_clean(); + } else { + eval('?>'.$source); + } +} + +/* vim: set expandtab: */ + +?> diff --git a/plugins/function.eval.php b/plugins/function.eval.php new file mode 100644 index 00000000..e13e065d --- /dev/null +++ b/plugins/function.eval.php @@ -0,0 +1,34 @@ +trigger_error("assign: missing 'var' parameter"); + return; + } + + $this->_compile_template("eval_var",$var,$source); + + if (!empty($assign)) { + ob_start(); + eval('?>'.$source); + $this->assign($assign,ob_get_contents()); + ob_end_clean(); + } else { + eval('?>'.$source); + } +} + +/* vim: set expandtab: */ + +?>