#LOCAL("CurrentUserLocale", 1)#LOOP(#GREP(#Locales, "LocaleID", #Session.User.LocaleID), 1, 1)#SET("CurrentUserLocale", #_)#ENDLOOP #LOCAL("RequestProtocolAndServer", "")#IF(#INPUT.SERVER_PORT_SECURE)#SET("RequestProtocolAndServer", "https://".#INPUT.HTTP_HOST)#ENDIF #IF(#System.JSDebugLevel == 0 AND NOT #DEFINED(#INPUT.Debug)) #ELSIF(#System.JSDebugLevel == 1 OR #INPUT.Debug == 1) #ENDIF #ENDLOCAL