summaryrefslogtreecommitdiffstats
path: root/pages/editor
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-04-18 02:20:03 +0200
committerneoraider <devnull@localhost>2006-04-18 02:20:03 +0200
commit531b89f69ab5e72900fbd2484d60491f68e9153b (patch)
tree397a9203c3cc7c2042b9276f67e89ede68fcd0da /pages/editor
parente7359ccf2db89b1feec820d1c97583f720ae0d7a (diff)
downloadneon-531b89f69ab5e72900fbd2484d60491f68e9153b.tar
neon-531b89f69ab5e72900fbd2484d60491f68e9153b.zip
Sofort-Bearbeiten funktioniert jetzt.
Diffstat (limited to 'pages/editor')
-rw-r--r--pages/editor/default.xml8
-rw-r--r--pages/editor/phpexec.xml8
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('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;'));
?>" 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('<' => '&lt;', '>' => '&gt;', '&' => '&amp;', '"' => '&quot;'));
?></textarea><br />