You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-13 11:43:58 +08:00
* 2023-01-30 v2.7.0 dev
- 增加粘贴上传状态 - 增加前端显示缩略图链接 - 增加图片详细信息登录后显示更多信息 - 修复图片详细信息中随机图片排版混乱
This commit is contained in:
10
application/randPic.php
Normal file
10
application/randPic.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* 2023-01-29
|
||||
* 随机图片显示
|
||||
*/
|
||||
|
||||
$img_array = glob('../public/images/*.{gif,jpg,png,jpeg,webp,bmp}', GLOB_BRACE);
|
||||
if(count($img_array) == 0) die('没找到图片文件。请先上传一些图片到 '.dirname(__FILE__).'/images/ 文件夹');
|
||||
header('Content-Type: image/png');
|
||||
echo(file_get_contents($img_array[array_rand($img_array)]));
|
||||
Reference in New Issue
Block a user