true, "PM" => true]; $buttons = [ "Friend" => [ "color" => "dark", "clickable" => true, "text" => "Send Friend Request", "data-type" => "sendRequest" ] ]; if(isset($_GET['ID']) || isset($_GET['id'])) { $userinfo = isset($_GET['ID']) ? users::getUserInfoFromUid($_GET['ID']) : users::getUserInfoFromUid($_GET['id']); if(!$userinfo){ pageBuilder::errorCode(404); } if(users::getUserModeration($userinfo->id)){ pageBuilder::errorCode(404); } $selfProfile = false; $pronouns = ["your" => Jetblox"'s", "you" => $userinfo->username." doesn't", "have_not" => Jetblox" hasn't"]; } else { users::requireLogin(); $userinfo = users::getUserInfoFromUid(SESSION["userId"]); $selfProfile = true; $pronouns = ["your" => "Your", "you" => "You don't", "have_not" => "You haven't"]; } $userid = $userinfo->id; $hasFriends = users::getFriendCount($userid); //markdown $markdown = new Parsedown(); $markdown->setMarkupEscaped(true); $markdown->setBreaksEnabled(true); $markdown->setSafeMode(true); $markdown->setUrlsLinked(true); if(SESSION && $userid == SESSION["userId"] || !SESSION){ $buttons["Friend"]["clickable"] = false; $can["PM"] = false; } if(SESSION) { if($userid == SESSION["userId"]){ $friendship = false; } else { $friendship = users::checkIfFriends(SESSION["userId"], $userid); if($friendship) { if($friendship->status == 0 && $friendship->requesterId == SESSION["userId"] && $friendship->receiverId = $userid){ $buttons["Friend"]["clickable"] = false; $buttons["Friend"]["text"] = "Friend Request Pending"; } elseif($friendship->status == 1){ $buttons["Friend"]["text"] = "Unfriend"; $buttons["Friend"]["color"] = "danger"; $buttons["Friend"]["data-type"] = "revokeRequest"; } } } } pageBuilder::$pageConfig["title"] = $userinfo->username; pageBuilder::$pageConfig["og:description"] = $userinfo->blurb; pageBuilder::$pageConfig["og:image"] = "/thumbnail/user?ID=".$userinfo->id; pageBuilder::buildHeader(); ?>

Active Places


have any active places.

Friends