mirror of
https://github.com/LyLme/lylme_spage.git
synced 2024-11-17 22:38:03 +08:00
更新 v1.8.0版本
This commit is contained in:
parent
844998c3e0
commit
2e14658639
@ -215,12 +215,12 @@ function yan()
|
|||||||
//随机一言文件路径
|
//随机一言文件路径
|
||||||
if (file_exists($filename)) {
|
if (file_exists($filename)) {
|
||||||
$data = explode(PHP_EOL, file_get_contents($filename));
|
$data = explode(PHP_EOL, file_get_contents($filename));
|
||||||
$result = str_replace(array(
|
// $result = str_replace(array(
|
||||||
"\r",
|
// "\r",
|
||||||
"\n",
|
// "\n",
|
||||||
"\r\n"
|
// "\r\n"
|
||||||
), '', $data[array_rand($data) ]);
|
// ), '', $data[array_rand($data)]);
|
||||||
return $result;
|
return $data[array_rand($data)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function rearr($data, $arr)
|
function rearr($data, $arr)
|
||||||
|
Loading…
Reference in New Issue
Block a user