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 @@