Subversion Repositories DevTools

Rev

Rev 7029 | Rev 7063 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%
2
'=====================================================
131 ghuddy 3
'               CONFIG FILE
119 ghuddy 4
'=====================================================
5
%>
6
<!--#include file="base_conf.asp"-->
7
 
8
<%
9
' -- Variable Definition ------------------------------
131 ghuddy 10
Dim OraSession, OraDatabase      ' DB connection
119 ghuddy 11
Dim scriptName
12
Dim rootPath
5251 dpurdie 13
Dim DocRepositiryLink, DocRepositiryLinkOld, DocBrowseLink
119 ghuddy 14
Dim APP_ROOT, QUERIES_PATH
177 brianf 15
Dim archive_server
6070 dpurdie 16
Dim lxr_server
17
Dim LXR_URL
177 brianf 18
Dim dpkg_archiveURL
19
Dim HTTP_PKG_ARCHIVE
1326 dpurdie 20
Dim release_archiveURL
21
Dim ACCESS_MANAGER_URL
4028 dpurdie 22
Dim DEPLOYMENT_MANAGER_URL
5357 dpurdie 23
Dim PRODUCTION_MANAGER_URL
24
Dim RELEASE_MANAGER_URL
2365 dpurdie 25
Dim strRelativePath             ' Rel Path from script to URL
5357 dpurdie 26
Dim managerSuiteBase            ' Url to the base of the Manager Suite
6688 dpurdie 27
Dim siteRootUrl                 ' Full url to the base of the site
3959 dpurdie 28
Dim MAIL_SERVER
5168 dpurdie 29
Dim FAULT_EMAIL_LIST
5357 dpurdie 30
Dim FavIcon                     ' Favorite Icon
5975 dpurdie 31
Dim ServiceConfig               ' All service config
6181 dpurdie 32
Dim ForcePageLogon              ' Page Protection Mode
7022 dpurdie 33
Dim VixVerNum : VixVerNum = 22  ' Bump to force cache reload of many resources
1326 dpurdie 34
 
119 ghuddy 35
' -- Variable Initialisation --------------------------
36
'Set OraSession = CreateObject("OracleInProcServer.XOraSession")
37
'OraSession.CreateDatabasePool 1,2,1, TNS_NAME, DB_AUTHENTICATION, 0
38
'Set OraDatabase = OraSession.GetDatabaseFromPool(5000)
39
 
40
'Set OraSession = Application("ORA_SESSION")
131 ghuddy 41
'Set OraDatabase =    OraSession.GetDatabaseFromPool(5000)
119 ghuddy 42
Set OraSession = CreateObject("OracleInProcServer.XOraSession")
43
Set OraDatabase = OraSession.OpenDatabase( TNS_NAME, DB_AUTHENTICATION, Cint(0))
5975 dpurdie 44
Set ServiceConfig = CreateObject("Scripting.Dictionary")
45
GetServiceConfig()
119 ghuddy 46
 
177 brianf 47
'--------------------------------------------------------------------------------------
5975 dpurdie 48
'Populate ServiceConfig
49
Sub GetServiceConfig()
50
   Dim sqry: sqry = "SELECT * FROM BUILD_SERVICE_CONFIG WHERE service NOT IN ('MUTEX','WEB SERVER')"
51
   Dim rsTemp : Set rsTemp = OraDatabase.DbCreateDynaset( sqry , cint(0) )
119 ghuddy 52
 
5975 dpurdie 53
   Do While(rsTemp.EOF=FALSE)
54
        Dim name : name = rsTemp(0)
55
        Dim val : val  = rsTemp(1)
56
        ServiceConfig.Add name, val
57
        rsTemp.MoveNext
58
   Loop
3959 dpurdie 59
 
5168 dpurdie 60
   rsTemp.Close()
61
   Set rsTemp = Nothing
62
 
5975 dpurdie 63
End Sub
64
 
5168 dpurdie 65
'--------------------------------------------------------------------------------------
2365 dpurdie 66
'Return a relative path to the server base. Used for relative pathing to 'images'
5357 dpurdie 67
'Assumes server base is two directores below the web serve root (ManageSuite/Release_Manager)
2365 dpurdie 68
Function GetPathToBase()
69
    Dim url,depth,rv,ii
