ZY/P/QFBJ.php

19 lines
354 B
PHP
Raw Permalink Normal View History

2023-02-22 00:38:54 +08:00
<?php
function read(...$filelist) {
$list = [];
foreach ($filelist as $file) {
$handle = fopen($file, 'r');
while (($line = fgets($handle)) !== false) {
array_push($list, trim($line));
}
fclose($handle);
}
return $list;
}
2023-02-22 00:40:30 +08:00
$list = read('https://jsd.cdn.zzko.cn/gh/QFBJ/ZY@main/P/QFBJ.txt');
2023-02-22 00:38:54 +08:00
$url = $list[array_rand($list)];
2023-02-22 00:40:30 +08:00
header("Location: {$url}");