summaryrefslogtreecommitdiffstats
path: root/templates/phpexec.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/phpexec.inc.php')
-rw-r--r--templates/phpexec.inc.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/templates/phpexec.inc.php b/templates/phpexec.inc.php
index 3e542df..18c33be 100644
--- a/templates/phpexec.inc.php
+++ b/templates/phpexec.inc.php
@@ -2,7 +2,7 @@
Uses('message', 'links');
class phpexec_template {
- function Get($data) {
+ function GetPage($data) {
$title = strtr($data['_page'], array(':' => ' - '));
ob_start();
@@ -14,6 +14,23 @@
return array('title' => $title, 'content' => $content);
}
+
+ function GetEditor($data) {
+ $title = 'Edit \'' . $data['_page'] . '\'';
+
+ $content = '<h2>' . $title . '</h2>';
+ $content .= '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Edit') . '">';
+ $content .= '<input type="hidden" name="name" value="' . $data['_page'] . '" />';
+ $content .= '<input type="hidden" name="type" value="' . $data['_type'] . '" />';
+ $content .= '<input type="hidden" name="backlink" value="' . htmlspecialchars($data['_backlink']) . '" />';
+ $content .= '<textarea name="data_code" class="pageedit spaced-bottom" rows="25" cols="70">';
+ $content .= htmlspecialchars($data['code']) . '</textarea><br />';
+ $content .= '<input type="submit" value="Änderungen übernehmen" />';
+ $content .= '<input type="submit" name="back" value="Zurück" />';
+ $content .= '</form>';
+
+ return array('title' => $title, 'content' => $content);
+ }
}
$GLOBALS['templates']['phpexec'] = new phpexec_template;