更新至v1.87,更新内容在笔记中查看

This commit is contained in:
小胡
2024-01-11 13:17:46 +08:00
Unverified
parent 9101045a31
commit b5b1f8d418
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ $uid = isset($_GET['uid']) ? $_GET['uid'] : 0;
$size = isset($_GET['size']) ? $_GET['size'] : '';
$random = isset($_GET['random']) ? $_GET['random'] : '';
$type = isset($_GET['type']) ? $_GET['type'] : '';
$check = $_GET['check_file_exists'] ?? '';
$check = isset($_GET['check_file_exists']) ? $_GET['check_file_exists'] : '';
$avatar = './data/avatar/'.get_avatar($uid, $size, $type);
if(file_exists(dirname(__FILE__).'/'.$avatar)) {
@@ -41,7 +41,7 @@ if(empty($random)) {
header('Location: '.SITEURL.'/'.$avatar_url);
exit;
function get_avatar($uid, $size = 'middle', $type = ''): string
function get_avatar($uid, $size = 'middle', $type = '')
{
$size = in_array($size, array('big', 'middle', 'small')) ? $size : 'middle';
$uid = abs(intval($uid));

0
data/template/index.html Normal file
View File