Commit 5d3ddc46 authored by 菁菁's avatar 菁菁

活动时间开关

parent 3f294e84
......@@ -4,10 +4,10 @@ require(__DIR__ . "/../../class/db_sql.php");
require(__DIR__ . "/../../member/class/user.php");
require(__DIR__ . "/../../class/q_functions.php");
$iscas = getcvar('mlcas');
if($iscas){
if ($iscas) {
$link=db_connect();
$empire=new mysqlquery();
$link = db_connect();
$empire = new mysqlquery();
$user = islogin();
$ucid = $user['ucid'];
}
......@@ -15,20 +15,27 @@ if($iscas){
<?php if (!$iscas) { ?>
$(function(){
<!-- $(".books").attr("href", "/e/member/login");-->
<!-- $(".books").attr("href", "/e/member/login");-->
<?php if (time() > 1525104000) { ?>
showRedpack();
$("#loginGits").attr("style", "display:block;");
$("#invite-main").attr("style", "display:block;");
<?php } ?>
$("#loginGits").attr("style", "display:block;");
});
<?php }else { ?>
showRedpack("<?=$ucid?>");
<?php } else { ?>
<?php if (time() > 1525104000) { ?>
showRedpack("<?= $ucid ?>");
$("#invite-main").attr("style", "display:block;");
<?php } ?>
var zhugeCheckRunHandler = false;
function zhugeCheckRun(){
if(!window.zhuge){
zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500);
}else{
clearTimeout(zhugeCheckRunHandler);
window.zhuge.identify("<?=$ucid?>");
}
if(!window.zhuge){
zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500);
}else{
clearTimeout(zhugeCheckRunHandler);
window.zhuge.identify("<?= $ucid ?>");
}
}
zhugeCheckRun();
<?php } ?>
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 to comment