2024-01-29 18:21:14 +08:00
|
|
|
|
<!--{eval updatesession();}-->
|
|
|
|
|
|
<!--{if debuginfo()}-->
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
try{
|
|
|
|
|
|
if(console && console.log){
|
|
|
|
|
|
console.log('Processed in $_G[debuginfo][time] second(s), $_G[debuginfo][queries] queries <!--{if $_G[gzipcompress]}-->, Gzip On<!--{/if}--><!--{if C::memory()->type}-->, <!--{echo ucwords(C::memory()->type)}--> On<!--{/if}-->.');
|
|
|
|
|
|
}
|
|
|
|
|
|
}catch(e){}
|
|
|
|
|
|
</script>
|
2024-07-21 18:38:53 +08:00
|
|
|
|
<!--{/if}-->
|
2024-01-29 18:21:14 +08:00
|
|
|
|
<!--{if !$_G['setting']['bbclosed']}-->
|
|
|
|
|
|
<!--{if $_G['setting']['gonggao']}-->
|
|
|
|
|
|
<!--{if !isset($_G['cookie']['gongguo'])}-->
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
$(function(){
|
|
|
|
|
|
showmessage($_G[setting][gonggao], 'success', 0, 1, 'right-bottom');
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<!--{/if}-->
|
|
|
|
|
|
<!--{/if}-->
|
|
|
|
|
|
<!--{if !isset($_G['cookie']['sendmail'])}-->
|
|
|
|
|
|
<script type="text/javascript" src="misc.php?mod=sendmail&rand=$_G[timestamp]"></script>
|
|
|
|
|
|
<!--{/if}-->
|
|
|
|
|
|
<script type="text/javascript" src="misc.php?mod=sendwx&rand=$_G[timestamp]"></script>
|
|
|
|
|
|
<!--{/if}-->
|
|
|
|
|
|
<!--{if $_G[uid] && $_G['adminid'] == 1}-->
|
|
|
|
|
|
<!--{if !isset($_G['cookie']['checkupgrade'])}-->
|
|
|
|
|
|
<script type="text/javascript">jQuery.getScript('misc.php?mod=upgrade&action=checkupgrade&rand=$_G[timestamp]');</script>
|
|
|
|
|
|
<!--{/if}-->
|
|
|
|
|
|
<!--{if !isset($_G['cookie']['checkappupgrade'])}-->
|
|
|
|
|
|
<script type="text/javascript">jQuery.getScript('misc.php?mod=upgrade&action=checkappupgrade&rand=$_G[timestamp]');</script>
|
|
|
|
|
|
<!--{/if}-->
|
|
|
|
|
|
<!--{if !isset($_G['cookie']['upgradenotice'] )}-->
|
|
|
|
|
|
<div id="systemNotice" class="systemNotice" style="border-radius: var(--radius);position: fixed;right:10px;bottom:10px;max-width:50%;box-shadow:0px 5px 10px RGBA(0,0,0,0.3);z-index:999999"></div>
|
|
|
|
|
|
<!--{/if}-->
|
|
|
|
|
|
<!--{/if}-->
|
|
|
|
|
|
<!--{if $_G['setting']['statcode']}-->
|
|
|
|
|
|
$_G['setting']['statcode']
|
|
|
|
|
|
<!--{/if}-->
|
2024-07-25 17:14:54 +08:00
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
// 全局错误处理
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
// 设置jQuery全局的Ajax错误处理
|
|
|
|
|
|
$.ajaxSetup({
|
|
|
|
|
|
error: function(xhr, textStatus, errorThrown) {
|
|
|
|
|
|
var errorMsg = "Ajax Error: " + textStatus + ", " + errorThrown;
|
|
|
|
|
|
showmessage(errorMsg, 'error', 3000, 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
2024-07-26 11:43:40 +08:00
|
|
|
|
|
|
|
|
|
|
<!--{if $_G['setting']['addEventListener']}-->
|
2024-07-25 17:14:54 +08:00
|
|
|
|
window.addEventListener('error', function(event) {
|
|
|
|
|
|
handleErrors(event);
|
|
|
|
|
|
}, true);
|
2024-07-26 11:43:40 +08:00
|
|
|
|
<!--{/if}-->
|
2024-07-25 17:14:54 +08:00
|
|
|
|
});
|
2024-07-26 11:43:40 +08:00
|
|
|
|
<!--{if $_G['setting']['addEventListener']}-->
|
2024-07-25 17:14:54 +08:00
|
|
|
|
function handleErrors(event) {
|
|
|
|
|
|
try {
|
|
|
|
|
|
// 检查是否存在错误对象
|
|
|
|
|
|
if (event.error && event.error.stack) {
|
|
|
|
|
|
const stack = event.error.stack;
|
|
|
|
|
|
// 过滤或脱敏stack信息(根据需要实现)
|
|
|
|
|
|
reportError(stack);
|
|
|
|
|
|
showmessage(stack, 'error', 3000, 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
// 对reportError和showmessage的调用进行了异常捕获
|
|
|
|
|
|
console.error("Failed to report or show error:", error);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-07-26 11:43:40 +08:00
|
|
|
|
<!--{/if}-->
|
2024-07-25 17:14:54 +08:00
|
|
|
|
</script>
|
2024-04-25 18:24:23 +08:00
|
|
|
|
<script type="text/javascript" src="static/js/popper.min.js?{VERHASH}"></script>
|
|
|
|
|
|
<script type="text/javascript" src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
|
|
|
|
|
|
<script type="text/javascript" src="static/js/main.min.js?{VERHASH}"></script>
|
|
|
|
|
|
<script type="text/javascript" src="static/js/lyear-loading.js?{VERHASH}"></script>
|
2024-09-06 10:40:19 +08:00
|
|
|
|
<!--{hook footer_tpl}-->
|
2024-01-29 18:21:14 +08:00
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|