@@ -33,7 +33,7 @@ else if ($dopost == 'setskin') { | |||||
exit; | exit; | ||||
} elseif($dopost == 'get_articles'){ | } elseif($dopost == 'get_articles'){ | ||||
?> | ?> | ||||
<table width="100%" class="table table-borderless"> | <table class="table table-borderless"> | ||||
<?php | <?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,12"; | $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,12"; | ||||
$arcArr = array(); | $arcArr = array(); | ||||
@@ -17,18 +17,6 @@ | |||||
<script src="js/indexbody.js"></script> | <script src="js/indexbody.js"></script> | ||||
<script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
<style> | <style> | ||||
table.stattable td { | |||||
padding: .6rem; | |||||
border-bottom: 1px solid #dee2e6; | |||||
text-align: right; | |||||
vertical-align: middle | |||||
} | |||||
.stattable { | |||||
width: 100% | |||||
} | |||||
.table { | |||||
margin-bottom: 0 | |||||
} | |||||
.web-info { | .web-info { | ||||
padding: 10px; | padding: 10px; | ||||
background: #f8f8f8; | background: #f8f8f8; | ||||
@@ -51,14 +39,14 @@ | |||||
<div class="card"> | <div class="card"> | ||||
<div class="card-header"><a href="#statChart" title="查看流量统计图"><i class="fa fa-line-chart"></i> 流量统计表</a></div> | <div class="card-header"><a href="#statChart" title="查看流量统计图"><i class="fa fa-line-chart"></i> 流量统计表</a></div> | ||||
<div class="card-body"> | <div class="card-body"> | ||||
<table class="stattable"> | <table class="table"> | ||||
<tbody> | <tbody> | ||||
<tr class="title"> | <tr class="title"> | ||||
<td width="10%"></td> | <td width="20%" style="border-top:0"></td> | ||||
<td width="20%">浏览次数(PV)</td> | <td width="20%" style="border-top:0">浏览次数(PV)</td> | ||||
<td width="20%">独立访客(UV)</td> | <td width="20%" style="border-top:0">独立访客(UV)</td> | ||||
<td width="20%">IP</td> | <td width="20%" style="border-top:0">IP</td> | ||||
<td width="18%">访问次数</td> | <td width="20%" style="border-top:0">访问次数</td> | ||||
</tr> | </tr> | ||||
<tr class="bg-white"> | <tr class="bg-white"> | ||||
<td class="today">今日</td> | <td class="today">今日</td> | ||||
@@ -74,7 +62,7 @@ | |||||
<td id="yestoday_ip">0</td> | <td id="yestoday_ip">0</td> | ||||
<td id="yestoday_vv">0</td> | <td id="yestoday_vv">0</td> | ||||
</tr> | </tr> | ||||
<tr class="bg-white grey9 hide" style="display:table-row"> | <tr class="bg-white"> | ||||
<td>历史累计</td> | <td>历史累计</td> | ||||
<td id="total_pv">0</td> | <td id="total_pv">0</td> | ||||
<td id="total_uv">0</td> | <td id="total_uv">0</td> | ||||
@@ -89,8 +77,7 @@ | |||||
<div class="col-md-6 mt-3 mb-3 updatenews"> | <div class="col-md-6 mt-3 mb-3 updatenews"> | ||||
<div class="card"> | <div class="card"> | ||||
<div class="card-header"> | <div class="card-header"> | ||||
<a href="javascript:copyFn()"><i class="fa fa-gear"></i> 系统信息</a> | <a href="javascript:copyFn()"><i class="fa fa-gear"></i> 系统信息</a><span id="text">V:<?php echo $cfg_version_detail; ?>|操作系统:<?php echo PHP_OS; ?>|Web服务器:<?php echo $_SERVER['SERVER_SOFTWARE']; ?>|PHP版本:<?php echo @phpversion(); ?>|数据库版本:<?php echo $dsql->GetVersion(); ?></span> | ||||
<span id="text">V:<?php echo $cfg_version_detail; ?>|操作系统:<?php echo PHP_OS; ?>|Web服务器:<?php echo $_SERVER['SERVER_SOFTWARE']; ?>|PHP版本:<?php echo @phpversion(); ?>|数据库版本:<?php echo $dsql->GetVersion(); ?></span> | |||||
</div> | </div> | ||||
<div class="card-body"> | <div class="card-body"> | ||||
<div id="updateinfos"><?php echo "<iframe name='stafrm' src='{$offUrl}&uptime={$oktime}' frameborder='0' id='stafrm' style='width:98%;height:70px;padding:.6rem'></iframe>"; ?></div> | <div id="updateinfos"><?php echo "<iframe name='stafrm' src='{$offUrl}&uptime={$oktime}' frameborder='0' id='stafrm' style='width:98%;height:70px;padding:.6rem'></iframe>"; ?></div> | ||||
@@ -38,7 +38,7 @@ | |||||
.login-area { | .login-area { | ||||
padding: 1.25rem; | padding: 1.25rem; | ||||
background: #fff; | background: #fff; | ||||
border-radius: .25rem | border-radius: .2rem | ||||
} | } | ||||
.login-area .btnLogin { | .login-area .btnLogin { | ||||
width: 100% | width: 100% | ||||
@@ -56,5 +56,5 @@ if ($lv->IsError) ParamError(); | |||||
$lv->Display(); | $lv->Display(); | ||||
if (DEBUG_LEVEL === TRUE) { | if (DEBUG_LEVEL === TRUE) { | ||||
$queryTime = ExecTime() - $t1; | $queryTime = ExecTime() - $t1; | ||||
echo "<div style='width:98%;margin:1rem auto;color: #721c24;background-color: #f8d7da;border-color: #f5c6cb;position: relative;padding: .75rem 1.25rem;border: 1px solid transparent;border-radius: .25rem;'>页面加载总消耗时间:{$queryTime}</div>\r\n"; | echo "<div style='width:98%;margin:1rem auto;color:#721c24;background:#f8d7da;border-color:#f5c6cb;position:relative;padding:.75rem 1.25rem;border:1px solid transparent;border-radius:.2rem'>页面加载总消耗时间:{$queryTime}</div>\r\n"; | ||||
} | } |
@@ -218,7 +218,7 @@ class DedeSqli | |||||
if (PHP_SAPI === 'cli') { | if (PHP_SAPI === 'cli') { | ||||
echo "执行SQL:".$this->queryString.",执行时间:{$queryTime}\r\n"; | echo "执行SQL:".$this->queryString.",执行时间:{$queryTime}\r\n"; | ||||
} else { | } else { | ||||
echo "<div style='width:98%;margin:1rem auto;color: #155724;background-color: #d4edda;border-color: #c3e6cb;position: relative;padding: .75rem 1.25rem;border: 1px solid transparent;border-radius: .25rem;'>执行SQL:".$this->queryString.",执行时间:{$queryTime}</div>\r\n"; | echo "<div style='width:98%;margin:1rem auto;color:#155724;background:#d4edda;border-color:#c3e6cb;position:relative;padding:.75rem 1.25rem;border:1px solid transparent;border-radius:.2rem'>执行SQL:".$this->queryString.",执行时间:{$queryTime}</div>\r\n"; | ||||
} | } | ||||
} | } | ||||
return $rs; | return $rs; | ||||
@@ -255,7 +255,7 @@ class DedeSqli | |||||
if (PHP_SAPI === 'cli') { | if (PHP_SAPI === 'cli') { | ||||
echo "执行SQL:".$this->queryString.",执行时间:{$queryTime}\r\n"; | echo "执行SQL:".$this->queryString.",执行时间:{$queryTime}\r\n"; | ||||
} else { | } else { | ||||
echo "<div style='width:98%;margin:1rem auto;color: #155724;background-color: #d4edda;border-color: #c3e6cb;position: relative;padding: .75rem 1.25rem;border: 1px solid transparent;border-radius: .25rem;'>执行SQL:".$this->queryString.",执行时间:{$queryTime}</div>\r\n"; | echo "<div style='width:98%;margin:1rem auto;color:#155724;background:#d4edda;border-color:#c3e6cb;position:relative;padding:.75rem 1.25rem;border:1px solid transparent;border-radius:.2rem'>执行SQL:".$this->queryString.",执行时间:{$queryTime}</div>\r\n"; | ||||
} | } | ||||
} | } | ||||
return mysqli_affected_rows($this->linkID); | return mysqli_affected_rows($this->linkID); | ||||
@@ -305,7 +305,7 @@ class DedeSqli | |||||
if (PHP_SAPI === 'cli') { | if (PHP_SAPI === 'cli') { | ||||
echo "执行SQL:".$this->queryString.",执行时间:{$queryTime}\r\n"; | echo "执行SQL:".$this->queryString.",执行时间:{$queryTime}\r\n"; | ||||
} else { | } else { | ||||
echo "<div style='width:98%;margin:1rem auto;color: #155724;background-color: #d4edda;border-color: #c3e6cb;position: relative;padding: .75rem 1.25rem;border: 1px solid transparent;border-radius: .25rem;'>执行SQL:".$this->queryString.",执行时间:{$queryTime}</div>\r\n"; | echo "<div style='width:98%;margin:1rem auto;color:#155724;background:#d4edda;border-color:#c3e6cb;position:relative;padding:.75rem 1.25rem;border:1px solid transparent;border-radius:.2rem'>执行SQL:".$this->queryString.",执行时间:{$queryTime}</div>\r\n"; | ||||
} | } | ||||
} | } | ||||
if ($this->result[$id] === FALSE) { | if ($this->result[$id] === FALSE) { | ||||