diff options
author | neoraider <devnull@localhost> | 2006-04-18 02:20:03 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-04-18 02:20:03 +0200 |
commit | 531b89f69ab5e72900fbd2484d60491f68e9153b (patch) | |
tree | 397a9203c3cc7c2042b9276f67e89ede68fcd0da /pages/editor | |
parent | e7359ccf2db89b1feec820d1c97583f720ae0d7a (diff) | |
download | neon-531b89f69ab5e72900fbd2484d60491f68e9153b.tar neon-531b89f69ab5e72900fbd2484d60491f68e9153b.zip |
Sofort-Bearbeiten funktioniert jetzt.
Diffstat (limited to 'pages/editor')
-rw-r--r-- | pages/editor/default.xml | 8 | ||||
-rw-r--r-- | pages/editor/phpexec.xml | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/pages/editor/default.xml b/pages/editor/default.xml index 3c0c79e..f85929c 100644 --- a/pages/editor/default.xml +++ b/pages/editor/default.xml @@ -3,20 +3,24 @@ <info> <name>phpexec</name> <template>phpexec</template> - <access>0:0</access> + <access>9:0</access> <type>e</type> </info> <data> <code> <![CDATA[ <?PHP + require_once('code/links.inc.php'); + + $title = 'Edit \'' . $data['_data']['_page'] . '\''; echo '<h2>' . $title . '</h2>'; ?> -<form method="post" action="<?PHP echo $GLOBALS['links']->GetNeonLink('Pages:Edit'); ?>"> +<form method="post" action="<?PHP echo $GLOBALS['links']->GetNeonLink('Pages:Edit:Do'); ?>"> <input type="hidden" name="name" value="<?PHP echo $data['_data']['_page'] ?>" /> <input type="hidden" name="type" value="<?PHP echo $data['_data']['_type']; ?>" /> + <input type="hidden" name="backlink" value="<?PHP echo htmlspecialchars($data['_backlink']); ?>" /> Titel: <input type="text" name="data_title" value="<?PHP echo strtr($data['_data']['title'], array('<' => '<', '>' => '>', '&' => '&', '"' => '"')); ?>" size="70" /><br /> diff --git a/pages/editor/phpexec.xml b/pages/editor/phpexec.xml index a2c390d..be7c4e9 100644 --- a/pages/editor/phpexec.xml +++ b/pages/editor/phpexec.xml @@ -3,20 +3,24 @@ <info> <name>phpexec</name> <template>phpexec</template> - <access>0:0</access> + <access>9:0</access> <type>e</type> </info> <data> <code> <![CDATA[ <?PHP + require_once('code/links.inc.php'); + + $title = 'Edit \'' . $data['_data']['_page'] . '\''; echo '<h2>' . $title . '</h2>'; ?> -<form method="post" action="<?PHP echo $GLOBALS['links']->GetNeonLink('Pages:Edit'); ?>"> +<form method="post" action="<?PHP echo $GLOBALS['links']->GetNeonLink('Pages:Edit:Do'); ?>"> <input type="hidden" name="name" value="<?PHP echo $data['_data']['_page'] ?>" /> <input type="hidden" name="type" value="<?PHP echo $data['_data']['_type']; ?>" /> + <input type="hidden" name="backlink" value="<?PHP echo htmlspecialchars($data['_backlink']); ?>" /> <textarea name="data_code" class="pageedit spaced-bottom" rows="25" cols="70"><?PHP echo strtr($data['_data']['code'], array('<' => '<', '>' => '>', '&' => '&', '"' => '"')); ?></textarea><br /> |