<%
'========================================================================================
' 文 件 名: purview.asp
' 版    本: 岭峰网行业专用留言系统3.10.0 (LFMessS 2020 - 3.10.0.F Build 200604)
' 说    明: 通用权限验证文件 | 您可以替换该处代码为您整套系统的权限验证代码，以实现统一管理
' 文件日期: 2020-06-04
' 设 计 者: 疾风之狼
'========================================================================================
' 郑州文达岭峰网络科技有限公司.
'========================================================================================
' Copyright (C) 2001-2020 岭峰网. All rights reserved.
' 网    站: http://www.lfmesss.com
' 电子邮件: support@lfmesss.com
' 联系ＱＱ: 85112407
'========================================================================================

IF flg = "man" or flg = "man_az" or flg = "del" Then
	IF Session("LingFengNet_MS_admin") <> "ok" Then
		Response.Redirect "default"&Get_Suffix()
		Response.End
	ElseIF Session("LingFengNet_MS_admin") = "ok" and ( Session("LingFengNet_MS_admin_flg") = "2" or Session("LingFengNet_MS_admin_flg") = "1" ) Then 
		Response.Redirect "admin_stlist"&Get_Suffix()
		Response.End
	End IF	
End IF

IF flg = "man_aud" Then
	IF Session("LingFengNet_MS_admin") <> "ok" or Session("LingFengNet_MS_admin_flg") = "1" or Session("LingFengNet_MS_admin_flg") = "" Then
		Response.Redirect "default"&Get_Suffix()
		Response.End
	End IF
End IF

IF flg = "man_ts" Then
	IF Session("LingFengNet_MS_admin") <> "ok" Then
		Response.Redirect "default"&Get_Suffix()
		Response.End
	End IF
End IF

IF LingFengNet_MS_setup = "no" and flg <> "man_az" Then
	IF Session("fso_check") = "ok" Then
		Session.Abandon
		Response.Write "<meta http-equiv=Content-Type content=text/html;charset="& LingFengNet_MS_language_meta_mes_1 &"><script>alert('"& LingFengNet_MS_language_Warning_purview_default_2 &"')</script>"
		Response.End
	Else
		Session("LingFengNet_MS_admin") = "ok"
		Session("LingFengNet_MS_admin_flg") = "3"
		Response.Write "<meta http-equiv=Content-Type content=text/html;charset="& LingFengNet_MS_language_meta_mes_1 &"><script>alert('"& LingFengNet_MS_language_Warning_purview_default_1 &"');this.location.href=""admin_mansuper"&Get_Suffix()&"""</script>"
	End IF
End IF
%>