diff --git a/index.php b/index.php index 810d45c..2aab7b9 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,7 @@ getAllPosts(); ?> @@ -12,6 +13,13 @@ require_once(__DIR__."/lib/autoload.php");
hasRole([ \Bloggr\Roles::ADMIN, \Bloggr\Roles::AUTHOR ])) { + ?> ++ Neuer Beitrag +
+ isLoggedIn()) { ?>@@ -21,8 +29,7 @@ require_once(__DIR__."/lib/autoload.php"); Registrieren
isLoggedIn()) { + } else { ?>Logout @@ -30,5 +37,25 @@ require_once(__DIR__."/lib/autoload.php"); +
+
+ Text:
+ = substr($post['text'], 0, 512) ?>= (substr($post['text'], 0, 512) !== $post['text']) ? '...
Weiterlesen...' : '' ?>
+
Author: = $post['user'] ?>
+ + +