diff --git a/src/admin/templets/sys_admin_user_edit.htm b/src/admin/templets/sys_admin_user_edit.htm index dc854ac7..ca7ae6be 100644 --- a/src/admin/templets/sys_admin_user_edit.htm +++ b/src/admin/templets/sys_admin_user_edit.htm @@ -38,6 +38,7 @@ 密码 (留空则不修改,请使用数字0-9小写a-z大写A-Z符号_@!.-) + getUserType() >= 10) {?> 类型 @@ -64,6 +65,7 @@ (支持多选) + 姓名 diff --git a/src/admin/templets/sys_group_add.htm b/src/admin/templets/sys_group_add.htm index e9a9f766..b22ace0f 100644 --- a/src/admin/templets/sys_group_add.htm +++ b/src/admin/templets/sys_group_add.htm @@ -29,29 +29,25 @@ 级别值 - (系统已占用的级别值:SetQuery("SELECT `rank` FROM `#@__admintype`");$dsql->Execute();while($row = $dsql->GetObject()) echo $row->rank;?>,级别值必须小于10,超过或等于10所有权限设置无效) + (已占用级别值:1、5、10,级别值必须小于10,大于或等于10所有权限设置无效) >#", $line)) - { + if (preg_match("#^>>#", $line)) { if ($start>0) echo ""; $start++; $lhead = "{$start}、".str_replace('>>','',$line).""; echo $lhead; - } - else if (preg_match("#^>#", $line)) - { + } else if (preg_match("#^>#", $line)) { $ls = explode('>',$line); $tag = $ls[1]; $tagname = str_replace('[br]', '
', $ls[2]); - if (!preg_match("#
#", $tagname) ) $tagname .= "($tag)"; + if (!preg_match("#
#", $tagname) ) $tagname .= "($tag)"; else $tagname = str_replace('
', "($tag)
", $tagname); echo " "; $k++; diff --git a/src/admin/templets/sys_group_edit.htm b/src/admin/templets/sys_group_edit.htm index b43fe6ed..ab12c9a1 100644 --- a/src/admin/templets/sys_group_edit.htm +++ b/src/admin/templets/sys_group_edit.htm @@ -35,12 +35,10 @@ $start = 0; $k = 0; $gouplists = file(DEDEADMIN.'/inc/grouplist.txt'); - foreach($gouplists as $line) - { + foreach($gouplists as $line) { $line = trim($line); if ($line=="") continue; - if (preg_match("#^>>#", $line)) - { + if (preg_match("#^>>#", $line)) { if ($start>0) echo ""; $line = str_replace('>>','',$line); $ls = explode('>',$line); @@ -50,9 +48,7 @@ $start++; $lhead = " {$start}、".$ls[0].""; echo $lhead; - } - else if (preg_match("#^>#", $line)) - { + } else if (preg_match("#^>#", $line)) { $ls = explode('>',$line); if (DEDEBIZ_SAFE_MODE && $ls[3]==="unsafe") { continue; diff --git a/src/system/userlogin.class.php b/src/system/userlogin.class.php index 96db5760..f481fb94 100755 --- a/src/system/userlogin.class.php +++ b/src/system/userlogin.class.php @@ -58,7 +58,7 @@ function CheckPurview($n) } } /** - * 是否没权限限制(超级管理员) + * 是否没权限限制,超级管理员 * * @access public * @param string @@ -95,11 +95,10 @@ function CheckCatalog($cid, $msg) return TRUE; } /** - * 发布文档临时附件信息缓存、发文档前先清空附件信息 - * 发布文档时涉及的附件保存到缓存里,完成后把它与文档关连 + * 发布文档临时附件信息缓存,前先清空附件信息,完成后把它与文档关连 * * @access public - * @param string $fid 文件ID + * @param string $fid 文件id * @param string $filename 文件名称 * @return void */ @@ -246,8 +245,6 @@ class userLogin return 1; } } - - /** * 是否需要验证码 * @@ -259,7 +256,6 @@ class userLogin $num = $this->getLoginError($username); return $num >= 3 ? true : false; } - /** * 1分钟以内登录错误的次数 * @@ -281,7 +277,6 @@ class userLogin return -1; } } - /** * 记录登录错误 *