Exemplo n.º 1
0
 function _create_function($args, $code)
 {
     global $AR;
     $pinp = new pinp($AR->PINP_Functions, 'var_', '$AR_this->_');
     $safe_args = $pinp->compileFuncCallArgs("{$args}", "funcCallArgs");
     $pinp = new pinp($AR->PINP_Functions, 'var_', '$AR_this->_');
     $safe_code = substr($pinp->compile("<pinp>{$code}</pinp>"), 5, -2);
     return create_function($safe_args, $safe_code);
 }