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