mirror of
https://github.com/qist/tvbox.git
synced 2025-02-02 10:14:50 +08:00
Update img.php
This commit is contained in:
parent
83667ad962
commit
79c09c08d9
4
img.php
4
img.php
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP随机图显示
|
* PHP随机图显示
|
||||||
*/
|
*/
|
||||||
header('Content-Type: text/html; charset=UTF-8');
|
header('Content-Type: text/html; charset=UTF-8');
|
||||||
$img_array = glob("./img/*.jpg",GLOB_BRACE);
|
$img_array = glob("https://gitcode.net/chuqiuyu/chuqiuyu/-/raw/master/img/*.jpg",GLOB_BRACE);
|
||||||
$img = array_rand($img_array);
|
$img = array_rand($img_array);
|
||||||
header("location:.$img_array[$img]");
|
header("location:.$img_array[$img]");
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user