Leaked source code of windows server 2003
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.

54 lines
2.4 KiB

  1. <%
  2. /************************************************************************************
  3. * These are server global constants used throughout the site.
  4. * Since Javascript does not have an intrinsic constant data type
  5. * they are just declared with all caps.
  6. ************************************************************************************/
  7. var L_ERR_DB_CONNECTIONFAILED_TEXT = "Windows Online Crash Analysis was unable to connect to the database. Please try this task again.";
  8. var L_ERR_SOLUTION_DNE_TEXT = "<B>Were sorry, the solution that you have requested does not exist</B>. <BR><BR>Or some other kind of general error message that says that the solution isn't there, otherwise, display some kind of general solution or something of the like"
  9. //global State Variables
  10. var STATE_SOLVED = 0; //solved crsh
  11. var STATE_GENERIC = 1; //generic (or general) solution
  12. var STATE_UNDEFINED = 2; //undefined state, or bad state
  13. var STATE_SOLVED_ADDEDCOMMENT = 3; //Solved and customer filled out comment
  14. var STATE_GENERIC_ADDEDREPRO = 4; //generic state and customer filled out repro
  15. var STATE_UNABLE_TO_TRACK =5; //failure to track this crash
  16. var STATE_COUNT = 6; //total number above.
  17. var SOLUTIONID_HIGH_RANGE = 1000; //assuming a max of 1000 solutions at this point
  18. var ERR_BAD_SOLUTIONID = -2; //Bad solution ID has been passed in
  19. var ERR_BAD_STOPCODE = -3; //Bad StopCode value has been passed in
  20. var ERR_UNDEFINED_STATE = -4; //Undefined state . . .
  21. var ERR_BAD_GUID = -5; //We got ourselves a bad guid
  22. var ERR_CRASHDB_NO_GUID = "-6"; //The GUID does not exist in the crashdb
  23. var ERR_DUPLICATE_GUID = "-7"; //The guid already exists in the customer incident table
  24. var L_RESEARCHINGSOLUTIONID_TEXT = "74"; //this is the default solution for reasearching
  25. var L_UNABLETOTRACKSOLUTIONID_TEXT = "75"; //this is the default unable to track solution ID
  26. /************************************************************************************
  27. * These are server specific global variables
  28. ************************************************************************************/
  29. //these are used for the fnHex function, when converting to a hex digit
  30. var HexChars = { "10" : "a",
  31. "11" : "b",
  32. "12" : "c",
  33. "13" : "d",
  34. "14" : "e",
  35. "15" : "f"
  36. };
  37. %>