Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions controller/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,20 @@ public function fetchinfo($type, $fingerprint)

$yaml = "Player:\n";
$yaml .= "\tFingerprint: " . $data['fingerprint'] . "\n";
$yaml .= "\tPublicKey: " . base64_encode($data['public_key']) . "\n";
$yaml .= "\tKeyRevoked: " . ($data['revoked'] ? 'true' : 'false') . "\n";
$yaml .= "\tProfileID: " . $data['user_id'] . "\n";
$yaml .= "\tProfileName: " . $data['username'] . "\n";
$yaml .= "\tProfileRank: Registered User\n";
$yaml .= "\tAvatar:\n";
$yaml .= "\tPublicKey: " . base64_encode($data['public_key']) . "\n";
$yaml .= "\tKeyRevoked: " . ($data['revoked'] ? 'true' : 'false') . "\n";
$yaml .= "\tProfileID: " . $data['user_id'] . "\n";
$yaml .= "\tProfileName: " . $data['username'] . "\n";
$yaml .= "\tProfileRank: Registered User\n";
$yaml .= "\tJoined: " . gmdate("Y-m-d H:i:s", $data['user_regdate']) . "\n";
$yaml .= "\tAvatar:\n";
if ($avatar_data = $this->core->get_avatar_data($data))
{
$yaml .= "\t\tSrc: " . $avatar_data['src'] . "\n";
$yaml .= "\t\tWidth: " . $avatar_data['width'] . "\n";
$yaml .= "\t\tHeight: " . $avatar_data['height'] . "\n";
}

$yaml .= "\tBadges:\n";
if ($badges)
{
Expand Down
2 changes: 1 addition & 1 deletion core/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct()
public function get_info_sql($fingerprint)
{
$sql_array = array(
'SELECT' => 'pubkey.item_id, pubkey.user_id, pubkey.public_key, pubkey.fingerprint, pubkey.revoked, user.username, user.user_avatar, user.user_avatar_type, user.user_avatar_width, user.user_avatar_height',
'SELECT' => 'pubkey.item_id, pubkey.user_id, pubkey.public_key, pubkey.fingerprint, pubkey.revoked, user.username, user.user_regdate, user.user_avatar, user.user_avatar_type, user.user_avatar_width, user.user_avatar_height',

'FROM' => array(
USERS_TABLE => 'user',
Expand Down