Ejemplo n.º 1
0
 function _compile_smarty_ref(&$indexes)
 {
     $_ref = substr($indexes[0], 1);
     // post, get and env variables are disabled
     if (in_array($_ref, array('post', 'get', 'env'))) {
         $this->_syntax_error("access for \$smarty.{$_ref} variables is disabled, please use \$smarty.request", E_USER_WARNING, __FILE__, __LINE__);
     }
     // Access to request variable is provided via escaped one
     if ($_ref == 'request') {
         array_shift($indexes);
         return '$this->_tpl_vars[\'_REQUEST\']';
     }
     return parent::_compile_smarty_ref($indexes);
 }