Changed friendship buttons. We now use AJAX, changed button style and added FA icons.

This commit is contained in:
K. Nobel
2017-01-25 15:06:37 +01:00
parent 1402a3ea07
commit 9ff256429d
7 changed files with 124 additions and 24 deletions

View File

@@ -0,0 +1,18 @@
<?php
session_start();
require_once ("../../queries/connect.php");
require_once ("../../queries/friendship.php");
if(empty($_POST["usr"])) {
header('HTTP/1.1 500 Non enough arguments');
}
$friendship_status = getFriendshipStatus($_POST["usr"]);
if($friendship_status == -2) {
header('HTTP/1.1 500 Query failed');
}
echo $friendship_status;