40 lines
812 B
PHP
40 lines
812 B
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<?php include("../views/head.php"); ?>
|
|
<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>
|