默认系统是不区别管理员身份的,直接列出所有未审核的文章数据,进一步改进后普通管理员登录后只显示自己未审核的文章数,修改方法如下:
用dw等编辑工具打开admin/index.asp
找到
- Num=Conn.Execute("Select count(id) from " & Node.SelectSingleNode("@ks2").text & " where deltf=0 and verific=0")(0)
改成
- If KS.C("SuperTF")<>"1" and Instr(KS.C("ModelPower"),KS.C_S(Node.SelectSingleNode("@ks0").text,10)&"1")=0 Then
- If DataBaseType=1 Then
- Num=Conn.Execute("Select count(id) from " & Node.SelectSingleNode("@ks2").text & " where deltf=0 and verific=0 and tid in(select id from ks_class where ','+cast(AdminPurview as nvarchar(4000))+',' like '%," & KS.C("GroupID") & "%')")(0)
- Else
- Num=Conn.Execute("Select count(id) from " & Node.SelectSingleNode("@ks2").text & " where deltf=0 and verific=0 and tid in(select id from ks_class where ','+AdminPurview+',' like '%," & KS.C("GroupID") & "%')")(0)
- End If
- Else
- Num=Conn.Execute("Select count(id) from " & Node.SelectSingleNode("@ks2").text & " where deltf=0 and verific=0")(0)
- End If