summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/index.php b/index.php
index 9b80e3b..e732715 100644
--- a/index.php
+++ b/index.php
@@ -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)) . '&amp;type=c&amp;backlink=' . urlencode($backlink) . '">Bearbeiten</a>';
+ }
+
+ echo $data['content'];
+ ?>
</div>
</body>
</html>