Commit 5a00c2e7 by doszhang

dos

parent fc1349b5
...@@ -20,15 +20,20 @@ class IndexController extends Controller ...@@ -20,15 +20,20 @@ class IndexController extends Controller
public function index() public function index()
{ {
session_start(); session_start();
$_SESSION['joinTime'] = time(); $_SESSION['joinTime'] = time();
$num = M('num')->where('id=1')->select(); $num = M('num')->where('id=1')->select();
$num = $num[0]['num']; $num = $num[0]['num'];
$this->assign('num',$num); $this->assign('num',$num);
$this->display(); $this->display();
} }
public function addNum(){ public function addNum(){
if(time() > 1584633600)
{
header("HTTP/1.0 404 Not Found");
exit;
}
$referer = $_SERVER['HTTP_REFERER']; $referer = $_SERVER['HTTP_REFERER'];
$refererInfo = parse_url( $referer ); $refererInfo = parse_url( $referer );
if( $refererInfo['host'] != $_SERVER['HTTP_HOST'] ) if( $refererInfo['host'] != $_SERVER['HTTP_HOST'] )
......
...@@ -89,7 +89,7 @@ preloadimages(preloadImageList, function () { ...@@ -89,7 +89,7 @@ preloadimages(preloadImageList, function () {
initPage(); initPage();
$('.loading-page').hide(); $('.loading-page').hide();
$('.page1').show(); $('.page1').show();
if (timestamp > 1584633600) { if (timestamp > 1584720000) {
$('.end-page').show(); $('.end-page').show();
} }
clearInterval(musicTime); clearInterval(musicTime);
...@@ -99,7 +99,7 @@ preloadimages(preloadImageList, function () { ...@@ -99,7 +99,7 @@ preloadimages(preloadImageList, function () {
initPage(); initPage();
$('.loading-page').hide(); $('.loading-page').hide();
$('.page1').show(); $('.page1').show();
if (timestamp > 1584633600) { if (timestamp > 1584720000) {
$('.end-page').show(); $('.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