70
    url = request.servervariables("URL")
71
    depth =  len(url) - len(replace(url, "/", ""))
72
    rv = ""
5357 dpurdie 73
    For ii = 4 To depth
2365 dpurdie 74
        rv = rv & "../"
75
    Next
76
    GetPathToBase = rv
77
End Function
78
 
5357 dpurdie 79
' Return a URL to the base of the Manager suite
80
' Assumes this is one directory down from the web server root
81
Function GetManagerSuiteBase
82
    Dim data
83
    data = Split(request.servervariables("URL"),"/")
84
    GetManagerSuiteBase =  "/" & data(1)
85
End Function
86
 
2365 dpurdie 87
'--------------------------------------------------------------------------------------
6688 dpurdie 88
Function getSiteRootUrl()
89
    dim siteRootUrl, protocol, hostname, port
90
 
91
    if Request.ServerVariables("HTTPS") = "off" then
92
        protocol = "http"
93
    else
94
        protocol = "https"
95
    end if
96
    siteRootUrl = protocol & "://"
97
 
98
    hostname = Request.ServerVariables("HTTP_HOST")
99
    siteRootUrl = siteRootUrl & hostname        
100
 
101
    getSiteRootUrl = siteRootUrl
102
End Function
103
 
104
'--------------------------------------------------------------------------------------
5143 dpurdie 105
' Determine if a variable or Const exists and is not empty
106
'   Use to check if a vbscript variable has been declared and contains a non-empty value
107
Function isDefined( var)
108
    If (not IsEmpty(Eval(var))) AND Eval(var & " <> """"") Then
109
        isDefined = TRUE
110
    Else
111
        isDefined = FALSE
112
   End If
113
End Function
2365 dpurdie 114
 
6176 dpurdie 115
'--------------------------------------------------------------------------------------
6183 dpurdie 116
'   Get an application varibale as a Boolean with defult value
117
Function bGetApplication(name, defvalue)
118
    If IsEmpty (Application(name)) Then
119
        bGetApplication = CBool(defvalue)
120
    Else
121
        bGetApplication = CBool(Application(name))
122
   End If
123
End Function
124
 
125
'--------------------------------------------------------------------------------------
6176 dpurdie 126
' Debug Support function
127
'   Add string to the debug string
128
Sub AddRmDebug(str)
129
    If Len(RmDebug) > 0  Then RmDebug = RmDebug + ":"
130
    RmDebug = RmDebug + Cstr(str)
131
End Sub
132
 
5957 dpurdie 133
'-----------------------------------------------------------------------------------------------------------------------------
134
'   Destroy_All_Objects
135
'   Should be used by ALL pages and error handling code in order to reduce memory and handle leaks
136
'   Needs to kept in sync with common/destructor.asp
137
Sub Destroy_All_Objects
138
    On Error Resume Next
139
 
140
    '   Some global objects
141
    Set objAccessControl = Nothing
142
    Set objPMod = Nothing
143
    Set objEH = Nothing
144
    Set objTabControl = Nothing
5975 dpurdie 145
    Set ServiceConfig = Nothing
5957 dpurdie 146
 
147
    '   Global package info
148
    Set pkgInfoHash = Nothing
149
    Set releaseInfoHash = Nothing
150
 
151
    '   Delete ALL Oracle bound variables
152
    '   Note: Bound Variables that remain at the end of a Page Process will cause an Oracle Session leak
153
    If TypeName(OraDatabase) = "IOraDatabase" Then
154
        While OraDatabase.Parameters.Count > 0
155
            OraDatabase.Parameters.Remove(0)
156
        Wend
157
    End  If
158
 
159
    '   Some commonly used database objects
160
    rsTemp.Close
161
    Set rsTemp = Nothing
162
 
163
    rsRep.Close
164
    Set rsRep = Nothing
165
 
166
    rsQry.Close
167
    Set rsQry = Nothing
168
 
169
    '   Database objects
170
    set OraDatabase = Nothing
171
    set OraSession = Nothing
172
End Sub
5143 dpurdie 173
'--------------------------------------------------------------------------------------
5975 dpurdie 174
archive_server = ServiceConfig("ARCHIVE SERVER")
6070 dpurdie 175
lxr_server = ServiceConfig("LXR SERVER")
176
LXR_URL = "http://" & lxr_server & "/lxr/source"
5975 dpurdie 177
MAIL_SERVER = ServiceConfig("MAIL SERVER")
178
FAULT_EMAIL_LIST = ServiceConfig("FAULT EMAIL ADDRESS LIST")
2365 dpurdie 179
strRelativePath = GetPathToBase()
5357 dpurdie 180
managerSuiteBase = GetManagerSuiteBase()
6688 dpurdie 181
siteRootUrl = getSiteRootUrl()
119 ghuddy 182
APP_ROOT = Server.MapPath(".")
183
QUERIES_PATH = APP_ROOT &"\queries"
184
scriptName = Mid(Request.ServerVariables("SCRIPT_NAME"), InStrRev(Request.ServerVariables("SCRIPT_NAME"), "/") + 1 )
185
rootPath = Left( Server.MapPath( scriptName ), InStrRev(Server.MapPath( scriptName ), "\") )
186
DocRepositiryLink = DOC_REPOSITORY_URL & "docLinkTo.asp?docnum="
187
DocRepositiryLinkOld = DOC_REPOSITORY_URL & "docLinkTo.asp?old=1&fileid="
5251 dpurdie 188
DocBrowseLink = DOC_REPOSITORY_URL & "docbrowse.asp"
5369 dpurdie 189
FavIcon = strRelativePath & "favicons/RM" & Application("FavIconSuffix") & ".png"
6181 dpurdie 190
ForcePageLogon = TRUE
119 ghuddy 191
 
192
' -- Constants ----------------------------------------
5357 dpurdie 193
HTTP_PKG_ARCHIVE        = "http://" & archive_server
194
dpkg_archiveURL         = HTTP_PKG_ARCHIVE & "/dpkg_archive/"
195
release_archiveURL      = HTTP_PKG_ARCHIVE & "/releases/"
196
ACCESS_MANAGER_URL      = ManagerSuiteBase & "/Access_Manager"
197
DEPLOYMENT_MANAGER_URL  = ManagerSuiteBase & "/Deployment_Manager"
198
PRODUCTION_MANAGER_URL  = ManagerSuiteBase & "/Production_Manager"
199
RELEASE_MANAGER_URL     = ManagerSuiteBase & "/Release_Manager"
119 ghuddy 200
%>
201
<%
202
'-- ERROR MESSAGES ---------------------------
131 ghuddy 203
Const enum_MSG_ERROR    = "msg_error.asp"
204
Const enum_WMSG_ERROR   = "wmsg_error.asp"
205
 
206
Const enum_MSG_SELECTED_PACKAGES_NOW_OFFICIAL               = "msg_selected_packages_now_official.asp"
207
Const enum_MSG_PACKAGES_NOT_MADE_OFFICIAL                   = "msg_packages_not_made_official.asp"
208
Const enum_MSG_PACKAGE_NOT_MADE_OFFICIAL                    = "msg_package_not_made_official.asp"
209
Const enum_MSG_PACKAGE_NOT_MADE_OFFICIAL_2                  = "msg_package_not_made_official_2.asp"
210
Const enum_MSG_UNOFFICIAL_DEPENDENCIES                      = "msg_unofficial_dependencies.asp"
211
Const enum_MSG_PACKAGE_CHANGETYPE_INCOMPLETE                = "msg_change_type_incomplete.asp"
212
Const enum_MSG_PACKAGE_SBOMPRIORITY_INCOMPLETE              = "msg_sbom_priority_incomplete.asp"
213
Const enum_MSG_VERSION_EXISTS                               = "msg_version_exists.asp"
214
Const enum_DUPLICATE_RUNTIME_DEPENDENCY                     = "msg_duplicate_runtime_dependency.asp"
215
Const enum_DUPLICATE_BUILD_DEPENDENCIES_IGNORED             = "msg_duplicate_build_dependencies_ignored.asp"
216
Const enum_MSG_BROKEN_DEPENDENCIES_FOUND                    = "msg_broken_dependencies_found.asp"
217
Const enum_MSG_MISSING_DEPENDENCIES                         = "msg_missing_dependencies.asp"
218
Const enum_MSG_UNOFFICIAL_DEPENDENCIES_FOUND                = "msg_unofficial_dependencies_found.asp"
219
Const enum_MSG_RELEASE_IS_NOW_OFFICIAL                      = "msg_release_is_now_official.asp"
220
Const enum_MSG_NEW_UNOFFICIAL_RELEASE_CREATED               = "msg_new_unofficial_release_created.asp"
221
Const enum_MSG_DUPLICATE_AN                                 = "msg_duplicate_an.asp"
222
Const enum_MSG_DUPLICATE_UT                                 = "msg_duplicate_ut.asp"
223
Const enum_MSG_PACKAGE_INFORMATION_INCOMPLETE               = "msg_package_information_incomplete.asp"
1376 dpurdie 224
Const enum_MSG_VCS_INFORMATION_INCOMPLETE                   = "msg_vcs_information_incomplete.asp"
2365 dpurdie 225
Const enum_MSG_VCS_SUBVERSION_CC_MIX                        = "msg_vcs_subversion_cc_mix.asp"
1376 dpurdie 226
Const enum_MSG_VCS_SVN_NOT_PEGGED                           = "msg_vcs_svn_not_pegged.asp"
131 ghuddy 227
Const enum_MSG_AUTOBUILD_PACKAGE_IS_UNCONTROLLED            = "msg_autobuild_package_is_uncontrolled.asp"
129 ghuddy 228
Const enum_MSG_AUTOBUILD_PACKAGE_REQUIRES_BUILD_STD_AND_ENV = "msg_autobuild_package_requires_build_std_and_env.asp"
131 ghuddy 229
Const enum_MSG_UNIT_TESTS_NOT_SUPPLIED                      = "msg_unit_tests_not_supplied.asp"
230
Const enum_MSG_REASON_FOR_THIS_VERSION_NOT_SUPLIED          = "msg_reason_for_this_version_not_suplied.asp"
231
Const enum_MSG_CANNOT_REMOVE_PACKAGE                        = "msg_cannot_remove_package.asp"
232
Const enum_MSG_PACKAGE_IN_USE                               = "msg_package_in_use.asp"
233
Const enum_MSG_PROCESS_EXISTS                               = "msg_process_exists.asp"
234
Const enum_MSG_NO_LICENCES_EXIST                            = "msg_no_licences.asp"
235
Const enum_MSG_PACKAGE_VERSION_EXISTS                       = "msg_package_version_exists.asp"
236
Const enum_MSG_PACKAGE_WIP_EXISTS                           = "msg_package_wip_exists.asp"
237
Const enum_MSG_PACKAGE_VERSION_INVALID                      = "msg_package_version_invalid.asp"
238
Const enum_MSG_CANNOT_AUTO_GENERATE_COTS_PKG                = "msg_cannot_auto_generate_cots_pkg.asp"
151 ghuddy 239
Const enum_MSG_PACKAGE_WIP_EXISTS_BULK_RELEASE              = "msg_package_wip_exists_bulk_release.asp"
240
Const enum_MSG_PERMISSION_PROBLEMS_BULK_RELEASE             = "msg_permission_problems_bulk_release.asp"
5898 dpurdie 241
Const enum_MSG_UNBUILDABLE_PACKAGE                          = "msg_unbuildable_package.asp"
119 ghuddy 242
'---------------------------------------------
243
%>
244
<%
6615 dpurdie 245
'-- ICONS Package State ----------------------
131 ghuddy 246
Const enum_imgBlank               = "<img src='images/h_trsp_dot.gif' width='19' height='17' border='0'>"
183 brianf 247
Const enum_imgCritical            = "<img src='images/s_critical.gif' width='19' height='17' border='0' title='Not ready to be built.  Dependent packages, with a major or minor version, require building'>"
248
Const enum_imgDeprecated          = "<img src='images/bomb.gif' width='19' height='17' border='0' title='Deprecated'>"
249
Const enum_imgProductRejected     = "<img src='icons/i_product_rejected.gif' width='19' height='17' border='0' title='Rejected'>"
250
Const enum_imgDeprecatedDependent = "<img src='images/bomb_dependant.gif' width='19' height='17' border='0' title='Dependent deprecated'>"
251
Const enum_imgCReady              = "<img src='images/s_update_critical.gif' width='19' height='17' border='0' title='Ready to build, however at least one dependency has been superseded with a major or minor version'>"
252
Const enum_imgAR                  = "<img src='images/i_advisory_ripple.gif' width='19' height='17' border='0' title='Marked as advisory ripple'>"
253
Const enum_imgARD                 = "<img src='images/s_advisory_ripple_dependant.png' width='19' height='17' border='0' title='Dependent marked as advisory ripple'>"
254
Const enum_imgWarning             = "<img src='images/s_warning.gif' width='19' height='17' border='0' title='Not ready to be built.  Dependent packages, with a patch version, require building'>"
255
Const enum_imgWReady              = "<img src='images/s_update_warning.gif' width='19' height='17' border='0' title='Ready to build, however at least one dependency has been superseded with a patch version'>"
185 brianf 256
Const enum_imgBuilding            = "<img src='images/s_gear.gif' width='19' height='17' border='0' title='Work in progress'>"
183 brianf 257
Const enum_imgNotFound            = "<img src='images/s_not_found.gif' width='19' height='17' border='0' title='Not found'>"
131 ghuddy 258
Const enum_imgIgnoring            = "<img src='images/s_ignoring.gif' width='15' height='15' border='0' title='Latest version is ignored'>"
259
Const enum_imgPatchIgnoring       = "<img src='images/s_patch_ignoring.gif' width='19' height='17' border='0' title='Latest version is included in a patch'>"
260
Const enum_imgPatchAvailable      = "<img src='images/s_patch_available.gif' width='19' height='17' border='0' title='New patch is required'>"
261
Const enum_imgPatch               = "<img src='images/i_patch.gif' width='18' height='23' border='0' align='absmiddle' hspace='5' title='This is a patch'>"
262
Const enum_imgPatchObsolete       = "<img src='images/i_patch_obsolete.gif' width='18' height='23' border='0' align='absmiddle' hspace='5' title='Patch is obsolete'>"
183 brianf 263
Const enum_imgUser                = "<img src='images/i_user.gif' width='10' height='13' hspace='2' border='0' align='absmiddle' title='User'>"
6610 dpurdie 264
Const enum_imgUserLg              = "<img src='images/i_user.gif' hspace='3' border='0' align='absmiddle' title='User'>"
183 brianf 265
Const enum_imgGreenPin            = "<img src='images/i_green_pin.gif' width='19' height='17' border='0' title='Pegged to prevent it being ripple built'>"
7029 dpurdie 266
Const enum_imgPending             = "<img src='icons/i_pending.gif' width='11' height='17' border='0' title='Package Pending Build Approval'>"
267
Const enum_imgApproved            = "<img src='icons/i_approved.gif' width='11' height='17' border='0' title='Package Build Approved'>"
4390 dpurdie 268
Const enum_imgReleasedLocked      = "<img src='images/i_locked.gif' width='13' height='15' border='0' title='Released and locked'>"
269
Const enum_imgReleasedUnlocked    = "<img src='images/i_unlocked.gif' width='16' height='15' border='0' title='Released and unlocked'>"
4710 dpurdie 270
Const enum_imgNotInArchive        = "<img src='images/s_package_not_present.gif' width='16' height='15' border='0' title='Not found in archive'>"
4764 dpurdie 271
Const enum_imgNotInRelease        = "<img src='images/s_not_inrelease.gif' width='16' height='15' border='0' title='This Version is not a member of this Release'>"
5080 dpurdie 272
Const enum_imgSdkImport           = "<img src='images/i_sdkpkg.png' width='15' height='15' border='0' title='This version imported via an SDK'>"
273
Const enum_imgSdkDep              = "<img src='images/i_sdkdep.png' width='15' height='15' border='0' title='Not Found. Is a dependency only of the SDK and not required to be in this release.'>"
5899 dpurdie 274
Const enum_imgUnBuildable         = "<img src='icons/s_unbuildable.png' width='15' height='15' border='0' title='This package is unbuildable.'>"
6440 dpurdie 275
Const enum_imgRippleStop          = "<img src='images/RippleStop.gif' width='16' height='16' border='0' title='Package is waiting for user to release the ripple stop'>"
276
Const enum_imgRippleGo            = "<img src='images/RippleGo.gif' width='16' height='16' border='0' title='Ripple stop released. Package waiting to build.'>"
6688 dpurdie 277
Const enum_imgClipBoard           = "<img src='images/CopyToClipboard.ico' width='15' height='15' border='0' title='Copy package details to clipboard'>"
6610 dpurdie 278
Const enum_imgClipBoard10         = "<img src='images/CopyToClipboard.ico' width='10' height='10' border='0' title='Copy names to clipboard'>"
279
Const enum_imgClipBoard12         = "<img src='images/CopyToClipboard.ico' width='12' height='12' border='0' align='absmiddle' title='Copy names to clipboard'>"
7030 dpurdie 280
Const enum_imgCompiling           = "<img src='images/compile.gif' width='17' height='17' border='0' title='Actively Building'>"
7029 dpurdie 281
Const enum_imgScheduled           = "<img src='images/future.png' width='17' height='17' border='0' title='Scheduled to Build'>"
282
Const enum_imgBuildFail           = "<img src='images/build_failed.png' width='17' height='17' border='0' title='Package excluded from build'>"
283
Const enum_imgBuildExclude        = "<img src='images/build_excluded.png' width='17' height='17' border='0' title='Package indirectly excluded from build'>"
131 ghuddy 284
 
6615 dpurdie 285
'------------ Release and Sdk States -----------
286
Const LIMG_OPEN_MODE = "<img src='images/i_rtag_open_mode.gif' border='0' align='absmiddle' hspace='2' title='Open Mode'>"
287
Const LIMG_RESTRICTIVE_MODE = "<img src='images/i_rtag_restrictive_mode.gif' border='0' align='absmiddle' hspace='2' title='Restrictive Mode'>"
288
Const LIMG_CCB_MODE = "<img src='images/i_rtag_ccb_mode.gif' border='0' align='absmiddle' hspace='2' title='CCB Mode'>"
289
Const LIMG_CLOSED_MODE = "<img src='images/i_rtag_closed_mode.gif' border='0' align='absmiddle' hspace='2' title='Closed Mode'>"
290
Const LIMG_CLOSED_MODE_WARN = "<img src='images/i_rtag_closed_mode_warn.gif' border='0' align='absmiddle' hspace='2'>"
291
Const LIMG_PRESERVE_MODE = "<img src='images/i_rtag_preserve_mode.gif' border='0' align='absmiddle' hspace='2' title='Preserved Mode'>"
292
Const LIMG_ARCHIVE_MODE = "<img src='images/i_rtag_archive_mode.gif' border='0' align='absmiddle' hspace='2' title='Archived'>"
4390 dpurdie 293
 
119 ghuddy 294
'-- ICONS SMALL ------------------------------
131 ghuddy 295
Const enum_SMALL_imgOK           = "<img src='images/si_ok.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
296
Const enum_SMALL_imgCritical     = "<img src='images/si_critical.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
297
Const enum_SMALL_imgCReady       = "<img src='images/si_update_critical.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
298
Const enum_SMALL_imgWarning      = "<img src='images/si_warning.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
299
Const enum_SMALL_imgWReady       = "<img src='images/si_update_warning.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
300
Const enum_SMALL_imgBuilding     = "<img src='images/si_gear.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
301
Const enum_SMALL_imgNotFound     = "<img src='images/si_not_found.gif' width='17' height='16' border='0' align='absmiddle' vspace='1' hspace='2'>"
5925 dpurdie 302
 
303
'-- ICONS MISC ------------------------------
304
Const enum_IMG_Critical           = "<img src='images/i_critical.gif' width='33' height='33' border='0' align='absmiddle' vspace='1' hspace='2'>"
305
Const imgPkgLocked                = "<img src='images/i_locked.gif' width='7' height='10' hspace='4' align='absmiddle'>"
306
Const imgPkgLockSpacer            = "<img src='images/spacer.gif' width='7' height='10' hspace='4' align='absmiddle'>"
307
 
6783 dpurdie 308
Const LIMG_NDEL                   = "<img src='icons/i_remove.gif' width='16' height='16' hspace='2' border='0' align='absmiddle'>"
309
Const LIMG_NDEL_DISABLED          = "<img src='icons/i_remove_dis.gif' width='16' height='16' hspace='2' border='0' align='absmiddle' class='lessOpacity'>"
310
Const LIMG_USER                   = "<img src='images/i_user.gif' width='16' height='16' hspace='2' border='0' align='absmiddle'>"
311
Const LIMG_USER_DISABLED          = "<img src='images/i_user_disabled.gif' width='16' height='16' hspace='2' border='0' align='absmiddle'>"
312
Const LIMG_EDIT                   = "<img src='icons/i_edit.gif' width='16' height='16' hspace='2' border='0' align='absmiddle'>"
313
Const LIMG_EDIT_DISABLED          = "<img src='icons/i_edit.gif' width='16' height='16' hspace='2' border='0' align='absmiddle' class='lessOpacity'>"
314
 
315
 
316
 
129 ghuddy 317
'-- VERSION CONTROL CONSTANTS ------------------------------
131 ghuddy 318
Const enum_VCS_UNCONTROLLED_TAG  = "UC"
319
Const enum_VCS_CLEARCASE_TAG     = "CC"
320
Const enum_VCS_SUBVERSION_TAG    = "SVN"
139 ghuddy 321
Const enum_VCS_CVS_TAG           = "CVS"
149 ghuddy 322
 
147 ghuddy 323
'-- OP CODES for DAEMON INSTRUCTIONS, both in terms of strings and integers -------------------------------------------
149 ghuddy 324
'
325
'-- When adding to these, always update daemon_instructions.asp accordingly.
326
'-- Sometimes it might be necessary to update wAddDaemonInstruction.asp as well.
327
 
328
'-- human readable string names
147 ghuddy 329
Const OP_CODE_0_STR = "Ripple Build Package"          ' Corresponds to OP_CODE_0_RIPPLE_BUILD_PACKAGE
149 ghuddy 330
Const OP_CODE_1_STR = "Test Build Package"            ' Corresponds to OP_CODE_1_TEST_BUILD_PACKAGE
7022 dpurdie 331
Const OP_CODE_2_STR = "Future Build"                  ' Corresponds to OP_CODE_2_FUTURE_BUILD
147 ghuddy 332
 
149 ghuddy 333
'-- equivalent integer values for use in query strings
147 ghuddy 334
Const OP_CODE_0_RIPPLE_BUILD_PACKAGE = "0"
149 ghuddy 335
Const OP_CODE_1_TEST_BUILD_PACKAGE   = "1"
7022 dpurdie 336
Const OP_CODE_2_FUTURE_BUILD         = "2"
147 ghuddy 337
 
167 brianf 338
'-- PACKAGE AREA CONSTANTS ------------------------------
339
Const enum_PKG_AREA_WIP = 0
340
Const enum_PKG_AREA_PLANNED = 1
341
Const enum_PKG_AREA_RELEASED = 2
342
 
171 brianf 343
'-- BUILD DAEMON STATE CONSTANTS ------------------------------
344
Const enum_DAEMON_ENABLE = NULL
345
Const enum_DAEMON_PAUSE = 1
346
Const enum_DAEMON_DISABLE = 2
347
 
5168 dpurdie 348
'-- Windows event logger types --------------------------------
349
' Used in Raise_Event
350
Const enumEVENT_SUCCESS = 0
351
Const enumEVENT_ERROR = 1
352
Const enumEVENT_WARNING = 2
353
Const enumEVENT_INFORMATION = 4
354
 
119 ghuddy 355
%>