summaryrefslogtreecommitdiffstats
path: root/handlers
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-04-11 20:34:03 +0200
committerneoraider <devnull@localhost>2006-04-11 20:34:03 +0200
commit3634676b7fab1da7ffb5f3d32bc4608a6f339305 (patch)
treef9a8e5cf5f78c2a76cda3152ee8b58cf286a4292 /handlers
parent2fe04a4707412ff2f4f8df5f5524bb1b2dcbb3d7 (diff)
downloadneon-3634676b7fab1da7ffb5f3d32bc4608a6f339305.tar
neon-3634676b7fab1da7ffb5f3d32bc4608a6f339305.zip
Handler hei?en jetzt Templates.
Diffstat (limited to 'handlers')
-rw-r--r--handlers/default.inc.php18
-rw-r--r--handlers/phpexec.inc.php21
2 files changed, 0 insertions, 39 deletions
diff --git a/handlers/default.inc.php b/handlers/default.inc.php
deleted file mode 100644
index 8bc8200..0000000
--- a/handlers/default.inc.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?PHP
- require_once('code/message.inc.php');
-
- class default_handler {
- function Get($data) {
- if($data['title'])
- $title = strtr($data['title'], array('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;'));
- else
- $title = strtr($data['_page'], array(':' => ' - '));
- $content = '<h2>' . $title . '</h2>' . strtr($data['content'], array('<' => '&lt;', '>' => '&gt;', '&' => '&amp;',
- '"' => '&quot;', "\n" => '<br />', "\r" => ''));
-
- return array('title' => $title, 'content' => $content);
- }
- }
-
- $GLOBALS['handlers']['default'] = new default_handler;
-?>
diff --git a/handlers/phpexec.inc.php b/handlers/phpexec.inc.php
deleted file mode 100644
index 5b8c751..0000000
--- a/handlers/phpexec.inc.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?PHP
- require_once('code/message.inc.php');
- require_once('code/links.inc.php');
-
- class phpexec_handler {
- 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['handlers']['phpexec'] = new phpexec_handler;
-?>