<div id="homemainbox" style="margin: 50px auto; text-align: center; width: 100%;">
<h2 style="font-size: 30px; color:#F0F0F0;"><?php echo $config->name; ?></h2>
<?php if(empty($userobj)){ ?>
<p style="margin-top: 30px;"><a class="layui-btn" href="<?php echo Yii::$app->params["login_url"]; ?>">登录</a>
<?php if($config->isregist==1){ ?>
<a class="layui-btn layui-btn-primary" href="<?php echo Yii::$app->params["regist_url"]; ?>">注册</a>
<?php } ?></p>
<?php } ?>
</div>

<script src="/public/modules/control/site/index.js"></script>
<script src="/public/js/current-device.min.js"></script>
<script src="/public/js/check-device.js"></script>