Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

62 řádky
2.5KB

  1. <%
  2. dim appCss, appJs, appBootStrapJs, jqueryJs, siteTitle, iconsCss, tabulatorCss, dev
  3. Routes.Initialize "/App/"
  4. siteTitle = "Mail Tracking Kits"
  5. iconsCss = "https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"
  6. appCss = "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
  7. tabulatorCss = "/dist/css/tabulator_bootstrap5.css"
  8. appBootStrapJs = "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js' integrity='sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM' crossorigin='anonymous"
  9. jqueryJs = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js' integrity='sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==' crossorigin='anonymous' referrerpolicy='no-referrer"
  10. dev = true
  11. dim ExportDirectory
  12. select case dev
  13. case "local"
  14. ExportDirectory = "D:\Development\Tracking_Kits\uploads"
  15. case true
  16. ExportDirectory = "D:\Development\Tracking_Kits\uploads"
  17. case else
  18. ExportDirectory ="\\kci-syn-cl01\PC Transfer\TrackingDataExport\"
  19. end select
  20. Function LoadChilkatSerial()
  21. dim fallbackSerial : fallbackSerial = "KENTCM.CB1022025_RGzBPM5J655e"
  22. LoadChilkatSerial = fallbackSerial
  23. On Error Resume Next
  24. dim fso : set fso = Server.CreateObject("Scripting.FileSystemObject")
  25. dim serialPath : serialPath = Request.ServerVariables("APPL_PHYSICAL_PATH") & "Tests\chillkat_serial"
  26. If Err.Number = 0 Then
  27. If fso.FileExists(serialPath) Then
  28. dim serialFile : set serialFile = fso.OpenTextFile(serialPath, 1, False)
  29. If Err.Number = 0 Then
  30. dim fileSerial : fileSerial = Trim(serialFile.ReadAll())
  31. serialFile.Close
  32. set serialFile = Nothing
  33. If Len(fileSerial) > 0 Then
  34. LoadChilkatSerial = fileSerial
  35. End If
  36. Else
  37. Err.Clear
  38. End If
  39. End If
  40. Else
  41. Err.Clear
  42. End If
  43. set fso = Nothing
  44. On Error GoTo 0
  45. End Function
  46. '=======================================================================================================================
  47. ' Set Global Variables Here
  48. '=======================================================================================================================
  49. dim glob:set glob = Server.CreateObject("Chilkat_9_5_0.Global")
  50. dim success:success = glob.UnlockBundle(LoadChilkatSerial())
  51. If (success <> 1) Then
  52. put(glob.LastErrorText)
  53. End If
  54. %>

Powered by TurnKey Linux.