Subversion Repositories DevTools

Rev

Rev 6265 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6265 Rev 6658
Line 10... Line 10...
10
Dim SCRIPT_NAME
10
Dim SCRIPT_NAME
11
Dim APP_ROOT
11
Dim APP_ROOT
12
Dim strRelativePath             ' Rel Path from script to URL
12
Dim strRelativePath             ' Rel Path from script to URL
13
Dim FavIcon                     ' Favorite Icon
13
Dim FavIcon                     ' Favorite Icon
14
Dim RmDebug                     ' Debug Display
14
Dim RmDebug                     ' Debug Display
-
 
15
Dim managerSuiteBase
-
 
16
Dim ACCESS_MANAGER_URL
-
 
17
Dim DEPLOYMENT_MANAGER_URL
-
 
18
Dim PRODUCTION_MANAGER_URL
-
 
19
Dim RELEASE_MANAGER_URL
15
 
20
 
16
' -- Basic Functions ----------------------------------
21
' -- Basic Functions ----------------------------------
17
' --------------------------------------------------------------------------------------
22
' --------------------------------------------------------------------------------------
18
' Determine if a variable or Const exists and is not empty
23
' Determine if a variable or Const exists and is not empty
19
'   Use to check if a vbscript variable has been declared and contains a non-empty value
24
'   Use to check if a vbscript variable has been declared and contains a non-empty value
Line 36... Line 41...
36
    For ii = 4 To depth
41
    For ii = 4 To depth
37
        rv = rv & "../"
42
        rv = rv & "../"
38
    Next
43
    Next
39
    GetPathToBase = rv
44
    GetPathToBase = rv
40
End Function
45
End Function
-
 
46
' --------------------------------------------------------------------------------------
-
 
47
' Return a URL to the base of the Manager suite
-
 
48
' Assumes this is one directory down from the web server root
-
 
49
Function GetManagerSuiteBase
-
 
50
    Dim data
-
 
51
    data = Split(request.servervariables("URL"),"/")
-
 
52
    GetManagerSuiteBase =  "/" & data(1)
-
 
53
End Function
41
 
54
 
42
'-----------------------------------------------------------------------------------------------------------------------------
55
'-----------------------------------------------------------------------------------------------------------------------------
43
'   Destroy_All_Objects
56
'   Destroy_All_Objects
44
'   Should be used by ALL pages and error handling code in order to reduce memory and handle leaks
57
'   Should be used by ALL pages and error handling code in order to reduce memory and handle leaks
45
'   May be used directly or via _footer.asp or globals_destructor.asp
58
'   May be used directly or via _footer.asp or globals_destructor.asp
Line 90... Line 103...
90
 
103
 
91
' -- VARIABLE INITIALISATION --------------------------
104
' -- VARIABLE INITIALISATION --------------------------
92
SCRIPT_NAME = Mid(Request.ServerVariables("SCRIPT_NAME"), InStrRev(Request.ServerVariables("SCRIPT_NAME"), "/") + 1 )
105
SCRIPT_NAME = Mid(Request.ServerVariables("SCRIPT_NAME"), InStrRev(Request.ServerVariables("SCRIPT_NAME"), "/") + 1 )
93
strRelativePath = GetPathToBase()
106
strRelativePath = GetPathToBase()
94
FavIcon = strRelativePath & "favicons/AM" & Application("FavIconSuffix") & ".png"
107
FavIcon = strRelativePath & "favicons/AM" & Application("FavIconSuffix") & ".png"
-
 
108
managerSuiteBase = GetManagerSuiteBase()
-
 
109
ACCESS_MANAGER_URL      = ManagerSuiteBase & "/Access_Manager"
-
 
110
DEPLOYMENT_MANAGER_URL  = ManagerSuiteBase & "/Deployment_Manager"
-
 
111
PRODUCTION_MANAGER_URL  = ManagerSuiteBase & "/Production_Manager"
-
 
112
RELEASE_MANAGER_URL     = ManagerSuiteBase & "/Release_Manager"
95
 
113
 
96
' -- CONSTANTS ----------------------------------------
114
' -- CONSTANTS ----------------------------------------
97
Const enumDB_DEFAULT_EMPTY = -1
115
Const enumDB_DEFAULT_EMPTY = -1
98
Const enumDB_YES = "Y"
116
Const enumDB_YES = "Y"
99
Const enumDB_NO = "N"
117
Const enumDB_NO = "N"