While messing around with methods to integrate Snitz into an existing website, I started looking at the variable strCookieURL. This variable is assigned around line 128 in Config.asp and then used to attach a path to the Application variables.strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/"))
strVersion = Application(strCookieURL & "STRVERSION")
strForumTitle = Application(strCookieURL & "STRFORUMTITLE")
strCopyright = Application(strCookieURL & "STRCOPYRIGHT")
strTitleImage = Application(strCookieURL & "STRTITLEIMAGE")
etc.....
My question is - why is it done this way? The only purpose I can determine is to give some versatility in the directory the forum is intalled. It is because of the way strCookieURL is assigned that it is difficult to use, for example, inc_header.asp in a page outside the forum's directory.
In experimenting, I tried assigning a fixed value to strCookieURL - in this case, strCookieURL = "/forum/". So far, it seems to work.
Has anyone else messed with this variable in such a way? Can anyone see a downside?