Fixed spelling

This commit is contained in:
Furentes
2019-05-23 09:16:04 +02:00
parent e381050e1d
commit feb447c01c
5 changed files with 9 additions and 9 deletions

View File

@ -21,11 +21,11 @@
if ($auth->hasRole([ \Bloggr\Roles::ADMIN ])){ if ($auth->hasRole([ \Bloggr\Roles::ADMIN ])){
?> ?>
<a href="/users.php" class="pseudo button">Benutzer</a> <a href="/users.php" class="pseudo button">Benutzer</a>
<a href="/post.php?new" class="pseudo button">Neuer Post</a> <a href="/post.php?new" class="pseudo button">Neuer Beitrag</a>
<?php <?php
} elseif($auth->hasRole([ \Bloggr\Roles::AUTHOR ])) { } elseif($auth->hasRole([ \Bloggr\Roles::AUTHOR ])) {
?> ?>
<a href="/post.php?new" class="pseudo button">Neuer Post</a> <a href="/post.php?new" class="pseudo button">Neuer Beitrag</a>
<?php <?php
} }
?> ?>

View File

@ -6,7 +6,7 @@ $posts = $auth->getAllPosts();
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<?php <?php
$title = "Home"; $title = "Startseite";
require_once(__DIR__."/inc/head.php"); require_once(__DIR__."/inc/head.php");
?> ?>
<body> <body>

View File

@ -17,13 +17,13 @@ if (isset($_POST['login'])) {
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<?php <?php
$title = "Login"; $title = "Anmelden";
require_once(__DIR__."/inc/head.php"); require_once(__DIR__."/inc/head.php");
?> ?>
<body> <body>
<?php require_once(__DIR__."/inc/nav.php"); ?> <?php require_once(__DIR__."/inc/nav.php"); ?>
<section class="main"> <section class="main">
<h2>Login</h2> <h2>Anmelden</h2>
<?php <?php
foreach ($errors as $key=>$value): foreach ($errors as $key=>$value):
?> ?>
@ -39,7 +39,7 @@ require_once(__DIR__."/inc/head.php");
<input type="text" name="user" id="user" value="<?= (isset($_POST['user'])) ? htmlspecialchars($_POST['user']) : ''; ?>"> <input type="text" name="user" id="user" value="<?= (isset($_POST['user'])) ? htmlspecialchars($_POST['user']) : ''; ?>">
<label for="password">Password</label> <label for="password">Password</label>
<input type="password" name="password" id="password""> <input type="password" name="password" id="password"">
<input type="submit" name="login" value="Login" class="float-right"> <input type="submit" name="login" value="Anmelden" class="float-right">
</form> </form>
</section> </section>
</body> </body>

View File

@ -37,7 +37,7 @@ else if (isset($_GET['new'])) {
} }
else if (isset($_GET['edit'])) { else if (isset($_GET['edit'])) {
$action = 'edit'; $action = 'edit';
$title = "Beitrag bearbeitem"; $title = "Beitrag bearbeiten";
} }
else { else {
array_push($errors, '404 Not Found'); array_push($errors, '404 Not Found');
@ -181,7 +181,7 @@ require_once(__DIR__."/inc/head.php");
if ($action == 'edit'): if ($action == 'edit'):
?> ?>
<h2>Beitrag Bearbeiten</h2> <h2>Beitrag bearbeiten</h2>
<?php <?php
if($success == true) { if($success == true) {
echo '<span style="color: green;">Post bearbeitet!</span><br>'; echo '<span style="color: green;">Post bearbeitet!</span><br>';

View File

@ -28,7 +28,7 @@ require_once(__DIR__."/inc/head.php");
<body> <body>
<?php require_once(__DIR__."/inc/nav.php"); ?> <?php require_once(__DIR__."/inc/nav.php"); ?>
<section class="main"> <section class="main">
<h2>Register</h2> <h2>Account erstellen</h2>
<?php <?php
foreach ($errors as $key=>$value): foreach ($errors as $key=>$value):