Commit 5a00c2e7 by doszhang

dos

parent fc1349b5
......@@ -20,15 +20,20 @@ class IndexController extends Controller
public function index()
{
session_start();
$_SESSION['joinTime'] = time();
$num = M('num')->where('id=1')->select();
$num = $num[0]['num'];
$this->assign('num',$num);
$_SESSION['joinTime'] = time();
$num = M('num')->where('id=1')->select();
$num = $num[0]['num'];
$this->assign('num',$num);
$this->display();
}
public function addNum(){
if(time() > 1584633600)
{
header("HTTP/1.0 404 Not Found");
exit;
}
$referer = $_SERVER['HTTP_REFERER'];
$refererInfo = parse_url( $referer );
if( $refererInfo['host'] != $_SERVER['HTTP_HOST'] )
......
......@@ -89,7 +89,7 @@ preloadimages(preloadImageList, function () {
initPage();
$('.loading-page').hide();
$('.page1').show();
if (timestamp > 1584633600) {
if (timestamp > 1584720000) {
$('.end-page').show();
}
clearInterval(musicTime);
......@@ -99,7 +99,7 @@ preloadimages(preloadImageList, function () {
initPage();
$('.loading-page').hide();
$('.page1').show();
if (timestamp > 1584633600) {
if (timestamp > 1584720000) {
$('.end-page').show();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment