diff options
Diffstat (limited to 'handlers/phpexec.inc.php')
-rw-r--r-- | handlers/phpexec.inc.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/handlers/phpexec.inc.php b/handlers/phpexec.inc.php index 2c1f7b4..fa84d61 100644 --- a/handlers/phpexec.inc.php +++ b/handlers/phpexec.inc.php @@ -18,41 +18,6 @@ return array('title' => $title, 'content' => $content); } - - function Add() { - $title = 'Add page'; - - $content = '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Add') . '">'; - $content .= '<input type="hidden" name="handler" value="' . $_POST['handler'] . '" />'; - $content .= 'Name: '; - $content .= '<input type="text" name="name" size="70" /><br />'; - $content .= '<textarea name="code" class="pageedit pageedit_input" rows="25" cols="70">'; - $content .= '</textarea><br />'; - $content .= '<input type="submit" class="submit" value="Hinzufügen" /> '; - $content .= '<input type="submit" name="back" class="submit" value="Zurück" />'; - $content .= '</form>'; - - return array('title' => $title, 'content' => $content); - } - - function Edit($data) { - $title = 'Edit \'' . $data['_page'] . '\''; - - $content = '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Pages:Edit') . '">'; - $content .= '<input type="hidden" name="id" value="' . $_POST['id'] . '" />'; - $content .= '<textarea name="code" class="pageedit pageedit_input" rows="25" cols="70">'; - $content .= strtr($data['code'], array('<' => '<', '>' => '>', '&' => '&', '"' => '"')); - $content .= '</textarea><br />'; - $content .= '<input type="submit" class="submit" value="Änderungen übernehmen" /> '; - $content .= '<input type="submit" name="back" class="submit" value="Zurück" />'; - $content .= '</form>'; - - return array('title' => $title, 'content' => $content); - } - - function ErrorMessage($type, $data = array()) { - return array('content' => '<span class="error">' . Message($type, $data) . '</span>', 'title' => Message('error')); - } } $handlers['phpexec'] = new phpexec_handler; |