Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function fetch()
- {
- $html = &$this->tpl_contents;
- $html = str_replace("<if(", "<?php if(", $html);
- $html = str_replace("<elseif(", "<?php elseif(", $html);
- $html = str_replace("<else>", "<?php else: ?>", $html);
- $html = str_replace(")>", "): ?>", $html);
- $html = str_replace("</if>", "<?php endif; ?>", $html);
- extract($this->variables);
- ob_start();
- eval(" ?>{$html} ");
- $html = ob_get_contents();
- ob_end_clean();
- eval(" \$html = \"".addslashes($html)."\"; ");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement