Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13 rsolanki 1
<%
2
'=====================================================
3
'					CONFIG FILE
4
'=====================================================
5
%>
6
<%
7
' -- VARIABLE DEFINITION ------------------------------
8
Dim OraSession, OraDatabase		' DB connection
9
Dim QUERIES_PATH
10
Dim SCRIPT_NAME
15 rsolanki 11
Dim TNS_NAME, DB_AUTHENTICATION
13 rsolanki 12
Dim APP_ROOT
17 rsolanki 13
Dim rootPath
14
Dim scriptName
4807 dpurdie 15
Dim SMTP_HOST
5355 dpurdie 16
Dim ACCESS_MANAGER_URL
17
Dim RELEASE_MANAGER_URL
18
Dim strRelativePath             ' Rel Path from script to URL
19
Dim managerSuiteBase            ' Url to the base of the Manager Suite
20
Dim FavIcon                     ' Favorite Icon
21
Dim RmDebug                     ' Debug Display
22
 
13 rsolanki 23
' -----------------------------------------------------
24
%>
25
<%
26
' -- DATABASE CONNECTIONS -----------------------------
27
'Set OraSession = CreateObject("OracleInProcServer.XOraSession")
31 ghuddy 28
'OraSession.CreateDatabasePool 1,10,100, Application("TNS_NAME"), Application("DEPLOYMENT_MANAGER_LOGIN"), 0
13 rsolanki 29
'Set OraDatabase = OraSession.GetDatabaseFromPool(10)
30
 
31
Set OraSession = CreateObject("OracleInProcServer.XOraSession")
32
Set OraDatabase = OraSession.OpenDatabase( Application("TNS_NAME"), Application("DEPLOYMENT_MANAGER_LOGIN"), Cint(0))
33
' -----------------------------------------------------
34
%>
35
<%
5355 dpurdie 36
' -- Basic Functions ----------------------------------
37
' --------------------------------------------------------------------------------------
38
' Determine if a variable or Const exists and is not empty
39
'   Use to check if a vbscript variable has been declared and contains a non-empty value
40
Function isDefined( var)
41
    If (not IsEmpty(Eval(var))) AND Eval(var & " <> """"") Then
42
        isDefined = TRUE
43
    Else
44
        isDefined = FALSE
45
   End If
46
End Function
47
 
4807 dpurdie 48
'--------------------------------------------------------------------------------------
49
'Returns the server of the package archive
50
Function Get_Mail_Server()
51
   Dim sqry: sqry = "SELECT * FROM RELEASE_MANAGER.BUILD_SERVICE_CONFIG WHERE SERVICE='MAIL SERVER'"
52
   Dim rsTemp
53
   Set rsTemp = OraDatabase.DbCreateDynaset( sqry , cint(0) )
54
   Get_Mail_Server = rsTemp("config")
55
   rsTemp.Close()
56
   Set rsTemp = Nothing
57
End Function
58
 
5355 dpurdie 59
'--------------------------------------------------------------------------------------
60
'Return a relative path to the server base. Used for relative pathing to 'images'
61
'Assumes server base is two directores below the web serve root (ManageSuite/Release_Manager)
62
Function GetPathToBase()
63
    Dim url,depth,rv,ii
64
    url = request.servervariables("URL")
65
    depth =  len(url) - len(replace(url, "/", ""))
66
    rv = ""
67
    For ii = 4 To depth
68
        rv = rv & "../"
69
    Next
70
    GetPathToBase = rv
71
End Function
72
 
73
' Return a URL to the base of the Manager suite
74
' Assumes this is one directory down from the web server root
75
Function GetManagerSuiteBase
76
    Dim data
77
    data = Split(request.servervariables("URL"),"/")
78
    GetManagerSuiteBase =  "/" & data(1)
79
End Function
80
 
13 rsolanki 81
' -- CONFIGURATIONS -----------------------------------
82
Const APPLICATION_ID = 1  			' Stored in Deployment Manager, [APPLICATIONS] table
83
APP_ROOT = Server.MapPath(".")
31 ghuddy 84
TNS_NAME = Application("TNS_NAME") '"RELEASEM"
15 rsolanki 85
DB_AUTHENTICATION = Application("DEPLOYMENT_MANAGER_LOGIN") '"release_manager_devl/release_manager_devl"								' DEVL schema
13 rsolanki 86
QUERIES_PATH = APP_ROOT &"\queries"
17 rsolanki 87
scriptName = Mid(Request.ServerVariables("SCRIPT_NAME"), InStrRev(Request.ServerVariables("SCRIPT_NAME"), "/") + 1 )
88
rootPath = Left( Server.MapPath( scriptName ), InStrRev(Server.MapPath( scriptName ), "\") )
4807 dpurdie 89
SMTP_HOST = Get_Mail_Server()
3947 dpurdie 90
Const ADMIN_EMAIL = "VixIT@vixtechnology.com"
5337 dpurdie 91
Const JIRA_URL    = "http://cloudajir02.vix.local:8080"
4256 dpurdie 92
Const JIRA_CREDENTAILS = "ReleaseManager:r3l3@se4J!r@"
13 rsolanki 93
Const enumDB_PERMISSION_TYPE_VISIBLE = 1		' Stored in Access Manager, [Permission_Types] table
94
Const enumDB_PERMISSION_TYPE_ACTIVE = 2			' Stored in Access Manager, [Permission_Types] table
95
Const enumRELEASES_DAYS_BACK_IN_TIME = 7		' Number of days back in time searching for released products
5355 dpurdie 96
 
97
strRelativePath = GetPathToBase()
98
managerSuiteBase = GetManagerSuiteBase()
99
ACCESS_MANAGER_URL      = ManagerSuiteBase & "/Access_Manager"
100
RELEASE_MANAGER_URL     = ManagerSuiteBase & "/Release_Manager"
101
FavIcon = strRelativePath & "icons/DM" & Application("FavIconSuffix") & ".png"
102
 
13 rsolanki 103
' -----------------------------------------------------
104
%>
105
<%
106
' -- VARIABLE INITIALISATION --------------------------
107
SCRIPT_NAME = Mid(Request.ServerVariables("SCRIPT_NAME"), InStrRev(Request.ServerVariables("SCRIPT_NAME"), "/") + 1 )
108
Const enumDB_DIFF_NO_CHANGE = 0
109
Const enumDB_DIFF_UPDATED = 2
110
Const enumDB_DIFF_NEW = 1
111
Const enumDB_DIFF_REMOVED = -1
29 jtweddle 112
Const enumDB_FILTER_COMMENTS = "Filter Comments"
113
Const enumDB_FILTER_ISSUES = "Filter Issues"
13 rsolanki 114
Const enumPRODUCTS_BASE_VIEW_ID = 5					' Release Manager products base view id
23 rsolanki 115
Const enumAUTOPRODUCTS_BASE_VIEW_ID = 2602					' Release Manager auto_products base view id
13 rsolanki 116
' -----------------------------------------------------
117
%>
118
<%
119
' -- CONSTANTS ----------------------------------------
120
Const enumDB_DEFAULT_EMPTY = -1
121
Const enumISSUES_STATE_FIXED = 1
122
Const enumCLEARQUEST_DEVI_ID = 4
23 rsolanki 123
Const enumJIRA_ID = 6
13 rsolanki 124
Const enumISSUES_STATE_IMPORTED = 0
125
Const enumDB_YES = "Y"
126
Const enumDB_NO = "N"
127
Const enumDEFAULT = "default"
128
Const enumCOOKIE_NAME = "DeploymentManager"
129
Const enumSEPARATOR_LABEL = "SEPARATOR_LABLE"
130
Const enumDB_ALL_DATA = 0
131
Const SPACER = "<img src='images/spacer.gif' width='1' height='1'>"
132
Const enumMSSQL_ERROR = "<img src='icons/i_no_db_connection.gif' width='16' height='17' hspace='2' border='0' align='absmiddle' title='3rd party database is off-line'><SPAN class='body_txtr'>Information not currently available.</SPAN>"
133
Const enumSESSION_COPY_TYPE = "COPY_TYPE"
134
Const enumSESSION_COPY_ITEMS = "COPY_ITEMS"
135
Const enumSESSION_COPY_FROM = "COPY_FROM"
136
Const enumLOADING = "Loading..."
4807 dpurdie 137
Const enum_MSG_ERROR    = "msg_error.asp"
138
Const enum_RELMGR_ERRDESCRIPTION = "RELMGR_ERRDESCRIPTION"		' session variable where long error message is stored before display to user
13 rsolanki 139
' -- ACTION TRAIL -------------------------------------
140
Const enumAT_EVENT_COMMENT 	= 0
141
Const enumAT_EVENT_ADDED 	= 1
142
Const enumAT_EVENT_MODIFIED = 2
143
Const enumAT_EVENT_REMOVED 	= 3
144
' -----------------------------------------------------
145
%>
146
<%
147
' -- OO4O ---------------------------------------------
148
const ORATYPE_VARCHAR2 = 1
149
const ORATYPE_NUMBER = 2
150
const ORATYPE_SINT = 3
151
const ORATYPE_FLOAT = 4
152
const ORATYPE_STRING = 5
153
const ORATYPE_VARCHAR = 9
154
const ORATYPE_DATE = 12
155
const ORATYPE_UINT = 68
156
const ORATYPE_RAW = 95
157
const ORATYPE_CHAR = 96
158
const ORATYPE_CHARZ = 97
159
const ORATYPE_MLSLABEL = 105
160
const ORATYPE_OBJECT = 108
161
const ORATYPE_REF = 110
162
const ORATYPE_CLOB = 112
163
const ORATYPE_BLOB = 113
164
const ORATYPE_BFILE = 114
165
const ORATYPE_VARRAY = 247
166
const ORATYPE_TABLE = 248
167
const ORATYPE_CURSOR = 102
168
 
4807 dpurdie 169
const ORALOB_ONE_PIECE = 0 
170
const ORALOB_FIRST_PIECE = 1 
171
const ORALOB_NEXT_PIECE = 2 
172
const ORALOB_LAST_PIECE = 3
13 rsolanki 173
 
4807 dpurdie 174
Const ORALOB_SUCCESS = 0
175
Const ORALOB_NEED_DATA = 99
176
Const ORALOB_NODATA = 100
177
 
31 ghuddy 178
const ORAPARM_INPUT=1
179
const ORAPARM_OUTPUT=2
13 rsolanki 180
const ORAPARM_BOTH=3
181
 
182
const ORADYN_DEFAULT=&H0&
183
' -----------------------------------------------------
184
%>
185
<%
186
' -- ERROR MESSAGES -----------------------------------
187
' -----------------------------------------------------
188
%>
189
<%
190
' -- ICONS --------------------------------------------
191
' -- ICONS SMALL --------------------------------------
192
' -----------------------------------------------------
193
' -- Other Configuration -----------------------------
194
Const enum_RELMGR_COOKIE_DOMAIN = "RELMGR_USER_COOKIES"
195
Const COOKIE_HIDE_FILES_FILTER = "COOKIE_HIDE_FILES_FILTER"
196
Const COOKIE_HIDE_DEPS_FILTER = "COOKIE_HIDE_DEPS_FILTER"
197
Const COOKIE_HIDE_DIFF_FILTER = "COOKIE_HIDE_DIFF_FILTER"
198
Const COOKIE_RELMGR_SHOW_VIEW = "COOKIE_RELMGR_SHOW_VIEW"
199
Const COOKIE_RELEASE_MANAGER_MEMORY = "RELEASE_MANAGER_MEMORY"
200
Const COOKIE_PATCH_OPTIONS_FILTER = "COOKIE_PATCH_OPTIONS_FILTER"
201
%>