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 /index.php | |
parent | e7359ccf2db89b1feec820d1c97583f720ae0d7a (diff) | |
download | neon-531b89f69ab5e72900fbd2484d60491f68e9153b.tar neon-531b89f69ab5e72900fbd2484d60491f68e9153b.zip |
Sofort-Bearbeiten funktioniert jetzt.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -5,6 +5,7 @@ require_once('code/util.inc.php'); require_once('code/pages.inc.php'); require_once('code/nav.inc.php'); + require_once('code/links.inc.php'); header('Content-type: text/html;charset=UTF-8'); @@ -28,7 +29,16 @@ <?PHP echo $nav->ParseEntries(); ?> </div> <div id="content"> - <?PHP echo $data['content']; ?> + <?PHP + if($pages->HasWriteAccess($page, 'c')) { + $backlink = $GLOBALS['links']->GetNeonLink($page); + + echo '<a class="editlink" href="' . $GLOBALS['links']->GetNeonLink('Pages:Edit', + 'name=' . urlencode($page)) . '&type=c&backlink=' . urlencode($backlink) . '">Bearbeiten</a>'; + } + + echo $data['content']; + ?> </div> </body> </html> |