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 ])){
?>
<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
} 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
}
?>

View File

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

View File

@ -17,13 +17,13 @@ if (isset($_POST['login'])) {
<!DOCTYPE html>
<html>
<?php
$title = "Login";
$title = "Anmelden";
require_once(__DIR__."/inc/head.php");
?>
<body>
<?php require_once(__DIR__."/inc/nav.php"); ?>
<section class="main">
<h2>Login</h2>
<h2>Anmelden</h2>
<?php
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']) : ''; ?>">
<label for="password">Password</label>
<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>
</section>
</body>

View File

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

View File

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