宝塔面板强制登录跳过
相邻栏目数: 个
当前栏目内容数: 篇
当前文章浏览总次数: 次
最后一次浏览时间:
当前文章发布时间:
宝塔面板强制登录跳过
宝塔面板强制登录跳过
windows面板路径:BTPanel\static\js\index.js
linux 路径:/www/server/panel/BTPanel/static/js/index.js
if (bind_user == 10) {//本来是1的将之修改为其他数字即可 layer.open({ type: 1, title: '绑定宝塔官网账号', area: ['420px', '395px'], closeBtn: 2, shadeClose: false, content: '<div class="libLogin pd20" ><div class="bt-form text-center"><div class="line mb15"><p>恭喜您,宝塔面板已经安装成功。 </p><h3 class="c2 f16 text-center mtb20">绑定宝塔官网账号,即可开始使用<a href="javascript:;" class="bind_ps bt-ico-ask">?</a></h3></div><div class="line"><input class="bt-input-text" name="username2" type="text" placeholder="手机" id="p1"></div><div class="line"><input autocomplete="new-password" class="bt-input-text" type="password" name="password2" placeholder="密码" id="p2"></div><div class="line" style="margin-top: 15px;"><input class="login-button" value="登录" type="button" ></div><p class="text-right"><a class="btlink" href="https://www.bt.cn/register.html" target="_blank">未有账号,免费注册</a></p></div></div>', success: function () { $('.login-button').click(function () { p1 = $("#p1").val(); p2 = $("#p2").val(); var loadT = bt.load(lan.config.token_get); bt.send('GetToken', 'ssl/GetToken', "username=" + p1 + "&password=" + p2, function (rdata) { loadT.close(); bt.msg(rdata); if (rdata.status) { window.location.reload(); } }) }); $('.libLogin input[type=password]').keyup(function (e) { if (e.keyCode == 13) { $('.login-button').click(); } }); var time = ''; $('.bind_ps').hover(function () { var _that = $(this); time = setTimeout(function () { layer.tips('宝塔面板许多功能都依赖于官网,绑定仅限于为您提供更好的面板服务体验,不涉及您服务器任何敏感信息,请放心使用。', _that, { tips: [1, '#20a53a'], time: 0 }) }, 500) }, function () { clearTimeout(time) layer.closeAll('tips'); }) }, cancel: function () { layer.alert('<p>为了您能更好的体验面板功能,请先绑定宝塔账号.</p>', {btn:'我已了解', title:'绑定账号'}, function(index){ layer.close(index); }); return false; } }); } else { bt.pub.check_install(function (rdata) { if (rdata === false) bt.index.rec_install(); }) }