From 391875ea8389d043360961cf2c5a69f2b6d7a91a Mon Sep 17 00:00:00 2001 From: steckbrief Date: Thu, 28 Dec 2017 13:46:55 +0100 Subject: update and delete added --- index.php | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 83 insertions(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 1d1dbbe..ded66bd 100644 --- a/index.php +++ b/index.php @@ -2,6 +2,7 @@ include_once(__DIR__.'/lib/commons/functions.common.inc.php'); include_once(__DIR__.'/lib/commons/functions.http.inc.php'); +require_once(__DIR__.'/lib/commons/functions.files.inc.php'); include_once(__DIR__.'/lib/functions.stories.inc.php'); $config = require(__DIR__.'/config/config.inc.php'); @@ -44,6 +45,7 @@ ksort($stories, SORT_STRING); $currentStoryName = visibleName($currentStory); function printEntities($entities, $storyName = NULL) { + global $isAdmin, $isAuthenticated; foreach ($entities as $entity=>$description) { $name = visibleName($entity); $imgName = (NULL != $storyName) ? 'passphoto.png' : 'logo.png'; @@ -56,8 +58,18 @@ function printEntities($entities, $storyName = NULL) { <?=$name;?>
-

-

+

+ + + + + +

+

@@ -76,6 +88,74 @@ function printEntities($entities, $storyName = NULL) { +