如題,假如你對fs3.1安全系數還是不夠放心,那么請動手跟我改吧!適用3.1sp1/sp2
在admin/CheckLogin.asp文件中增加如下代碼:
'增加后臺治理認證
if request("AdminLoginCode") <> SiteManageCode then
Response.Write("<script>alert(""錯誤:/n治理認證有誤"&Copyright&""");location.href=""Login.asp"";</script>")
Response.End
end if
我是在46行左右加上的
在inc/const.asp中增加如下紅的地方!
'==========================用戶自定義參數=====================================
Const VariableStr = "JustForTest........NoUse!"
'===========================增加后臺治理認證碼=================================
Const EnableSiteManageCode = true '是否啟用后臺治理認證碼 是: True 否: False
Const SiteManageCode = "fs3.1" '后臺治理認證碼
在admin/login,asp中找個合適的地方增加如下代碼:
<%if EnableSiteManageCode = True Then%>
<input name="AdminLoginCode" type="password" id="AdminLoginCode" tabindex="4" size="5">
<%end if%>
6月11日更新:上次遺漏了一個問題,一直沒有時間過來更正,今天來給大家更正下!
在admin/CheckLogin.asp文件中增加如下代碼:
'增加后臺治理認證
if request("AdminLoginCode") <> SiteManageCode then
Response.Write("<script>alert(""錯誤:/n治理認證有誤"&Copyright&""");location.href=""Login.asp"";</script>")
Response.End
end if
我是在46行左右加上的
改成:
在admin/CheckLogin.asp文件中增加如下代碼:
'增加后臺治理認證
if EnableSiteManageCode = True Then
if request("AdminLoginCode") <> SiteManageCode then
Response.Write("<script>alert(""錯誤:/n治理認證有誤"&Copyright&""");location.href=""Login.asp"";</script>")
Response.End
end if
end if
我是在46行左右加上的
點擊下載附件
新聞熱點
疑難解答