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

活动时间开关

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