Subversion Repositories DevTools

Rev

Rev 5514 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5514 Rev 5962
Line 74... Line 74...
74
Function GetManagerSuiteBase
74
Function GetManagerSuiteBase
75
    Dim data
75
    Dim data
76
    data = Split(request.servervariables("URL"),"/")
76
    data = Split(request.servervariables("URL"),"/")
77
    GetManagerSuiteBase =  "/" & data(1)
77
    GetManagerSuiteBase =  "/" & data(1)
78
End Function
78
End Function
-
 
79
'-----------------------------------------------------------------------------------------------------------------------------
-
 
80
'   Destroy_All_Objects
-
 
81
'   Should be used by ALL pages and error handling code in order to reduce memory and handle leaks
-
 
82
'   May be used directly or via _footer.asp or globals_destructor.asp
-
 
83
Sub Destroy_All_Objects
-
 
84
    On Error Resume Next
-
 
85
    '   Some global objects
-
 
86
    Set objAccessControl = Nothing
-
 
87
    Set objPMod = Nothing
-
 
88
    Set objEH = Nothing
-
 
89
    Set oEnumStateTypeNames = Nothing
-
 
90
    Set objTabControl = Nothing
-
 
91
    Set objCrumbs = Nothing
-
 
92
    Set objBtnControl = Nothing
-
 
93
    Set objFormCollector = Nothing
-
 
94
 
-
 
95
    '   Global package info
-
 
96
    Set pkgInfoHash = Nothing
-
 
97
 
-
 
98
    '   Delete ALL Oracle bound variables
-
 
99
    '   Note: Bound Variables that remain at the end of a Page Process will cause an Oracle Session leak
-
 
100
    If TypeName(OraDatabase) = "IOraDatabase" Then
-
 
101
        While OraDatabase.Parameters.Count > 0
-
 
102
            OraDatabase.Parameters.Remove(0)
-
 
103
        Wend
-
 
104
    End  If
-
 
105
 
-
 
106
    '   Some commonly used database objects
-
 
107
    rsTemp.Close
-
 
108
    Set rsTemp = Nothing
-
 
109
 
-
 
110
    rsRep.Close
-
 
111
    Set rsRep = Nothing
-
 
112
 
-
 
113
    rsQry.Close
-
 
114
    Set rsQry = Nothing
-
 
115
 
-
 
116
    '   Database objects
-
 
117
    set OraDatabase = Nothing
-
 
118
    set OraSession = Nothing
-
 
119
End Sub
79
 
120
 
80
' -- CONFIGURATIONS -----------------------------------
121
' -- CONFIGURATIONS -----------------------------------
81
Const DOC_FOLDER = "doc"
122
Const DOC_FOLDER = "doc"
82
Const TEMP_FOLDER = "temp"
123
Const TEMP_FOLDER = "temp"
83
Const APPLICATION_ID = 10  			' Stored in Deployment Manager, [APPLICATIONS] table
124
Const APPLICATION_ID = 10  			' Stored in Deployment Manager, [APPLICATIONS] table
Line 164... Line 205...
164
const ORATYPE_BFILE = 114
205
const ORATYPE_BFILE = 114
165
const ORATYPE_VARRAY = 247
206
const ORATYPE_VARRAY = 247
166
const ORATYPE_TABLE = 248
207
const ORATYPE_TABLE = 248
167
const ORATYPE_CURSOR = 102
208
const ORATYPE_CURSOR = 102
168
 
209
 
-
 
210
const ORALOB_ONE_PIECE = 0 
-
 
211
const ORALOB_FIRST_PIECE = 1 
-
 
212
const ORALOB_NEXT_PIECE = 2 
-
 
213
const ORALOB_LAST_PIECE = 3
-
 
214
 
-
 
215
Const ORALOB_SUCCESS = 0
-
 
216
Const ORALOB_NEED_DATA = 99
-
 
217
Const ORALOB_NODATA = 100
169
 
218
 
170
const ORAPARM_INPUT=1
219
const ORAPARM_INPUT=1
171
const ORAPARM_OUTPUT=2
220
const ORAPARM_OUTPUT=2
172
const ORAPARM_BOTH=3
221
const ORAPARM_BOTH=3
173
 
222