From 3634676b7fab1da7ffb5f3d32bc4608a6f339305 Mon Sep 17 00:00:00 2001 From: neoraider Date: Tue, 11 Apr 2006 18:34:03 +0000 Subject: Handler hei?en jetzt Templates. --- templates/default.inc.php | 18 ++++++++++++++++++ templates/phpexec.inc.php | 21 +++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 templates/default.inc.php create mode 100644 templates/phpexec.inc.php (limited to 'templates') diff --git a/templates/default.inc.php b/templates/default.inc.php new file mode 100644 index 0000000..9669671 --- /dev/null +++ b/templates/default.inc.php @@ -0,0 +1,18 @@ + '<', '>' => '>', '&' => '&', '"' => '"')); + else + $title = strtr($data['_page'], array(':' => ' - ')); + $content = '

' . $title . '

' . strtr($data['content'], array('<' => '<', '>' => '>', '&' => '&', + '"' => '"', "\n" => '
', "\r" => '')); + + return array('title' => $title, 'content' => $content); + } + } + + $GLOBALS['templates']['default'] = new default_template; +?> 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 @@ + ' - ')); + + ob_start(); + + eval('?>' . $data['code']); + + $content = ob_get_contents(); + ob_end_clean(); + + return array('title' => $title, 'content' => $content); + } + } + + $GLOBALS['templates']['phpexec'] = new phpexec_template; +?> -- cgit v1.2.3