diff --git a/src/admin/css/indexbody.css b/src/admin/css/indexbody.css
index 8b4af849..455adc5e 100644
--- a/src/admin/css/indexbody.css
+++ b/src/admin/css/indexbody.css
@@ -119,19 +119,6 @@
padding-left:110px;
background:url(../../images/ico_spider.gif)no-repeat scroll 10px 15px transparent
}
-#quickmenu {
- width:100%;
- height:46px;
- overflow:hidden
-}
-#quickmenu .icoitem {
- float:left;
- height:24px;
- line-height:24px;
- margin-top:10px;
- padding-left:30px;
- overflow:hidden
-}
.dboxtable td.nline {
height:26px;
border-bottom:1px dashed #CFD7C4
diff --git a/src/admin/inc/grouplist.txt b/src/admin/inc/grouplist.txt
index 953d9e03..6df4d93c 100644
--- a/src/admin/inc/grouplist.txt
+++ b/src/admin/inc/grouplist.txt
@@ -80,7 +80,6 @@
>sys_Feedback>评论管理
>sys_Upload>管理任意上传
>sys_MyUpload>管理我的上传
->pic_view>图片浏览器
>>会员管理
diff --git a/src/admin/index_body.php b/src/admin/index_body.php
index 0177aba1..c8c15669 100644
--- a/src/admin/index_body.php
+++ b/src/admin/index_body.php
@@ -20,10 +20,6 @@ if (empty($dopost)) {
fclose($fp);
$oktime = substr($upTime, 0, 4).'-'.substr($upTime, 4, 2).'-'.substr($upTime, 6, 2);
$offUrl = SpGetNewInfo();
- $dedecmsidc = DEDEDATA.'/admin/idc.txt';
- $fp = fopen($dedecmsidc, 'r');
- $dedeIDC = fread($fp, filesize($dedecmsidc));
- fclose($fp);
include DedeInclude('templets/index_body.htm');
exit();
}
diff --git a/src/admin/js/frame.js b/src/admin/js/frame.js
index 38d2cb2e..195139db 100644
--- a/src/admin/js/frame.js
+++ b/src/admin/js/frame.js
@@ -4,9 +4,6 @@ var navIE = document.all && navigator.userAgent.indexOf("Firefox") == -1;
var myspeed = 0;
$(function () {
- //快捷菜单
- bindQuickMenu();
-
//左侧菜单开关
LeftMenuToggle();
@@ -29,25 +26,6 @@ $(function () {
}
});
-function bindQuickMenu() {//快捷菜单
- $("#ac_qucikmenu").bind("mouseenter", function () {
- $("#qucikmenu").slideDown("fast");
- }).dblclick(function () {
- $("#qucikmenu").slideToggle("fast");
- }).bind("mouseleave", function () {
- hidequcikmenu = setTimeout('$("#qucikmenu").slideUp("fast");', 700);
- $(this).bind("mouseenter", function () { clearTimeout(hidequcikmenu); });
- });
- $("#qucikmenu").bind("mouseleave", function () {
- hidequcikmenu = setTimeout('$("#qucikmenu").slideUp("fast");', 700);
- $(this).bind("mouseenter", function () { clearTimeout(hidequcikmenu); });
- }).find("a").click(function () {
- $(this).blur();
- $("#qucikmenu").slideUp("fast");
- //$("#ac_qucikmenu").text($(this).text());
- });
-}
-
function LeftMenuToggle() {//左侧菜单开关
$("#togglemenu").click(function () {
if ($("body").attr("class") == "showmenu") {
diff --git a/src/admin/js/indexbody.js b/src/admin/js/indexbody.js
index f1c99ec7..e71f2350 100644
--- a/src/admin/js/indexbody.js
+++ b/src/admin/js/indexbody.js
@@ -18,4 +18,245 @@ function ListAll(){
function ShowWaitDiv(){
$DE('loaddiv').style.display = 'block';
return true;
-}
\ No newline at end of file
+}
+
+$(function(){
+ $.get("index_testenv.php", function (data){
+ if (data !== ''){
+ $("#tips").html(data);
+ }
+ });
+ $.get("index_body.php?dopost=get_articles", function (data){
+ if (data !== ''){
+ $("#newarticles").html(data);
+ }
+ });
+});
+
+var dedebizInfo;
+function ViewDedeBIZ(){
+ console.log(dedebizInfo);
+ ShowMsg(`
+
+
+
+ 版本号: |
+ V${dedebizInfo.result.server_version} |
+
+
+ 运行时间: |
+ ${dedebizInfo.result.server_run_time} |
+
+
+ 服务器系统: |
+ ${dedebizInfo.result.server_goos}(${dedebizInfo.result.server_goarch}) |
+
+
+ 内存占用: |
+ ${dedebizInfo.result.server_memory_usage}% |
+
+
+
+ `);
+}
+function LoadServer(){
+ $.get("index_body.php?dopost=system_info", function(data){
+ let rsp = JSON.parse(data);
+ if (rsp.code === 200){
+ let infoStr = ``;
+ if (typeof rsp.result.domain !== "undefined"){
+ infoStr += `
+
+ 授权域名: |
+ ${rsp.result.domain} 查看 |
+
+ `;
+ }
+ if (typeof rsp.result.title !== "undefined"){
+ infoStr += `
+
+ 站点名称: |
+ ${rsp.result.title} |
+
+ `;
+ }
+ if (typeof rsp.result.stype !== "undefined"){
+ infoStr += `
+
+ 站点类型: |
+ ${rsp.result.stype} |
+
+ `;
+ }
+ if (typeof rsp.result.auth_version !== "undefined" && typeof rsp.result.auth_at !== "undefined"){
+ infoStr += `
+
+ 授权版本: |
+ V${rsp.result.auth_version}.x.x(时间:${rsp.result.auth_at}) |
+
+ `;
+ }
+ if (rsp.result.core === null || rsp.result.core.code != 200){
+ //下面是DedeBIZ Core组件信息
+ infoStr += `
+
+ 版本组件: |
+ 如何启动组件 |
+
+ `;
+ } else {
+ dedebizInfo = JSON.parse(rsp.result.core.data);
+ infoStr += `
+
+ 版本组件: |
+ 查看组件信息 |
+
+ `;
+ }
+ infoStr += "
";
+ $("#_systeminfo").html(infoStr);
+ } else {
+ $("#_systeminfo").html(`
+
+
+
+ 尚未启动商业版服务,原因:${rsp.msg} |
+ 当前版本:社区版升级商业版 |
+
+
+ 如果您已购买商业版授权,您可以在我们的授权中心查询到相信关授权信息,如果查询结果与实际授权不符,则说明您可能购买了非法商业授权,请及时与我们取得联系,谢谢。 |
+
+
+
+ `);
+ }
+ });
+}
+Date.prototype.Format = function (fmt) { //author: meizz
+ var o = {
+ "M+": this.getMonth() + 1, //月份
+ "d+": this.getDate(), //日
+ "h+": this.getHours(), //小时
+ "m+": this.getMinutes(), //分
+ "s+": this.getSeconds(), //秒
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
+ "S": this.getMilliseconds() //毫秒
+ };
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
+ for (var k in o)
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
+ return fmt;
+}
+function LoadStat() {
+ $.get("index_body.php?dopost=get_statistics", function(data){
+ let rsp = JSON.parse(data);
+ if (rsp.code == 200) {
+ var tpv = parseInt(rsp.result.pv);
+ var tuv = parseInt(rsp.result.uv);
+ var tip = parseInt(rsp.result.ip);
+ var tvv = parseInt(rsp.result.vv);
+ $("#today_pv").html(tpv);
+ $("#today_uv").html(tuv);
+ $("#today_ip").html(tip);
+ $("#today_vv").html(tvv);
+ $.get("index_body.php?dopost=get_statistics&sdate=-1", function(data){
+ let rsp = JSON.parse(data);
+ if (rsp.code == 200) {
+ $("#total_pv").html(parseInt(rsp.result.pv)+tpv);
+ $("#total_uv").html(parseInt(rsp.result.uv)+tuv);
+ $("#total_ip").html(parseInt(rsp.result.ip)+tip);
+ $("#total_vv").html(parseInt(rsp.result.vv)+tvv);
+ }
+ });
+ }
+ });
+ var d = new Date();
+ d.setDate(d.getDate() - 1);
+ var s = d.Format("yyyy-MM-dd");
+ s = s.replaceAll("-","");
+ $.get("index_body.php?dopost=get_statistics&sdate="+s, function(data){
+ let rsp = JSON.parse(data);
+ if (rsp.code == 200) {
+ $("#yestoday_pv").html(rsp.result.pv);
+ $("#yestoday_uv").html(rsp.result.uv);
+ $("#yestoday_ip").html(rsp.result.ip);
+ $("#yestoday_vv").html(rsp.result.vv);
+ }
+ });
+}
+async function LoadStatChart() {
+ const ctx = document.getElementById('statChart').getContext('2d');
+ let labels = [];
+ let pvs = [];
+ let ips = [];
+ let uvs = [];
+ let vvs = [];
+ for (let i = 15; i > 0; i--) {
+ var d = new Date();
+ d.setDate(d.getDate() - i);
+ var s = d.Format("yyyy-MM-dd");
+ labels.push(d.Format("MM-dd"));
+ s = s.replaceAll("-","");
+ let resp = await fetch("index_body.php?dopost=get_statistics&sdate="+s);
+ let data = await resp.json();
+ if (data.code == 200) {
+ pvs.push(typeof data.result.pv=="undefined"? 0 : data.result.pv);
+ ips.push(typeof data.result.ip=="undefined"? 0 : data.result.ip);
+ uvs.push(typeof data.result.uv=="undefined"? 0 : data.result.uv);
+ vvs.push(typeof data.result.vv=="undefined"? 0 : data.result.vv);
+ }
+ }
+ const myChart = new Chart(ctx, {
+ type: 'line',
+ options: {
+ responsive: true,
+ plugins: {
+ legend: {
+ position: 'top',
+ },
+ title: {
+ display: true,
+ text: `${cfg_webname}流量统计图`
+ }
+ }
+ },
+ data: {
+ labels: labels,
+ datasets: [{
+ label: 'IP',
+ data: ips,
+ borderColor: 'rgba(255, 99, 132, 1)',
+ backgroundColor :'rgba(255, 99, 132, 0.2)',
+ borderWidth: 1
+ },
+ {
+ label: 'PV',
+ data: pvs,
+ borderColor: 'rgba(54, 162, 235, 1)',
+ backgroundColor :'rgba(54, 162, 235, 0.2)',
+ borderWidth: 1
+ },{
+ label: 'UV',
+ data: uvs,
+ borderColor: 'rgba(255, 206, 86, 1)',
+ backgroundColor: 'rgba(255, 206, 86, 0.2)',
+ borderWidth: 1
+ },{
+ label: '访问次数',
+ data: vvs,
+ borderColor: 'rgba(75, 192, 192, 1)',
+ backgroundColor: 'rgba(75, 192, 192, 0.2)',
+ borderWidth: 1
+ }
+ ]
+ },
+ });
+}
+$(document).ready(function(){
+ LoadServer();
+ LoadStat();
+ LoadStatChart();
+ setInterval(function(){
+ LoadServer();
+ }, 60000)
+});
\ No newline at end of file
diff --git a/src/admin/mail_file_manage.php b/src/admin/mail_file_manage.php
deleted file mode 100644
index 8df89d9d..00000000
--- a/src/admin/mail_file_manage.php
+++ /dev/null
@@ -1,37 +0,0 @@
-
\ No newline at end of file
diff --git a/src/admin/mail_getfile.php b/src/admin/mail_getfile.php
deleted file mode 100644
index 6d7bae31..00000000
--- a/src/admin/mail_getfile.php
+++ /dev/null
@@ -1,42 +0,0 @@
-Execute('me',$sql);
- while($row = $db->GetArray()){
- $mails[]=$row;
- }
- $email="";
- foreach($mails as $mail){
- $email.=$mail['email'].",";
- }
-
- $m_file = DEDEDATA."/mail/".$filename.".txt";
-
- if (file_exists($m_file)) {
- ShowMsg("该文件已经存在,重新换个文件名!","-1");
- exit();
- } else {
- $fp = fopen($m_file,'w');
- flock($fp,3);
- fwrite($fp,$email);
- fclose($fp);
- ShowMsg("获取邮件列表成功!","-1");
- exit();
- }
-}
-require_once(DEDEADMIN."/templets/mail_getfile.htm");
-?>
\ No newline at end of file
diff --git a/src/admin/mail_send.php b/src/admin/mail_send.php
deleted file mode 100644
index 4ccba5b6..00000000
--- a/src/admin/mail_send.php
+++ /dev/null
@@ -1,94 +0,0 @@
-appid = $cfg_bizcore_appid;
- $client->key = $cfg_bizcore_key;
- $client->MailSend($email,$mailtitle,$mailtitle,$mailbody);
- $client->Close();
- } else {
- if($cfg_sendmail_bysmtp == 'Y' && !empty($cfg_smtp_server))
- {
- $mailtype = 'HTML';
- require_once(DEDEINC.'/libraries/mail.class.php');
- $smtp = new smtp($cfg_smtp_server,$cfg_smtp_port,true,$cfg_smtp_usermail,$cfg_smtp_password);
- $smtp->debug = false;
- if(!$smtp->smtp_sockopen($cfg_smtp_server)){
- ShowMsg('邮件发送失败,请联系管理员','-1');
- exit();
- }
- $smtp->sendmail($email,$cfg_webname,$cfg_smtp_usermail, $mailtitle, $mailbody, $mailtype);
- } else {
- @mail($email, $mailtitle, $mailbody, $headers);
- }
- }
-}
-
-if(!isset($action)){
- $action = '';
-}
-if($action==""){
- $mfile = glob(DEDEDATA.'/mail/*.txt');
- $mnumber = count($mfile);
- $mailfiles = array();
- if($mnumber > 0){
- if(is_array($mfile)){
- foreach( $mfile as $key=>$filename){
- $mailfiles[$key] = basename($filename);
- }
- }
- }
- unset($mfile);
- require_once(DEDEADMIN."/templets/mail_send.htm");
-}
-if($action=="post"){
- if($title==''){
- ShowMsg("请填写信息标题!","-1");
- exit();
- }
- if($message==''){
- ShowMsg("请填写内容!","-1");
- exit();
- }
-
- if($mode=="group"){
- if(file_exists(DEDEDATA.'/mail/'.$mailfile)){
- $address = file(DEDEDATA.'/mail/'.$mailfile);
- $address=implode(",", $address);
- } else {
- ShowMsg($mailfile."不存在","-1");
- exit();
- }
- }elseif($mode=="more"){
- $address=$address2;
- }
- if(!preg_match('/^(.+)@(.+)$/',$address)){
- ShowMsg("请填写正确的邮件地址!","-1");
- exit();
- }
-
- $title = cn_substrR(HtmlReplace($title,1),60);
- $sendtime = time();
- $mailtitle = $title;
- $mailto = $address;
- $mailbody = stripslashes($message);
- $pattern="/\\".$cfg_medias_dir."/";
- $mailbody =preg_replace($pattern,$cfg_basehost.$cfg_medias_dir,$mailbody);
- $fromid=$cuserLogin->getUserID();
- $fromuid=$cuserLogin->getUserName();
- sendmail($mailto,$mailtitle,$mailbody);
-
- //$inquery = "INSERT INTO `#@__member_mail` (`fromid`,`fromuid`,`address`,`title`,`sendtime`,`message`)VALUES ('$fromid','$fromuid','$mailto','$mailtitle','$sendtime','$mailbody'); ";
-
- //$dsql->ExecuteNoneQuery($inquery);
- ShowMsg('邮件已成功发送','mail_send.php');
- exit();
-
-}
diff --git a/src/admin/mail_title.php b/src/admin/mail_title.php
deleted file mode 100644
index b85fbff6..00000000
--- a/src/admin/mail_title.php
+++ /dev/null
@@ -1,103 +0,0 @@
-SetQuery("SELECT id,typename FROM `#@__mail_type` ORDER BY id");
- $dsql->Execute();
- $btypes = Array();
- while($row = $dsql->GetArray())
- {
- $btypes[$row['id']] = $row['typename'];
- }
- require_once(DEDEADMIN."/templets/mail_title_add.htm");
-}elseif($dopost=="edit"){
- $dsql->SetQuery("SELECT id,typename FROM `#@__mail_type` ORDER BY id");
- $dsql->Execute();
- $btypes = Array();
- while($row = $dsql->GetArray())
- {
- $btypes[$row['id']] = $row['typename'];
- }
- $row=$dsql->GetOne("SELECT * FROM `#@__mail_title` WHERE id=$id");
- require_once(DEDEADMIN."/templets/mail_title_edit.htm");
-}elseif($dopost=="addsave"){
- if(!preg_match('/[0-9]/',$period)){
- ShowMsg("期刊号只能为数字!","-1");
- exit();
- }
- if($typeid=="0"){
- ShowMsg("请选择类别!","-1");
- exit();
- }
- if($title==''){
- ShowMsg("请填写信息标题!","-1");
- exit();
- }
- if($message==''){
- ShowMsg("请填写内容!","-1");
- exit();
- }
- $message = stripslashes($message);
- $pattern="/\\".$cfg_medias_dir."/";
- $message =preg_replace($pattern,$cfg_basehost.$cfg_medias_dir,$message);
- $title = cn_substrR(HtmlReplace($title,1),60);
- $addtime=$sendtime = time();
- $writer= $cuserLogin->getUserName();
- $mid=$cuserLogin->getUserID();
- $query = "INSERT INTO #@__mail_title (period,typeid,title,content,addtime,sendtime,writer,mid,state,count) VALUES ('$period','$typeid','$title','$message','$addtime',0,'$writer','$mid',0,0)";
- if(!$dsql->ExecuteNoneQuery($query)){
- ShowMsg("更新数据库#@__mail_title表时出错,请检查","javascript:;");
- exit();
- } else {
- ShowMsg("发表期刊成功","mail_title.php");
- exit();
- }
-}elseif($dopost=="editsave"){
- if(!preg_match('/[0-9]/',$period)){
- ShowMsg("期刊号只能为数字!","-1");
- exit();
- }
- if($title==''){
- ShowMsg("请填写信息标题!","-1");
- exit();
- }
- if($message==''){
- ShowMsg("请填写内容!","-1");
- exit();
- }
- $message = stripslashes($message);
- $pattern="/\\".$cfg_medias_dir."/";
- $message =preg_replace($pattern,$cfg_basehost.$cfg_medias_dir,$message);
- $title = cn_substrR(HtmlReplace($title,1),60);
- $writer= $cuserLogin->getUserName();
- $mid=$cuserLogin->getUserID();
-
- $query = "UPDATE #@__mail_title SET period='$period',typeid='$typeid',title='$title',content='$message',writer='$writer',mid='$mid' WHERE id=$id";
- if(!$dsql->ExecuteNoneQuery($query)){
- ShowMsg("更新数据库#@__mail_title表时出错,请检查","javascript:;");
- exit();
- } else {
- ShowMsg("编辑期刊成功","mail_title.php");
- exit();
- }
-}elseif($dopost=="delete"){
- $dsql->ExecuteNoneQuery("Delete From `#@__mail_title` where id='$id'");
- ShowMsg("删除期刊成功","mail_title.php");
- exit();
-} else {
-
- function GetSendTimeMk($mktime){
- if($mktime=="0") return "未发送";
- else return MyDate('Y-m-d H:i:s',$mktime);
- }
-
- $sql = "SELECT t.*,p.typename FROM `#@__mail_title` AS t LEFT JOIN `#@__mail_type` AS p ON t.typeid=p.id ORDER BY t.id desc";
- $dlist = new DataListCP();
- $dlist->SetTemplet(DEDEADMIN."/templets/mail_title_main.htm");
- $dlist->SetSource($sql);
- $dlist->display();
-}
-
-?>
\ No newline at end of file
diff --git a/src/admin/mail_title_send.php b/src/admin/mail_title_send.php
deleted file mode 100644
index a99568a8..00000000
--- a/src/admin/mail_title_send.php
+++ /dev/null
@@ -1,83 +0,0 @@
-appid = $cfg_bizcore_appid;
- $client->key = $cfg_bizcore_key;
- $client->MailSend($email,$mailtitle,$mailtitle,$mailbody);
- $client->Close();
- } else {
- if($cfg_sendmail_bysmtp == 'Y' && !empty($cfg_smtp_server))
- {
- $mailtype = 'HTML';
- require_once(DEDEINC.'/libraries/mail.class.php');
- $smtp = new smtp($cfg_smtp_server,$cfg_smtp_port,true,$cfg_smtp_usermail,$cfg_smtp_password);
- $smtp->debug = false;
- if(!$smtp->smtp_sockopen($cfg_smtp_server)){
- ShowMsg('邮件发送失败,请联系管理员','-1');
- exit();
- }
- $smtp->sendmail($email,$cfg_webname,$cfg_smtp_usermail, $mailtitle, $mailbody, $mailtype);
- } else {
- @mail($email, $mailtitle, $mailbody, $headers);
- }
- }
- }
-
- $row=$dsql->GetOne("SELECT * FROM `#@__mail_title` WHERE id=$id");
- $mailtitle=$row['title'];
- $mailbody=$row['content'];
-
- $sql="SELECT m.email FROM `#@__member` AS m LEFT JOIN `#@__mail_order` AS o ON o.mid=m.mid WHERE o.typeid=$typeid";
- $db->Execute('me',$sql);
- while($row = $db->GetArray()){
- $mails[]=$row;
- }
- $email="";
- foreach($mails as $mail){
- $email.=$mail['email'].",";
- }
-
- $mailto=$email;
-
- sendmail($mailto,$mailtitle,$mailbody);
-
- $sendtime = time();
- $inquery = "UPDATE `#@__mail_title` SET count=count+1,sendtime='$sendtime',state='1' WHERE id=$id";
- if($dsql->ExecuteNoneQuery($inquery)){
- ShowMsg('邮件已成功发送','mail_title_send.php');
- exit();
- }
-} else {
-
- function GetState($state){
- if($state=="0") return "未发送";
- else return "已发送";
- }
-
- function GetSendTimeMk($mktime){
- if($mktime=="0") return "未发送";
- else return MyDate('Y-m-d H:i:s',$mktime);
- }
-
- function GetCount($typeid){
- global $dsql;
- $row=$dsql->GetOne("SELECT COUNT(typeid) as cc FROM `#@__mail_order`");
- return $row['cc'];
- }
-
- $sql = "SELECT t.*,p.typename FROM `#@__mail_title` AS t LEFT JOIN `#@__mail_type` AS p ON t.typeid=p.id ORDER BY t.id desc";
- $dlist = new DataListCP();
- $dlist->SetTemplet(DEDEADMIN."/templets/mail_title_send.htm");
- $dlist->SetSource($sql);
- $dlist->display();
-}
diff --git a/src/admin/mail_type.php b/src/admin/mail_type.php
deleted file mode 100644
index c0cd9802..00000000
--- a/src/admin/mail_type.php
+++ /dev/null
@@ -1,55 +0,0 @@
-GetOne("SELECT * FROM `#@__mail_title` WHERE id=$id");
- require_once(DEDEADMIN."/templets/mail_title_edit.htm");
-}elseif($dopost=="addsave"){
- if($typename==""){
- ShowMsg("分类名不能为空","-1");
- exit();
- }
- $typename=Html2Text($typename,1);
- $description = Html2Text($description,1);
-
- $query = "INSERT INTO #@__mail_type (typename,description) VALUES ('$typename','$description')";
- if(!$dsql->ExecuteNoneQuery($query)){
- ShowMsg("更新数据库#@__mail_type表时出错,请检查","javascript:;");
- exit();
- } else {
- ShowMsg("添加分类成功","mail_type.php");
- exit();
- }
-}elseif($dopost=="editsave"){
- if($typename==""){
- ShowMsg("分类名不能为空","-1");
- exit();
- }
- $typename=Html2Text($typename,1);
- $description = Html2Text($description,1);
-
- $query = "UPDATE #@__mail_type SET typename='$typename',description='$description' WHERE id=$id";
- if(!$dsql->ExecuteNoneQuery($query)){
- ShowMsg("更新数据库#@__mail_type表时出错,请检查","javascript:;");
- exit();
- } else {
- ShowMsg("修改分类成功","mail_type.php");
- exit();
- }
-}elseif($dopost=="delete"){
- $dsql->ExecuteNoneQuery("Delete From `#@__mail_type` where id='$id'");
- ShowMsg("删除分类成功","mail_type.php");
- exit();
-} else {
- $sql = "SELECT * FROM `#@__mail_type` ORDER BY id ";
- $dlist = new DataListCP();
- $dlist->SetTemplet(DEDEADMIN."/templets/mail_type_main.htm");
- $dlist->SetSource($sql);
- $dlist->display();
-}
-?>
\ No newline at end of file
diff --git a/src/admin/pic_view.php b/src/admin/pic_view.php
deleted file mode 100644
index 89058ace..00000000
--- a/src/admin/pic_view.php
+++ /dev/null
@@ -1,136 +0,0 @@
-转到上级目录\n");
- }
-}
-
-function ListPic($truePath, $nowPath)
-{
- global $listSize;
- $col = 0;
- $rowdd = 0;
- $rowdd++;
- $imgfile = "";
- $truePath = preg_replace("#\/$#", "", preg_replace("#\\\\{1,}#", "/", trim($truePath)));
- $nowPath = preg_replace("#\/$#", "", preg_replace("#\/{1,}#", "/", trim($nowPath)));
- $dh = dir($truePath);
- echo ("\n");
- while ($filename = $dh->read()) {
- if (!preg_match("#\.$#", $filename)) {
- $fullName = $truePath."/".$filename;
- $fileUrl = $nowPath."/".$filename;
- if (is_dir($fullName)) {
- if ($col % $listSize == 0 && $col != 0) {
- echo ("
\n\n");
- for ($i = $rowdd - $listSize; $i < $rowdd; $i++) {
- echo ("".$filelist[$i]." | \n");
- }
- echo ("
\n\n");
- }
- $line = "
-
- | ";
- $filelist[$rowdd] = $filename;
- $col++;
- $rowdd++;
- echo $line;
- } else if (IsImg($filename)) {
- if ($col % $listSize == 0 && $col != 0) {
- echo ("
\n\n");
- for ($i = $rowdd - $listSize; $i < $rowdd; $i++) {
- echo ("".$filelist[$i]." | \n");
- }
- echo ("
\n\n");
- }
- $line = "
-
-
-
-
- ".GetImgFile($truePath, $nowPath, $filename)."
- |
- | ";
- $filelist[$rowdd] = $filename;
- $col++;
- $rowdd++;
- echo $line;
- }
- }
- }
- echo ("
\n");
- if (!empty($filelist)) {
- echo ("\n");
- $t = ($rowdd - 1) % $listSize;
- if ($t == 0) {
- $t = $listSize;
- }
- for ($i = $rowdd - $t; $i < $rowdd; $i++) {
- echo ("".$filelist[$i]." | \n");
- }
- echo ("
\n");
- }
-}
-
-function GetImgFile($truePath, $nowPath, $fileName)
-{
- $toW = 102;
- $toH = 102;
- $srcFile = $truePath."/".$fileName;
- $info = "";
- $data = GetImageSize($srcFile, $info);
- $srcW = $data[0];
- $srcH = $data[1];
- if ($toW >= $srcW && $toH >= $srcH) {
- $ftoW = $srcW;
- $ftoH = $srcH;
- } else {
- $toWH = $toW / $toH;
- $srcWH = $srcW / $srcH;
- if ($toWH <= $srcWH) {
- $ftoW = $toW;
- $ftoH = $ftoW * ($srcH / $srcW);
- } else {
- $ftoH = $toH;
- $ftoW = $ftoH * ($srcW / $srcH);
- }
- }
- return ("
");
-}
-
-function IsImg($fileName)
-{
- if (preg_match("#\.(jpg|gif|png)$#", $fileName)) return 1;
- else return 0;
-}
diff --git a/src/admin/templets/index_body.htm b/src/admin/templets/index_body.htm
index 5e472183..b6ea8e7a 100644
--- a/src/admin/templets/index_body.htm
+++ b/src/admin/templets/index_body.htm
@@ -9,6 +9,10 @@
+
@@ -168,248 +172,5 @@ table.stattable td{padding:.6rem;border-bottom:1px solid #dee2e6;text-align:righ
-
-