Consolidated ASP Classic MVC framework from best components
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.

49 lines
2.2KB

  1. <!--#include file="../Core/helpers.asp"-->
  2. <!--#include file="../Core/lib.ErrorHandler.asp"-->
  3. <!--#include file="../Core/lib.ControllerRegistry.asp"-->
  4. <!--#include file="../Core/lib.ControllerFactory.asp"-->
  5. <!--#include file="../app/Controllers/autoload_controllers.asp"-->
  6. <!--#include file="../Core/lib.DAL.asp"-->
  7. <!--#include file="../Core/lib.Data.asp"-->
  8. <!--#include file="../Core/lib.Migrations.asp"-->
  9. <% Dim router : Set router = GetObject("script:"& Server.MapPath("../Core/router.wsc") & "") %>
  10. <!--#include file="../Core/lib.collections.asp"-->
  11. <!--#include file="../Core/lib.HTML.asp"-->
  12. <!--#include file="../Core/lib.Routes.asp"-->
  13. <!--#include file="../Core/lib.Flash.asp"-->
  14. <!--#include file="../Core/lib.FormCache.asp"-->
  15. <!--#include file="../Core/lib.HTML.Security.asp"-->
  16. <!--#include file="../Core/lib.AutoMapper.asp"-->
  17. <!--#include file="../Core/lib.CDOEmail.asp"-->
  18. <!--#include file="../Core/lib.Upload.asp"-->
  19. <!--#include file="../Core/lib.json.asp"-->
  20. <!--#include file="../Core/lib.helpers.asp"-->
  21. <!--#include file="../Core/lib.crypto.helper.asp"-->
  22. <!--#include file="../Core/lib.Enumerable.asp"-->
  23. <!--#include file="../Core/lib.ad.auth.asp"-->
  24. <!--#include file="../Core/databaseConnection.asp"-->
  25. <%
  26. ' Response cache headers (moved from mvc.asp - now that MVC is a Windows
  27. ' Script Component it cannot hold loose top-level ASP statements like this).
  28. Dim cacheYear : cacheYear = GetAppSetting("CacheExpirationYear")
  29. If cacheYear = "nothing" Then cacheYear = "2030"
  30. Response.ExpiresAbsolute = "01/01/" & cacheYear
  31. Response.AddHeader "pragma", "no-cache"
  32. Response.AddHeader "cache-control", "private, no-cache, must-revalidate"
  33. ' MVC dispatcher (Windows Script Component). It runs in its own isolated
  34. ' script engine, so its dependencies are injected explicitly here rather
  35. ' than it reaching into this page's globals itself - see AGENTS.md
  36. ' section 69/70 ("Dependencies Must Be Injected").
  37. Dim MVC_Instance
  38. Set MVC_Instance = GetObject("script:" & Server.MapPath("../Core/mvc.wsc") & "")
  39. Set MVC_Instance.Router = router
  40. Set MVC_Instance.ControllerRegistry = ControllerRegistry()
  41. Set MVC_Instance.ControllerFactory = ControllerFactory()
  42. Set MVC_Instance.Routes = Routes()
  43. Function MVC()
  44. Set MVC = MVC_Instance
  45. End Function
  46. %>

Powered by TurnKey Linux.