diff options
Diffstat (limited to 'templates/phpexec.inc.php')
-rw-r--r-- | templates/phpexec.inc.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/phpexec.inc.php b/templates/phpexec.inc.php new file mode 100644 index 0000000..0d0404d --- /dev/null +++ b/templates/phpexec.inc.php @@ -0,0 +1,21 @@ +<?PHP + require_once('code/message.inc.php'); + require_once('code/links.inc.php'); + + class phpexec_template { + function Get($data) { + $title = strtr($data['_page'], array(':' => ' - ')); + + ob_start(); + + eval('?>' . $data['code']); + + $content = ob_get_contents(); + ob_end_clean(); + + return array('title' => $title, 'content' => $content); + } + } + + $GLOBALS['templates']['phpexec'] = new phpexec_template; +?> |