<% nof_rootDir="../" nof_scriptDir="scripts" nof_debug=true nof_sitePath = GetSitePath(nof_rootDir) function GetSitePath(RootDir) Dim relPath relPath = split(RootDir, "/") forwardSteps = UBound(relPath) - 1 if forwardSteps = 0 and relPath(0) = "." then forwardSteps = -1 GetSitePath = Server.MapPath(".") for idx=0 to forwardSteps GetSitePath = Left(GetSitePath, inStrRev(GetSitePath, "\") - 1) next GetSitePath = GetSitePath & "\" end function %> <% sub IncludeLib(ByVal lib, ByVal sitePath, ByVal scriptDir) dim fso, f, buf, filePath Set fso = Server.CreateObject("Scripting.FileSystemObject") filePath = sitePath & scriptDir & "\" & lib if fso.FileExists(filePath) then set f = fso.OpenTextFile(filePath, 1, false, -2) buf = f.ReadAll f.close() set f = nothing Dim regEx Set regEx = New RegExp regEx.Pattern = "^\s*<" & chr(37) & "\s*" regEx.IgnoreCase = True regEx.Global = True buf = regEx.Replace(buf,"") regEx.Pattern = "\s*" & chr(37) & ">\s*$" regEx.IgnoreCase = True regEx.Global = True buf = regEx.Replace(buf, "") set regEx = nothing ExecuteGlobal buf else if nof_debug then Response.Write "Could not include the file `" & filePath & "`." else Response.Write "

An error occured. Please contact the site administrator.

" Response.Write "

Error code: 103

" end if Response.End end if set fso = nothing end sub %> <% call IncludeLib("faq_XmlLib.asp", nof_sitePath, nof_scriptDir) %> <% call IncludeLib("faq_details.asp", nof_sitePath, nof_scriptDir) %> <% call IncludeLib("faq_search.asp", nof_sitePath, nof_scriptDir) %> FAQ

FAQ

<% set nof_locale = faqLocaleToDictionary(nof_sitePath & nof_scriptDir, "FAQ_en.properties") set search_1190583693359 = new FaqSearch search_1190583693359.mComponentId = "1190583693359" search_1190583693359.mComponentName = "search" search_1190583693359.mXmlPropFile = "FAQ1188200825093.xml.asp" if search_1190583693359.Initialize(nof_sitePath, nof_scriptDir, nof_rootDir, nof_debug) then call search_1190583693359.ShowSearchForm() end if set search_1190583693359 = nothing %>
<% set nof_locale = faqLocaleToDictionary(nof_sitePath & nof_scriptDir, "FAQ_en.properties") set details_1190541760531 = new FaqDetails details_1190541760531.mComponentId = "1190541760531" details_1190541760531.mComponentName = "details" details_1190541760531.mXmlPropFile = "FAQ1188200825093.xml.asp" if details_1190541760531.Initialize(nof_sitePath, nof_scriptDir, nof_rootDir, nof_debug) then call details_1190541760531.ManageDetails() end if set details_1190541760531 = nothing %>

Return to Home Page

New Member Sign Up

Log In

Admin

BuiltWithNOF
[Home] [About] [Legal] [FAQ] [Services] [Properties] [Newsletter] [Contact Us]