Files
WebDB/website/public/profile.php

41 lines
856 B
PHP

<!DOCTYPE html>
<html>
<head>
<?php include("../views/head.php"); ?>
<script src="/js/masonry.js"></script>
<style>
@import url("/styles/profile.css");
</style>
</head>
<body>
<?php
include("../queries/user.php");
include("../queries/friendship.php");
include("../queries/nicetime.php");
if(empty($_GET["username"])) {
$userID = $_SESSION["userID"];
} else {
$userID = getUserID($_GET["username"]);
}
$user = selectUser($userID);
$profile_friends = selectAllFriends($userID);
$profile_groups = selectAllUserGroups($userID);
$posts = selectAllUserPosts($userID);
/*
* This view adds the main layout over the screen.
* Header, menu, footer.
*/
include("../views/main.php");
/* Add your view files here. */
include("../views/profile.php");
/* This adds the footer. */
include("../views/footer.php");
?>
</body>
</html>