Added functionality for add friend buttons.

This commit is contained in:
K. Nobel
2017-01-24 14:36:27 +01:00
parent 449b500636
commit d44ddf2793
6 changed files with 170 additions and 23 deletions

View File

@@ -15,11 +15,14 @@ include("../queries/nicetime.php");
if(empty($_GET["username"])) {
$userID = $_SESSION["userID"];
echo "USERNAME NOT GIVEN";
} else {
$userID = getUserID($_GET["username"]);
}
$user = selectUser($userID);
echo "User ID: $userID";
$user = selectUser($_SESSION["userID"], $userID);
$profile_friends = selectAllFriends($userID);
$profile_groups = selectAllUserGroups($userID);
$posts = selectAllUserPosts($userID);