|
@@ -14,22 +14,10 @@ |
|
|
<script src="../static/js/dedeajax2.js"></script> |
|
|
<script src="../static/js/dedeajax2.js"></script> |
|
|
<script src="js/indexbody.js"></script> |
|
|
<script src="js/indexbody.js"></script> |
|
|
<script src="js/main.js"></script> |
|
|
<script src="js/main.js"></script> |
|
|
<script> |
|
|
|
|
|
function showMore() { |
|
|
|
|
|
$("#allInfo").toggle(); |
|
|
|
|
|
$("#allInfoTD").toggle(); |
|
|
|
|
|
} |
|
|
|
|
|
$(function () { |
|
|
|
|
|
$.get("index_testenv.php", function (data) { |
|
|
|
|
|
if (data !== '') { |
|
|
|
|
|
$("#__testEvn").html(data); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
</script> |
|
|
|
|
|
<style> |
|
|
<style> |
|
|
.row{display:flex;flex-wrap:wrap} |
|
|
.row{display:flex;flex-wrap:wrap} |
|
|
.row>[class*='col-']{display:flex;flex-direction:column} |
|
|
.row>[class*='col-']{display:flex;flex-direction:column} |
|
|
|
|
|
.table{margin-bottom:0} |
|
|
.btn+.btn{margin-left:10px} |
|
|
.btn+.btn{margin-left:10px} |
|
|
</style> |
|
|
</style> |
|
|
</head> |
|
|
</head> |
|
@@ -55,7 +43,7 @@ $(function () { |
|
|
<div class="col-md-6 mt-3"> |
|
|
<div class="col-md-6 mt-3"> |
|
|
<div class="card"> |
|
|
<div class="card"> |
|
|
<div class="card-header">版本授权</div> |
|
|
<div class="card-header">版本授权</div> |
|
|
<div class="card-body" id="_systeminfo">正在载入中</div> |
|
|
|
|
|
|
|
|
<div class="card-body" id="_systeminfo">正在载入</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-md-6 mt-3"> |
|
|
<div class="col-md-6 mt-3"> |
|
@@ -79,136 +67,75 @@ $(function () { |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="col-md-6 mt-3"> |
|
|
|
|
|
<div class="card"> |
|
|
|
|
|
<div class="card-header">信息统计</div> |
|
|
|
|
|
<div class="card-body"> |
|
|
|
|
|
<dd id='listCount'>正在载入</dd> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
<div class="col-md-6 mt-3"> |
|
|
<div class="col-md-6 mt-3"> |
|
|
<div class="card"> |
|
|
<div class="card"> |
|
|
<div class="card-header">基本信息</div> |
|
|
<div class="card-header">基本信息</div> |
|
|
<div class="card-body"> |
|
|
<div class="card-body"> |
|
|
<table width="98%" class="table table-borderless"> |
|
|
<table width="98%" class="table table-borderless"> |
|
|
<tr> |
|
|
<tr> |
|
|
<td width="130" class="nline"> |
|
|
|
|
|
您的级别:<?php |
|
|
|
|
|
if($cuserLogin->getUserType()==10) { |
|
|
|
|
|
echo "总管理员"; |
|
|
|
|
|
} else if($cuserLogin->getUserType()==5) { |
|
|
|
|
|
echo "频道总编"; |
|
|
|
|
|
} else { |
|
|
|
|
|
echo "信息采集员或其它管理员"; |
|
|
|
|
|
} |
|
|
|
|
|
?> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td class="nline"><a href="javascript:showMore()" class="btn btn-success btn-sm">查看更多</a></td> |
|
|
|
|
|
|
|
|
<td width="50%">操作系统:<?php echo PHP_OS; ?></td> |
|
|
|
|
|
<td>Web服务器:<?php echo $_SERVER['SERVER_SOFTWARE']; ?></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td>网站域名:<a href="<?php echo $cfg_basehost; ?>" target="_blank"><?php echo $_SERVER['SERVER_NAME']; ?></a></td> |
|
|
|
|
|
<td>网站地址:<?php echo gethostbyname($_SERVER['SERVER_NAME']); ?></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td>您的级别:<?php if($cuserLogin->getUserType()==10) {echo "总管理员";} else if($cuserLogin->getUserType()==5) {echo "频道总编";} else {echo "信息采集员或其它管理员";}?></td> |
|
|
|
|
|
<td>版本信息:<?php echo $cfg_soft_enname; ?></td> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
<tr> |
|
|
<td colspan="2" id="allInfoTD" class="nline" style="display:none"> |
|
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="allInfo" style="display:none"> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:right" rowspan="5">PHP环境摘要:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left"> |
|
|
|
|
|
<span>PHP版本:<?php echo @phpversion(); ?></span> |
|
|
|
|
|
<span style="margin-left:10px">GD版本:<?php echo @gdversion(); ?></span> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">是否安全模式:<?php echo ($isSafeMode ? 'On' : 'Off')?> |
|
|
|
|
|
<?php |
|
|
|
|
|
if($isSafeMode) { |
|
|
|
|
|
echo "由于您的系统以安全模式运行,为了确保程序兼容性,第一次进入本系统时请修改 <a href='sys_info.php' class='btn btn-success btn-smm'>修改系统参数</a> 里的FTP选项,并选择用FTP形式创建目录"; |
|
|
|
|
|
} |
|
|
|
|
|
?> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left"> |
|
|
|
|
|
<span>Register_Globals:<?php echo ini_get("register_globals") ? 'On' : 'Off'?></span> |
|
|
|
|
|
<span style="margin-left:10px">Magic_Quotes_Gpc:<?php echo ini_get("magic_quotes_gpc") ? 'On' : 'Off'?></span> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">支持上传的最大文件:<?php echo ini_get("post_max_size")?></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">是否允许打开远程连接:<?php echo ini_get("allow_url_fopen") ? '支持' : '不支持'; ?></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:right">其它必须函数检测:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left"> |
|
|
|
|
|
<?php |
|
|
|
|
|
$needfunc = array('dir','phpinfo'); |
|
|
|
|
|
$n = 0; |
|
|
|
|
|
foreach($needfunc as $k) { |
|
|
|
|
|
if(!function_exists($k)) { |
|
|
|
|
|
echo "<span class='btn btn-danger btn-sm'>{$k} ×</span>"; |
|
|
|
|
|
$n++; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if($n==0) { |
|
|
|
|
|
echo "符合要求"; |
|
|
|
|
|
} else { |
|
|
|
|
|
echo "被禁用的函数可能导致部份功能无法使用"; |
|
|
|
|
|
} |
|
|
|
|
|
?> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:right">软件版本信息:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left"> |
|
|
|
|
|
<span>版本名称:<?php echo $cfg_soft_enname; ?></span> |
|
|
|
|
|
<span style="margin-left:10px">版本号:<?php echo $cfg_version; ?></span> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
</table> |
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
<td>PHP版本:PHP<?php echo @phpversion(); ?></td> |
|
|
|
|
|
<td>GD版本:<?php echo @gdversion(); ?></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td>上传文件:<?php echo ini_get("post_max_size") ?></td> |
|
|
|
|
|
<td>远程连接:<?php echo ini_get("allow_url_fopen") ? '允许':'不允许'; ?></td> |
|
|
</tr> |
|
|
</tr> |
|
|
</table> |
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-md-6 mt-3"> |
|
|
|
|
|
<div class="card"> |
|
|
|
|
|
<div class="card-header">信息统计</div> |
|
|
|
|
|
<div class="card-body"> |
|
|
|
|
|
<dd id='listCount'>正在载入中</dd> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="col-md-6 mt-3"> |
|
|
<div class="col-md-6 mt-3"> |
|
|
<div class="card"> |
|
|
<div class="card"> |
|
|
<div class="card-header">最新文档</div> |
|
|
<div class="card-header">最新文档</div> |
|
|
<div class="card-body"> |
|
|
<div class="card-body"> |
|
|
<?php |
|
|
|
|
|
$query = "SELECT arc.id, arc.arcrank, arc.title, arc.channel, ch.editcon FROM `#@__archives` arc LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel WHERE arc.arcrank<>-2 ORDER BY arc.id DESC LIMIT 0, 5"; |
|
|
|
|
|
$arcArr = array(); |
|
|
|
|
|
$dsql->Execute('m', $query); |
|
|
|
|
|
while($row = $dsql->GetArray('m')) |
|
|
|
|
|
{ |
|
|
|
|
|
$arcArr[] = $row; |
|
|
|
|
|
} |
|
|
|
|
|
?> |
|
|
|
|
|
<table width="100%" class="table table-borderless"> |
|
|
<table width="100%" class="table table-borderless"> |
|
|
<?php |
|
|
|
|
|
if(count($arcArr) > 1) |
|
|
|
|
|
{ |
|
|
|
|
|
foreach($arcArr as $row) |
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
$query = "SELECT arc.id, arc.arcrank, arc.title, arc.typeid, arc.pubdate, arc.channel, ch.editcon, tp.typename FROM `#@__archives` arc LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id WHERE arc.arcrank<>-2 ORDER BY arc.id DESC LIMIT 0,5"; |
|
|
|
|
|
$arcArr = array(); |
|
|
|
|
|
$dsql->Execute('m', $query); |
|
|
|
|
|
while($row = $dsql->GetArray('m')) |
|
|
{ |
|
|
{ |
|
|
if(trim($row['editcon'])=='') { |
|
|
|
|
|
$row['editcon'] = 'archives_edit.php'; |
|
|
|
|
|
|
|
|
$arcArr[] = $row; |
|
|
|
|
|
} |
|
|
|
|
|
?> |
|
|
|
|
|
<?php |
|
|
|
|
|
if(count($arcArr) > 1) |
|
|
|
|
|
{ |
|
|
|
|
|
foreach($arcArr as $row) |
|
|
|
|
|
{ |
|
|
|
|
|
if(trim($row['editcon'])==''){ |
|
|
|
|
|
$row['editcon'] = 'archives_edit.php'; |
|
|
|
|
|
} |
|
|
|
|
|
$rowarcrank = $row['arcrank']==-1? "<span class='btn btn-danger btn-sm' style='margin-left:6px'>未审核</span>":""; |
|
|
|
|
|
$pubdate = GetDateMk($row['pubdate']); |
|
|
|
|
|
echo "<tr><td><a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>{$rowarcrank}</td><td width='90'>{$pubdate}</td></tr>"; |
|
|
} |
|
|
} |
|
|
$linkstr = "<a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>"; |
|
|
|
|
|
if($row['arcrank']==-1) $linkstr .= "<span class='btn btn-danger btn-sm' style='margin-left:10px'>未审核</span>"; |
|
|
|
|
|
|
|
|
} else { |
|
|
?> |
|
|
?> |
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left"><?php echo $linkstr; ?></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
<tr><td class="nline" colspan="2">暂无文档</td></tr> |
|
|
<?php |
|
|
<?php |
|
|
} |
|
|
} |
|
|
} else { |
|
|
|
|
|
?> |
|
|
?> |
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">暂无新增内容</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<?php |
|
|
|
|
|
} |
|
|
|
|
|
?> |
|
|
|
|
|
</table> |
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@@ -216,9 +143,8 @@ $(function () { |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="footer"> |
|
|
<div class="footer"> |
|
|
<!--下面是隐藏的项目--> |
|
|
|
|
|
<div id="loaddiv" style="display:none"> |
|
|
<div id="loaddiv" style="display:none"> |
|
|
<p align="center" style="padding-top:200px"><img src="images/loadinglit.gif">请稍后,正在下载更新文件列表</p> |
|
|
|
|
|
|
|
|
<p align="center"><img src="images/loadinglit.gif">请稍后,正在下载更新文件列表</p> |
|
|
</div> |
|
|
</div> |
|
|
<div id="editTab"> |
|
|
<div id="editTab"> |
|
|
<span id="editTabBody">请稍候,正在载入</span> |
|
|
<span id="editTabBody">请稍候,正在载入</span> |
|
@@ -228,7 +154,7 @@ $(function () { |
|
|
<input type="hidden" name="dopost" value="addnew"> |
|
|
<input type="hidden" name="dopost" value="addnew"> |
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
|
<tr> |
|
|
<tr> |
|
|
<td height="26" colspan="3" background="images/tbg.gif"> |
|
|
|
|
|
|
|
|
<td height="30" colspan="3" background="images/tbg.gif"> |
|
|
<div style="float:left;margin-left:10px">增加快捷操作项</div> |
|
|
<div style="float:left;margin-left:10px">增加快捷操作项</div> |
|
|
<div style="float:right;padding:2px 10px 0 0"> |
|
|
<div style="float:right;padding:2px 10px 0 0"> |
|
|
<a href="javascript:CloseTab('addTab')"><img src="images/close.gif"></a> |
|
|
<a href="javascript:CloseTab('addTab')"><img src="images/close.gif"></a> |
|
@@ -239,12 +165,12 @@ $(function () { |
|
|
<td colspan="2" style="height:10px;border-top:1px solid #8DA659"></td> |
|
|
<td colspan="2" style="height:10px;border-top:1px solid #8DA659"></td> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
<tr> |
|
|
<td width="20%" height="26" align="right">链接标题:</td> |
|
|
|
|
|
<td width="70%"><input name="title" type="text" id="title" class="pubinputs" style="margin-bottom:10px;width:260px"></td> |
|
|
|
|
|
|
|
|
<td width="22%" height="26" align="right">链接标题:</td> |
|
|
|
|
|
<td width="78%"><input name="title" type="text" class="pubinputs" style="margin-bottom:10px;width:260px"></td> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
<tr> |
|
|
<td width="20%" height="26" align="right">链接网址:</td> |
|
|
|
|
|
<td width="70%"><input name="link" type="text" id="link" class="pubinputs" style="width:260px"></td> |
|
|
|
|
|
|
|
|
<td width="22%" height="26" align="right">链接网址:</td> |
|
|
|
|
|
<td width="78%"><input name="link" type="text" class="pubinputs" style="width:260px"></td> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
<tr> |
|
|
<td height="36"></td> |
|
|
<td height="36"></td> |
|
@@ -255,104 +181,113 @@ $(function () { |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<script> |
|
|
<script> |
|
|
var dedebizInfo; |
|
|
|
|
|
function ViewDedeBIZ() { |
|
|
|
|
|
console.log(dedebizInfo); |
|
|
|
|
|
ShowMsg(` |
|
|
|
|
|
<table width="100%" class="table table-borderless"> |
|
|
|
|
|
<tbody> |
|
|
|
|
|
|
|
|
$(function(){ |
|
|
|
|
|
$.get("index_testenv.php", function (data){ |
|
|
|
|
|
if (data !== ''){ |
|
|
|
|
|
$("#__testEvn").html(data); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
</script> |
|
|
|
|
|
<script> |
|
|
|
|
|
var dedebizInfo; |
|
|
|
|
|
function ViewDedeBIZ(){ |
|
|
|
|
|
console.log(dedebizInfo); |
|
|
|
|
|
ShowMsg(` |
|
|
|
|
|
<table width="100%" class="table table-borderless"> |
|
|
|
|
|
<tbody> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">版本号:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">V${dedebizInfo.result.server_version}</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">运行时间:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">${dedebizInfo.result.server_run_time}</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">服务器系统:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">${dedebizInfo.result.server_goos}(${dedebizInfo.result.server_goarch})</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">内存占用:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">${dedebizInfo.result.server_memory_usage}%</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
</tbody> |
|
|
|
|
|
</table> |
|
|
|
|
|
`); |
|
|
|
|
|
} |
|
|
|
|
|
//加载服务信息 |
|
|
|
|
|
function LoadServer(){ |
|
|
|
|
|
$.get("index_body.php?dopost=system_info", function(data){ |
|
|
|
|
|
let rsp = JSON.parse(data); |
|
|
|
|
|
if (rsp.code === 200){ |
|
|
|
|
|
let infoStr = `<table width="100%" class="table table-borderless"><tbody>`; |
|
|
|
|
|
if (typeof rsp.result.domain !== "undefined"){ |
|
|
|
|
|
infoStr += ` |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">授权域名:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">${rsp.result.domain}<a href="<?php echo $cfg_biz_dedebizUrl;?>/auth/?domain=${rsp.result.domain}" class="btn btn-danger btn-sm">查看</a></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
`; |
|
|
|
|
|
} |
|
|
|
|
|
if (typeof rsp.result.title !== "undefined"){ |
|
|
|
|
|
infoStr += ` |
|
|
<tr> |
|
|
<tr> |
|
|
<td class="nline" style="text-align:left">版本号:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">v${dedebizInfo.result.server_version}</td> |
|
|
|
|
|
|
|
|
<td class="nline" style="text-align:left">站点名称:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">${rsp.result.title}</td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
`; |
|
|
|
|
|
} |
|
|
|
|
|
if (typeof rsp.result.stype !== "undefined"){ |
|
|
|
|
|
infoStr += ` |
|
|
<tr> |
|
|
<tr> |
|
|
<td class="nline" style="text-align:left">运行时间:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">${dedebizInfo.result.server_run_time}</td> |
|
|
|
|
|
|
|
|
<td class="nline" style="text-align:left">站点类型:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">${rsp.result.stype}</td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
`; |
|
|
|
|
|
} |
|
|
|
|
|
if (typeof rsp.result.auth_version !== "undefined" && typeof rsp.result.auth_at !== "undefined"){ |
|
|
|
|
|
infoStr += ` |
|
|
<tr> |
|
|
<tr> |
|
|
<td class="nline" style="text-align:left">服务器系统:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">${dedebizInfo.result.server_goos}(${dedebizInfo.result.server_goarch})</td> |
|
|
|
|
|
|
|
|
<td class="nline" style="text-align:left">授权版本:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">V${rsp.result.auth_version}.x.x(时间:${rsp.result.auth_at})</td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
`; |
|
|
|
|
|
} |
|
|
|
|
|
if (rsp.result.core === null || rsp.result.core.code != 200){ |
|
|
|
|
|
//下面是DedeBIZ Core组件信息 |
|
|
|
|
|
infoStr += ` |
|
|
<tr> |
|
|
<tr> |
|
|
<td class="nline" style="text-align:left">内存占用:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">${dedebizInfo.result.server_memory_usage}%</td> |
|
|
|
|
|
|
|
|
<td class="nline" style="text-align:left">版本组件:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left"><a href="<?php echo $cfg_biz_dedebizUrl;?>/start?code=-1008" target="_blank" class="btn btn-danger btn-sm">如何启动组件</a></td> |
|
|
</tr> |
|
|
</tr> |
|
|
</tbody> |
|
|
|
|
|
</table> |
|
|
|
|
|
`); |
|
|
|
|
|
} |
|
|
|
|
|
//加载服务信息 |
|
|
|
|
|
function LoadServer() { |
|
|
|
|
|
$.get("index_body.php?dopost=system_info", function (data) { |
|
|
|
|
|
let rsp = JSON.parse(data); |
|
|
|
|
|
if (rsp.code === 200) { |
|
|
|
|
|
let infoStr = `<table width="100%" class="table table-borderless"><tbody>`; |
|
|
|
|
|
if (typeof rsp.result.domain !== "undefined") { |
|
|
|
|
|
infoStr += ` |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">授权域名:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">${rsp.result.domain}<a href="<?php echo $cfg_biz_dedebizUrl;?>/auth/?domain=${rsp.result.domain}" class="btn btn-danger btn-sm">查看</a></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
`; |
|
|
|
|
|
} |
|
|
|
|
|
if (typeof rsp.result.title !== "undefined") { |
|
|
|
|
|
infoStr += ` |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">站点名称:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">${rsp.result.title}</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
`; |
|
|
|
|
|
} |
|
|
|
|
|
if (typeof rsp.result.stype !== "undefined") { |
|
|
|
|
|
infoStr += ` |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">站点类型:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">${rsp.result.stype}</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
`; |
|
|
|
|
|
} |
|
|
|
|
|
if (typeof rsp.result.auth_version !== "undefined" && typeof rsp.result.auth_at !== "undefined") { |
|
|
|
|
|
infoStr += ` |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">授权版本:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left">v${rsp.result.auth_version}.x.x(时间:${rsp.result.auth_at})</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
`; |
|
|
|
|
|
} |
|
|
|
|
|
if (rsp.result.core === null || rsp.result.core.code != 200) { |
|
|
|
|
|
//下面是DedeBIZ Core组件信息 |
|
|
|
|
|
infoStr += ` |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">版本组件:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left"><a href="<?php echo $cfg_biz_dedebizUrl;?>/start?code=-1008" target="_blank" class="btn btn-danger btn-sm">如何启动组件</a></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
`; |
|
|
|
|
|
} else { |
|
|
|
|
|
dedebizInfo = JSON.parse(rsp.result.core.data); |
|
|
|
|
|
infoStr += ` |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">版本组件:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left"><a href="javascript:ViewDedeBIZ()" class="btn btn-success btn-sm">查看组件信息</a></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
`; |
|
|
|
|
|
} |
|
|
|
|
|
infoStr += "</tbody></table>"; |
|
|
|
|
|
$("#_systeminfo").html(infoStr); |
|
|
|
|
|
|
|
|
`; |
|
|
} else { |
|
|
} else { |
|
|
$("#_systeminfo").html(` |
|
|
|
|
|
<div class="py-1">尚未启动商业版服务,原因:${rsp.msg}</div> |
|
|
|
|
|
<div class="py-1">目前是社区版开源免费,但商业版可以提高性能,支付功能,小程序等</div> |
|
|
|
|
|
<div class="py-1"><a href="<?php echo $cfg_biz_dedebizUrl;?>/start?code=${rsp.code}" target="_blank" class="btn btn-danger btn-sm">开启商业版</a></div> |
|
|
|
|
|
`); |
|
|
|
|
|
|
|
|
dedebizInfo = JSON.parse(rsp.result.core.data); |
|
|
|
|
|
infoStr += ` |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="nline" style="text-align:left">版本组件:</td> |
|
|
|
|
|
<td class="nline" style="text-align:left"><a href="javascript:ViewDedeBIZ()" class="btn btn-success btn-sm">查看组件信息</a></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
`; |
|
|
} |
|
|
} |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
$(document).ready(function () { |
|
|
|
|
|
LoadServer(); |
|
|
|
|
|
setInterval(function () { |
|
|
|
|
|
LoadServer(); |
|
|
|
|
|
}, 5000) |
|
|
|
|
|
|
|
|
infoStr += "</tbody></table>"; |
|
|
|
|
|
$("#_systeminfo").html(infoStr); |
|
|
|
|
|
} else { |
|
|
|
|
|
$("#_systeminfo").html(` |
|
|
|
|
|
<div class="py-1">尚未启动商业版服务,原因:${rsp.msg}</div> |
|
|
|
|
|
<div class="py-1">目前是社区版开源免费,但商业版可以提高性能,支付功能,小程序等</div> |
|
|
|
|
|
<div class="py-1"><a href="<?php echo $cfg_biz_dedebizUrl;?>/start?code=${rsp.code}" target="_blank" class="btn btn-danger btn-sm">开启商业版</a></div> |
|
|
|
|
|
`); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
$(document).ready(function(){ |
|
|
|
|
|
LoadServer(); |
|
|
|
|
|
setInterval(function(){ |
|
|
|
|
|
LoadServer(); |
|
|
|
|
|
}, 5000) |
|
|
|
|
|
}); |
|
|
</script> |
|
|
</script> |
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |