From 172d9bc2d5b982b82ada1420c926c0164da36ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Thu, 16 Mar 2023 09:55:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/inc/inc_batchup.php | 2 +- src/admin/index_body.php | 4 +- src/admin/sys_data.php | 2 +- src/admin/sys_data_done.php | 71 ++++++++++++------------ src/admin/sys_data_replace.php | 2 +- src/admin/templets/index_body.htm | 28 ++++++---- src/admin/templets/makehtml_homepage.htm | 8 +-- src/admin/templets/sys_safetest.htm | 4 +- src/system/archive/archives.class.php | 11 ++-- src/system/common.func.php | 71 ++++++++++++------------ src/system/common.inc.php | 2 +- src/theme/dedebiz/index.htm | 21 ++++--- src/user/templets/album_add.htm | 2 +- src/user/templets/album_edit.htm | 2 +- src/user/templets/archives_add.htm | 2 +- src/user/templets/archives_edit.htm | 2 +- src/user/templets/archives_sg_add.htm | 2 +- src/user/templets/archives_sg_edit.htm | 2 +- src/user/templets/article_add.htm | 2 +- src/user/templets/article_edit.htm | 2 +- src/user/templets/buy.htm | 20 +++---- src/user/templets/buy_action_payment.htm | 2 +- src/user/templets/content_list.htm | 2 +- src/user/templets/content_sg_list.htm | 2 +- src/user/templets/menu.htm | 6 +- src/user/templets/pm-main.htm | 2 +- src/user/templets/soft_add.htm | 2 +- src/user/templets/soft_edit.htm | 2 +- 28 files changed, 139 insertions(+), 141 deletions(-) diff --git a/src/admin/inc/inc_batchup.php b/src/admin/inc/inc_batchup.php index 126de64c..66d227ec 100644 --- a/src/admin/inc/inc_batchup.php +++ b/src/admin/inc/inc_batchup.php @@ -54,7 +54,7 @@ function DelArc($aid, $type = 'ON', $onlyfile = FALSE, $recycle = 0) return FALSE; } } - //$issystem==-1 是自定义模型,不使用回收站 + //$issystem==-1是自定义模型,不使用回收站 if ($issystem == -1) $type = 'OK'; if (!is_array($arcRow)) return FALSE; /** 删除到回收站 **/ diff --git a/src/admin/index_body.php b/src/admin/index_body.php index f753bd39..ae2264cd 100644 --- a/src/admin/index_body.php +++ b/src/admin/index_body.php @@ -40,7 +40,7 @@ else if ($dopost == 'setskin') { $admin_catalog = join(',', $admin_catalogs); $userCatalogSql = "AND arc.typeid IN($admin_catalog) "; } - $query = "SELECT arc.id, arc.arcrank, arc.title, arc.typeid, arc.mid, 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 {$userCatalogSql} AND arc.mid={$cuserLogin->getUserID()} ORDER BY arc.id DESC LIMIT 0,12"; + $query = "SELECT arc.id, arc.arcrank, arc.title, arc.typeid, arc.mid, 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 {$userCatalogSql} AND arc.mid={$cuserLogin->getUserID()} ORDER BY arc.id DESC LIMIT 0,15"; $arcArr = array(); $dsql->Execute('m', $query); while($row = $dsql->GetArray('m')) @@ -55,7 +55,7 @@ else if ($dopost == 'setskin') { if (trim($row['editcon'])=='') { $row['editcon'] = 'archives_edit.php'; } - $rowarcrank = $row['arcrank']==-1? " 未审核":""; + $rowarcrank = $row['arcrank']==-1? "未审核":""; $pubdate = GetDateMk($row['pubdate']); echo "
+ |
操作系统 |
- + |
WEB服务器 |
- + |
IP地址 |
- + |
PHP版本 |
- + |
数据库版本 GetVersion();?> |
+
+
+
+ 上传限制 + + |
* if (!function_exists('HelloDede'))
* {
@@ -237,10 +236,10 @@ if (!function_exists('CheckSql')) {
* }
* }
*
- * 则我们在开发中使用这个小助手的时候直接使用函数helper('test');初始化它,然后在文件中就可以直接使用:HelloDede();来进行调用
+ * 开发中使用这个小助手的时候直接使用函数helper('test');初始化它,然后在文件中就可以直接使用:HelloDede();调用
*
* @access public
- * @param mix $helpers 小助手名称,可以是数组,可以是单个字符串
+ * @param mix $helpers 小助手名称,可以是数组,可以是单个字符串
* @return void
*/
$_helpers = array();
@@ -426,6 +425,20 @@ function IndexSub($idx, $num)
{
return intval($idx) - intval($num) == 0 ? '0 ' : intval($idx) - intval($num);
}
+/**
+ * HideEmail隐藏邮箱
+ *
+ * @param mixed $email
+ * @return string
+ */
+function HideEmail($email)
+{
+ if (empty($email)) return "暂无";
+ $em = explode("@",$email);
+ $name = implode('@', array_slice($em, 0, count($em)-1));
+ $len = floor(strlen($name)/2);
+ return substr($name,0, $len).str_repeat('*', $len)."@".end($em);
+}
//用来返回index的active
function IndexActive($idx)
{
@@ -508,7 +521,18 @@ function GetUpdateSQL()
fclose($fp);
return $result;
}
-//标签调用标签[field:id function='GetMyTags(@me,2)'/]2表示输出2个文档
+/*会员中心调用默认主题模板*/
+if (!function_exists('pasterTempletDiy')) {
+ function pasterTempletDiy($path)
+ {
+ global $cfg_basedir, $cfg_templets_dir, $cfg_df_style;
+ $tmpfile = $cfg_basedir.$cfg_templets_dir.'/'.$cfg_df_style.'/'.$path;
+ $dtp = new PartView();
+ $dtp->SetTemplet($tmpfile);
+ $dtp->Display();
+ }
+}
+//标签调用标签[field:id function='GetMyTags(@me,2)'/]2表示调用文档2个标签
if (!function_exists('GetMyTags')) {
function GetMyTags($aid, $num=3)
{
@@ -523,18 +547,7 @@ if (!function_exists('GetMyTags')) {
return $tags;
}
}
-/*会员中心调用默认模板*/
-if (!function_exists('pasterTempletDiy')) {
- function pasterTempletDiy($path)
- {
- global $cfg_basedir, $cfg_templets_dir, $cfg_df_style;
- $tmpfile = $cfg_basedir.$cfg_templets_dir.'/'.$cfg_df_style.'/'.$path;
- $dtp = new PartView();
- $dtp->SetTemplet($tmpfile);
- $dtp->Display();
- }
-}
-//联动单筛选标签{dede:php}AddFilter(模型id,类型,'字段1,字段2');{/dede:php}
+//联动单筛选标签{dede:php}AddFilter(模型id,类型,'字段1,字段2');{/dede:php}类型对应以下case数值
function litimgurls($imgid = 0)
{
global $lit_imglist, $dsql;
@@ -630,20 +643,6 @@ function AddFilter($channelid, $type=1, $fieldsnamef='', $defaulttid=0, $toptid=
}
echo $dede_addonfields;
}
-/**
- * HideEmail隐藏邮箱
- *
- * @param mixed $email
- * @return string
- */
-function HideEmail($email)
-{
- if (empty($email)) return "空";
- $em = explode("@",$email);
- $name = implode('@', array_slice($em, 0, count($em)-1));
- $len = floor(strlen($name)/2);
- return substr($name,0, $len).str_repeat('*', $len)."@".end($em);
-}
//自定义函数接口
if (file_exists(DEDEINC.'/extend.func.php')) {
require_once(DEDEINC.'/extend.func.php');
diff --git a/src/system/common.inc.php b/src/system/common.inc.php
index 8cfaf303..1f0832a3 100755
--- a/src/system/common.inc.php
+++ b/src/system/common.inc.php
@@ -260,7 +260,7 @@ if ($GLOBALS['cfg_dbtype'] == 'mysql' || $GLOBALS['cfg_dbtype'] == 'mysqli') {
} else {
require_once(DEDEINC.'/database/dedesqlite.class.php');
}
-//载入小助手配置,并对其进行默认初始化
+//载入小助手配置,并对其进行默认初始化
$cfg_helper_autoload = array(
'charset', /* 编码小助手 */
'channelunit',/* 模型单元小助手 */
diff --git a/src/theme/dedebiz/index.htm b/src/theme/dedebiz/index.htm
index b5dbd59d..6868b927 100644
--- a/src/theme/dedebiz/index.htm
+++ b/src/theme/dedebiz/index.htm
@@ -42,12 +42,12 @@