ZY/P/QFBJ.php

18 lines
311 B
PHP
Raw 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;
}
$list = read('QFBJ.txt');
$url = $list[array_rand($list)];
header("Location: {$url}");