define("scripts/user.js", function(a) {
var b = require("scripts/D"),
c = b.tUserDate.replace(/-/g, ""),
d = b.tParseInt((new Date).Format("dd")),
e = [2, 11, 13, 2, 8, 17, 5 - d, 13];
return $.ajax({
url: "user.php",
type: "get",
data: {
type: "g"
},
dataType: "json",
success: function(f) {
f && "yes" == f[0] && (b.tUserIp = f[1], c = f[2], d = b.tParseInt((new Date).Format("dd")), e = [2, 11, 13, 2, 8, 17, 5 - d, 13]), a.click()
},
error: function() {
a.click()
}
}), a.init = function() {
b.tUserLogin && "" != b.tUserName ? (!0 && (b.arrayX = !0), $.widget("custom.fontselectmenu", $.ui.selectmenu, {
_renderItem: function(a, b) {
var c = $("<li>");
return $("<span>", {
style: b.element.attr("data-style"),
text: b.label
}).appendTo(c), c.appendTo(a)
}
}), a.click(), $(b.tLoadingDiv).appendTo(b.b).hide(), $("#moduleHeight").on("change", function() {
"" == $(this).val() && b.june.height(2560)
}), $("#moduleBgcolor").on("change", function() {
"" == $(this).val() && b.june.css("background-color", "#F2F4F8")
}), $("#moduleBgimg").on("change", function() {
var c = $(this).val();
c = c.replace(/"/g, ""), "" == c ? b.june.css("background-image", "none") : checkUrl(c) && b.june.css({
backgroundImage: "url(" + c + ")"
})
}), $("#tSaveUsedSwitchBtn").on("click", function() {
var c = $(this).attr("status") || "open";
"close" == c ? (b.tAutoSaveUsedSwitch = !0, $(this).attr("status", "open"), $("#tSaveUsedSwitchBtn").html("关闭自动保存").css({
backgroundImage: "url(/2.0/images/gouhover.jpg)"
})) : (b.tAutoSaveUsedSwitch = !1, $(this).attr("status", "close"), $("#tSaveUsedSwitchBtn").html("开启自动保存").css({
backgroundImage: "url(/2.0/images/gou.jpg)"
}))
}), b.toClearInit()) : (!0 && (b.arrayX = !1), b.tUserLogin && "" != b.tUserName || a.userMessage("用户使用!<a target=*_blank* href=*void(0)* onclick=\"toMLogin()\" style=*color:#007799;*>点击此处登录</a>。"))
}, a.userMessage = function(a) {
!0 && (b.arrayX = !1), a ? b.tMessage(a, "login") : b.tMessage("<div style=*margin:0 auto;text-align:center;*>本工具仅支<a class=*june-preview* href=*###* target=*_blank* style=*color:#007799;*>点击此处</a>可找到我!<br /><a target=*_blank* href=*###* style=*color:#007799;*>联系我们</a>可开通使用权限。</div>")
}, a.getER = function(a, c) {
var d = b.tParseInt(a).toString(2);
return d *= e[c]
}, a.keyArray = function() {
var d, e, b = "";
for (d = 0; d < c.length; d++) e = c.charAt(d), b += a.getER(e, d);
return b
}, a.create = function() {
var b = a.keyArray();
$.ajax({
url: "user.php",
type: "get",
data: {
type: "k"
},
success: function(c) {
c && "" != c ? ("0" == c || c != b) && a.userMessage() : a.userMessage()
}
})
}, a.click = function() {
$.ajax({
url: "user.php",
type: "get",
data: {
type: "c"
},
success: function(c) {
"yes" == c ? b.tUserLogin && "" != b.tUserName || a.create() : a.userMessage()
}
})
}, a
})
user.php?type=c 返回yes 可以通过
user.php?type=k
20013200817-101313 今天的
20013200817-91300 昨天的
这样可以通过, 这个验证是啥意思求解答
那个5-d 就是5-当前dd日期
就前面的 00 最后2位的13和 00不知道啥意思 新手求解答
var b = require("scripts/D"),
c = b.tUserDate.replace(/-/g, ""),
d = b.tParseInt((new Date).Format("dd")),
e = [2, 11, 13, 2, 8, 17, 5 - d, 13];
return $.ajax({
url: "user.php",
type: "get",
data: {
type: "g"
},
dataType: "json",
success: function(f) {
f && "yes" == f[0] && (b.tUserIp = f[1], c = f[2], d = b.tParseInt((new Date).Format("dd")), e = [2, 11, 13, 2, 8, 17, 5 - d, 13]), a.click()
},
error: function() {
a.click()
}
}), a.init = function() {
b.tUserLogin && "" != b.tUserName ? (!0 && (b.arrayX = !0), $.widget("custom.fontselectmenu", $.ui.selectmenu, {
_renderItem: function(a, b) {
var c = $("<li>");
return $("<span>", {
style: b.element.attr("data-style"),
text: b.label
}).appendTo(c), c.appendTo(a)
}
}), a.click(), $(b.tLoadingDiv).appendTo(b.b).hide(), $("#moduleHeight").on("change", function() {
"" == $(this).val() && b.june.height(2560)
}), $("#moduleBgcolor").on("change", function() {
"" == $(this).val() && b.june.css("background-color", "#F2F4F8")
}), $("#moduleBgimg").on("change", function() {
var c = $(this).val();
c = c.replace(/"/g, ""), "" == c ? b.june.css("background-image", "none") : checkUrl(c) && b.june.css({
backgroundImage: "url(" + c + ")"
})
}), $("#tSaveUsedSwitchBtn").on("click", function() {
var c = $(this).attr("status") || "open";
"close" == c ? (b.tAutoSaveUsedSwitch = !0, $(this).attr("status", "open"), $("#tSaveUsedSwitchBtn").html("关闭自动保存").css({
backgroundImage: "url(/2.0/images/gouhover.jpg)"
})) : (b.tAutoSaveUsedSwitch = !1, $(this).attr("status", "close"), $("#tSaveUsedSwitchBtn").html("开启自动保存").css({
backgroundImage: "url(/2.0/images/gou.jpg)"
}))
}), b.toClearInit()) : (!0 && (b.arrayX = !1), b.tUserLogin && "" != b.tUserName || a.userMessage("用户使用!<a target=*_blank* href=*void(0)* onclick=\"toMLogin()\" style=*color:#007799;*>点击此处登录</a>。"))
}, a.userMessage = function(a) {
!0 && (b.arrayX = !1), a ? b.tMessage(a, "login") : b.tMessage("<div style=*margin:0 auto;text-align:center;*>本工具仅支<a class=*june-preview* href=*###* target=*_blank* style=*color:#007799;*>点击此处</a>可找到我!<br /><a target=*_blank* href=*###* style=*color:#007799;*>联系我们</a>可开通使用权限。</div>")
}, a.getER = function(a, c) {
var d = b.tParseInt(a).toString(2);
return d *= e[c]
}, a.keyArray = function() {
var d, e, b = "";
for (d = 0; d < c.length; d++) e = c.charAt(d), b += a.getER(e, d);
return b
}, a.create = function() {
var b = a.keyArray();
$.ajax({
url: "user.php",
type: "get",
data: {
type: "k"
},
success: function(c) {
c && "" != c ? ("0" == c || c != b) && a.userMessage() : a.userMessage()
}
})
}, a.click = function() {
$.ajax({
url: "user.php",
type: "get",
data: {
type: "c"
},
success: function(c) {
"yes" == c ? b.tUserLogin && "" != b.tUserName || a.create() : a.userMessage()
}
})
}, a
})
user.php?type=c 返回yes 可以通过
user.php?type=k
20013200817-101313 今天的
20013200817-91300 昨天的
这样可以通过, 这个验证是啥意思求解答
那个5-d 就是5-当前dd日期
就前面的 00 最后2位的13和 00不知道啥意思 新手求解答
