From 328f0665f3832ef180d3399d6fb6153545d6c6bd Mon Sep 17 00:00:00 2001 From: Hendrik Date: Thu, 26 Jan 2017 11:35:18 +0100 Subject: [PATCH] add basic post functionality --- website/public/API/postComment.php | 16 ++++++++++++++++ website/public/API/postPost.php | 17 +++++++++++++++++ website/queries/post.php | 2 +- website/views/post-view.php | 5 +++-- website/views/profile.php | 6 +++--- 5 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 website/public/API/postComment.php create mode 100644 website/public/API/postPost.php diff --git a/website/public/API/postComment.php b/website/public/API/postComment.php new file mode 100644 index 0000000..c5b30cc --- /dev/null +++ b/website/public/API/postComment.php @@ -0,0 +1,16 @@ +prepare(" + $stmt = $GLOBALS["db"]->prepare(" INSERT INTO `comment` ( `postID`, diff --git a/website/views/post-view.php b/website/views/post-view.php index 044c23e..0f091a6 100644 --- a/website/views/post-view.php +++ b/website/views/post-view.php @@ -21,8 +21,9 @@ echo("
-
-
+ + +
diff --git a/website/views/profile.php b/website/views/profile.php index 19b9eae..404d957 100644 --- a/website/views/profile.php +++ b/website/views/profile.php @@ -58,9 +58,9 @@ if ($_SESSION["userID"] === $userID) { ?>
-
- - + + +