This repository has been archived on 2021-07-02. You can view files and clone it, but cannot push or open issues or pull requests.
chie/public/user.php
2020-07-06 17:09:56 +00:00

19 lines
534 B
PHP

<?php
require_once '../startup.php';
include_once '_user.php';
$userId = isset($_GET['id']) && is_string($_GET['id']) && ctype_digit($_GET['id']) ? (int)$_GET['id'] : 0;
$userInfo = user_info($userId);
if(empty($userInfo))
die_ex('User not found.', 404);
$title = 'Profile of ' . $userInfo['user_login'];
include FMF_LAYOUT . '/header.php';
echo "<h3>{$userInfo['user_login']}</h3>";
echo '<img src="' . user_gravatar($userInfo['user_id']) . '" alt="' . $userInfo['user_login'] . '"/>';
include FMF_LAYOUT . '/footer.php';