End of day

This commit is contained in:
Marijn Jansen
2017-01-31 16:11:03 +01:00
parent 2a37b9c64d
commit eb094858b5
4 changed files with 50 additions and 35 deletions

View File

@@ -6,6 +6,7 @@ require_once("../../queries/post.php");
require_once("../../queries/group_page.php");
require_once("../../queries/connect.php");
require_once("../../queries/checkInput.php");
require_once("../../queries/picture.php");
if (empty($_POST["title"]) or
empty($_POST["content"]) or
@@ -17,7 +18,6 @@ if (empty($_POST["group"])) {
// User Post
makePost(
$_SESSION["userID"],
null,
test_input($_POST["title"]),
test_input($_POST["content"])
);
@@ -32,23 +32,8 @@ if (empty($_POST["group"])) {
makePost(
$_SESSION["userID"],
$_POST["group"],
test_input($_POST["title"]),
test_input($_POST["content"])
test_input($_POST["content"]),
$_POST["group"]
);
}
//if (empty($_POST['newpost-title'])) {
//} else {
// makePost($_SESSION['userID'],
// null,
// test_input($_POST['newpost-title']),
// test_input($_POST['newpost-content']));
//}
//
//header("Location: ../profile.php");