Merge branch 'kevin-prototype' into 'master'
FIXED VISIBILITY ON PROFILE See merge request !183
This commit was merged in pull request #187.
This commit is contained in:
@@ -14,12 +14,7 @@
|
||||
include_once("../queries/group_page.php");
|
||||
|
||||
$group = selectGroupByName($_GET["groupname"]);
|
||||
$members = selectGroupMembers(2);
|
||||
|
||||
?>
|
||||
<script>alert("<?= $members[0] ?>");</script>
|
||||
<script>alert("<?= $members[1] ?>");</script>
|
||||
<?php
|
||||
$members = selectGroupMembers($group["groupID"]);
|
||||
|
||||
/*
|
||||
* This view adds the main layout over the screen.
|
||||
|
||||
@@ -21,13 +21,19 @@ include_once("../queries/calcAge.php");
|
||||
|
||||
if(empty($_GET["username"])) {
|
||||
$userID = $_SESSION["userID"];
|
||||
$showProfile = True;
|
||||
} else {
|
||||
$userID = getUserID($_GET["username"]);
|
||||
$showProfile = False;
|
||||
}
|
||||
|
||||
$user = selectUser($_SESSION["userID"], $userID);
|
||||
$profile_friends = selectAllFriends($userID);
|
||||
$profile_groups = selectAllUserGroups($userID);
|
||||
$showProfile = $showProfile || $user["showProfile"] || ($user["status"] == 'confirmed');
|
||||
echo " friendship status: " . $user["status"];
|
||||
echo " showprofile: $showProfile";
|
||||
echo " userID: " . $user["userID"];
|
||||
|
||||
|
||||
if ($userID == $_SESSION["userID"]) {
|
||||
|
||||
Reference in New Issue
Block a user