[PHP] 纯文本查看 复制代码
<?php
include('lang/lang.php');
$times = intval(file_get_contents('times/index.txt'));
if ($times > 0){
$results = $lang[rand(0,1)];
echo $results;
file_put_contents('results/index.txt',$results);
$newtimes = $times-1;
file_put_contents('times/index.txt',$newtimes);
}else{
die('今日的抽奖次数已用完!抽奖结果是:'.file_get_contents('results/index.txt').'快去实现吧~');
}
?>