mirror of
https://github.com/p08dev/Bloggr.git
synced 2026-06-17 04:33:56 +02:00
Fixed spelling
This commit is contained in:
@ -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
|
||||
}
|
||||
?>
|
||||
|
||||
@ -6,7 +6,7 @@ $posts = $auth->getAllPosts();
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<?php
|
||||
$title = "Home";
|
||||
$title = "Startseite";
|
||||
require_once(__DIR__."/inc/head.php");
|
||||
?>
|
||||
<body>
|
||||
|
||||
@ -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>
|
||||
|
||||
4
post.php
4
post.php
@ -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>';
|
||||
|
||||
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user