Version 0.7.1
- Min. Änderungen Signed-off-by: erik <micheler@steinbeis.schule>
This commit is contained in:
parent
65c6d9a45c
commit
1d79822346
2 changed files with 11 additions and 2 deletions
|
@ -172,10 +172,13 @@ if(!isset($_SESSION['user_id'])) {
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<p><small>Erstellt am: <?php echo $post['created_at']; ?></small></p>
|
<p><small>Erstellt am: <?php echo $post['created_at']; ?></small></p>
|
||||||
|
|
||||||
|
<?php if ($userId == $post['user_id']): ?>
|
||||||
<form action="upload-post/delete-post.php" method="post">
|
<form action="upload-post/delete-post.php" method="post">
|
||||||
<input type="hidden" name="post_id" value="<?php echo htmlspecialchars($post['id']); ?>">
|
<input type="hidden" name="post_id" value="<?= htmlspecialchars($post['id']) ?>">
|
||||||
<button type="submit">Delete</button>
|
<button type="submit">Löschen</button>
|
||||||
</form>
|
</form>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
|
@ -132,6 +132,12 @@ try {
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<p><small>Erstellt am: <?php echo $post['created_at']; ?></small></p>
|
<p><small>Erstellt am: <?php echo $post['created_at']; ?></small></p>
|
||||||
|
<?php if ($userId == $post['user_id']): ?>
|
||||||
|
<form action="upload-post/delete-post.php" method="post">
|
||||||
|
<input type="hidden" name="post_id" value="<?= htmlspecialchars($post['id']) ?>">
|
||||||
|
<button type="submit">Löschen</button>
|
||||||
|
</form>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue