Exemple #1
0
}
if (isset($_POST["removeFriend"])) {
    $friends = new Friends();
    $result = $friends->removeFriend();
    echo $result;
}
if (isset($_POST["isFriend"])) {
    $friends = new Friends();
    $result = $friends->isFriend();
    echo $result;
}
if (isset($_POST["editFriend"])) {
    $friends = new Business();
    $result = $friends->editFriend();
    echo $result;
}
if (isset($_POST["getFeed"])) {
    $friends = new Friends();
    $result = $friends->getFeed();
    echo $result;
}
if (isset($_POST["createPost"]) && isset($_POST["destinationID"])) {
    $friends = new Friends();
    $result = $friends->createPost();
    echo $result;
}
if (isset($_POST["deletePost"])) {
    $friends = new Friends();
    $result = $friends->deletePost();
    echo $result;
}