18 lines
311 B
PHP
18 lines
311 B
PHP
<?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}"); |