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.

59 lines
1.7 KiB

  1. <%@Language = JScript %>
  2. <%
  3. /**********************************************************************************
  4. Debug Portal - Version 2
  5. PAGE : DBGPortal_AddBugNumber.asp
  6. DESCRIPTION : Create a bug in the raidbugs table
  7. MODIFICATION HISTORY: 1/10/2002 - Created
  8. ***********************************************************************************/
  9. %>
  10. <!--#INCLUDE FILE='Global_DBUtils.asp'-->
  11. <!--#INCLUDE FILE='Global_ServerUtils.asp'-->
  12. <%
  13. Response.Write( "form: " + Request.Form() + "<BR>")
  14. var UpdateBugNumber = Request.Form( "UpdateBugNumber" )
  15. var BucketID = Request.Form("BucketID")
  16. var iBucket = Request.Form("iBucket")
  17. var bugArea = Request.Form( "bugArea" )
  18. var FrameID = Request.Form("FrameID" )
  19. g_DBConn = GetDBConnection( Application("CRASHDB3" ) )
  20. if ( String(UpdateBugNumber) != "undefined" )
  21. {
  22. try
  23. {
  24. var Query = "DBGPortal_SetBucketBugNumber '" + BucketID + "'," + UpdateBugNumber + "," + iBucket + ",'" + bugArea + "'"
  25. Response.Write( "<BR>" + Query )
  26. g_DBConn.Execute( Query )
  27. g_DBConn.Execute( "DBGPortal_UpdateStaticDataBugID '" + BucketID + "'," + UpdateBugNumber )
  28. Response.Redirect("DBGPortal_AddComment.asp?BucketID=" + Server.URLEncode(BucketID) + "&iBucket=" + iBucket + "&Action=11&Comment=Linking Raid Bug " + UpdateBugNumber + " to bucket&FrameID=" + FrameID )
  29. //Response.Redirect( "DBGPortal_ViewBucket.asp?BucketID=" + Server.URLEncode(BucketID) )
  30. }
  31. catch ( err )
  32. {
  33. Response.Write("Could not update bug number: <BR>")
  34. Response.Write( "Query: " + Query + "<BR>" )
  35. Response.Write( "[" + err.number + "] " + err.description )
  36. Response.End
  37. }
  38. }
  39. g_DBConn.Close()
  40. %>