Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.5 KiB

  1. <!--
  2. global.asa
  3. Setup procedure for HTML raid :
  4. create /scripts/raid dir (rights=script), copy files
  5. create uploadd vdir ( rights=r+w ) pointing to upload physical subdir
  6. for NTBUG db: create ntguest2 vdir ( rights=exe ) pointing to
  7. =Application("dbFileShare") ( e.g. \\ntguest2\ntraid )
  8. create rntguest2 vdir ( rights=r ) pointing to
  9. =Application("dbFileShare") ( e.g. \\ntguest2\ntraid )
  10. add filter raidmap.dll ( source: svcs\w3\filters\pa )
  11. associate .pac with pacopy.dll ( source: svcs\w3\gateways\pa )
  12. install posting acceptor from site server ( mss20 / mss30 )
  13. -->
  14. <SCRIPT LANGUAGE=VBScript RUNAT=SERVER>
  15. SUB Session_OnStart
  16. rem default filter condition
  17. Dim flt(1,3)
  18. flt(0,0) = "BugID"
  19. flt(0,1) = "="
  20. flt(0,2) = "12345"
  21. flt(0,3) = "Or"
  22. flt(1,0) = "BugID"
  23. flt(1,1) = "="
  24. flt(1,2) = "12346"
  25. flt(1,3) = "Or"
  26. Session("FltArray") = flt
  27. Session("Filter") = "BugID = 12345 OR BugID = 12346"
  28. rem default configuration
  29. rem default bug ID
  30. Session("BugID") = 12345
  31. rem default field list for list view
  32. Session("FieldList") = "BugID,Priority,Urgency,ShowStop,Title"
  33. rem list of fields + Asc|Desc
  34. Session("FieldSort") = "Priority Asc,BugID Asc"
  35. rem default filename for save operation
  36. Session("Config") = "query.asp"
  37. rem dbsource must be numeric and is index in dbXXX arrays
  38. Session("DBSOURCE") = 0
  39. rem computed field, must always be in sync with DBSOURCE
  40. Session("DSN") = Application("BASESOURCE") & Application("dbConn")(Session("DBSOURCE"))
  41. END SUB
  42. SUB Session_OnEnd
  43. END SUB
  44. SUB Application_OnStart
  45. rem dbFriendlyName: database friendly name
  46. rem dbConn database ODBC connection parameter
  47. rem dbFileShare UNC share for file attachments
  48. rem dbFileShareDir virtual dir under /scripts/raid mapped to UNC share
  49. rem dbCache file used as cache for enumerated fields ( Status, ... )
  50. Application("dbFriendlyName") = Array("NT Bugs")
  51. Application("dbTokenID") = Array("2")
  52. Application("dbConn") = Array("UID=ntbugRW;pwd=ntbugRW;server=ntraid;database=NTBUG")
  53. Application("dbFileShare") = Array("\\ntguest2\ntraid")
  54. Application("dbFileShareDir") = Array("ntguest2")
  55. Application("dbCache") = Array("NTRAID")
  56. rem DSN parameter, should not change as server/database selection is made
  57. rem using dbConn
  58. Application("BASESOURCE") = "DSN=Windows NT Bugs:Raid4;app=Raid4;"
  59. END SUB
  60. </SCRIPT>