Delete Posts!

This commit is contained in:
Marijn Jansen
2017-02-01 14:34:02 +01:00
parent fc07027405
commit dbfe10f84b
4 changed files with 36 additions and 9 deletions

View File

@@ -6,9 +6,14 @@ session_start();
?>
<div class='post-header header'>
<h4><?=$post['title']?></h4>
<form onsubmit="return false;" id="deletepostform">
<button onclick="deletePost('<?=$postID?>')" type="submit">verwijder post<br /></button>
</form>
<?php if (checkPermissionOnPost($postID, $_SESSION["userID"])) {?>
<button class="deleteButton"
onclick="deletePost('<?=$postID?>')"
type="submit">
<i class="fa fa-trash"></i>
<span>Verwijder post</span>
</button><br />
<?php } ?>
<span class='postinfo'>
gepost door <?=$fullname?>,
<span class='posttime' title='<?=$post['creationdate']?>'>