mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-01-15 10:05:20 +08:00
更新至v1.87,更新内容在笔记中查看
This commit is contained in:
@@ -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
0
data/template/index.html
Normal file
Reference in New Issue
Block a user