Commit 23622e4d authored by 菁菁's avatar 菁菁

活动时间开关

parent 1a7b565a
......@@ -4,36 +4,31 @@ 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'];
}
?>
<?php if (!$iscas) { ?>
$(function(){
<!-- $(".books").attr("href", "/e/member/login");-->
<?php if (time() > 1525104000) { ?>
<!-- $(".books").attr("href", "/e/member/login");-->
showRedpack();
$("#invite-main").attr("style", "display:block;");
<?php } ?>
$("#loginGits").attr("style", "display:block;");
$("#loginGits").attr("style", "display:block;");
});
<?php } else { ?>
<?php if (time() > 1525104000) { ?>
showRedpack("<?= $ucid ?>");
$("#invite-main").attr("style", "display:block;");
<?php } ?>
<?php }else { ?>
showRedpack("<?=$ucid?>");
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