diff options
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> |