Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Redundent code in admin_config_NT_features.asp ?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

David K
Junior Member

494 Posts

Posted - 25 November 2002 :  05:58:14  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
This file has an error correction rutine that apperantly was copied from admin_config_features.asp:
if Request.Form("Method_Type") = "Write_Configuration" then
Err_Msg = ""
if Request.Form("strIMGInPosts") = "1" and Request.Form("strAllowForumCode") = "0" then
Err_Msg = Err_Msg & "<li>Forum Code Must be Enabled in order to Enable Images</li>"
end if
if (Request.Form("strHotTopic") = "1" and strHotTopic = "1") or (Request.Form("strHotTopic") = "1" and strHotTopic = "0") then
if Request.Form("intHotTopicNum") = "" then
Err_Msg = Err_Msg & "<li>You Must Enter a Hot Topic Number</li>"
end if
if left(Request.Form("intHotTopicNum"), 1) = "-" then
Err_Msg = Err_Msg & "<li>You Must Enter a positive Hot Topic Number</li>"
end if
if left(Request.Form("intHotTopicNum"), 1) = "+" then
Err_Msg = Err_Msg & "<li>You Must Enter a positive Hot Topic Number without the <b>+</b></li>"
end if
end if

Why is this code there, the only settings there are boolean, so there's no need for an error check, it's just extra code, isn't it?
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07