From 09e92151f21e6f433735ab0e4dbfd951f3cdc1d2 Mon Sep 17 00:00:00 2001 From: Daniel Covington Date: Tue, 23 Apr 2024 11:25:29 -0400 Subject: [PATCH] Changing Data --- App/DAL/lib.DAL.asp | 6 +++++- App/app.config.asp | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/App/DAL/lib.DAL.asp b/App/DAL/lib.DAL.asp index bfd4f45..32119f6 100644 --- a/App/DAL/lib.DAL.asp +++ b/App/DAL/lib.DAL.asp @@ -21,9 +21,13 @@ dim DAL__Singleton : set DAL__Singleton = Nothing Function DAL() If DAL__Singleton is Nothing then set DAL__Singleton = new Database_Class - DAL__Singleton.Initialize "Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Engine Type=5;Data Source=" & Request.ServerVariables("APPL_PHYSICAL_PATH") & "Data\webdata - Copy.mdb;" + if dev = true Then + DAL__Singleton.Initialize "Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Engine Type=5;Data Source=" & Request.ServerVariables("APPL_PHYSICAL_PATH") & "Data\webdata - Copy.mdb;" + Else + DAL__Singleton.Initialize "Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Engine Type=5;Data Source=C:\inetpub\Data\webdata - Copy.mdb;" 'DAL__Singleton.Initialize "Provider=SQLOLEDB;Server=danielsubuntu,15789;Database=tracking;UID=sa;PWD=SunBrightShine!;" End If + End If set DAL = DAL__Singleton End Function %> \ No newline at end of file diff --git a/App/app.config.asp b/App/app.config.asp index 31bceb6..3c99a21 100644 --- a/App/app.config.asp +++ b/App/app.config.asp @@ -1,5 +1,5 @@ <% -dim appCss, appJs, appBootStrapJs, jqueryJs, siteTitle, iconsCss, tabulatorCss +dim appCss, appJs, appBootStrapJs, jqueryJs, siteTitle, iconsCss, tabulatorCss, dev Routes.Initialize "/App/" siteTitle = "Mail Tracking Kits" iconsCss = "https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" @@ -7,7 +7,7 @@ appCss = "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.cs tabulatorCss = "/dist/css/tabulator_bootstrap5.css" appBootStrapJs = "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js' integrity='sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM' crossorigin='anonymous" 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" - +dev = true '======================================================================================================================= ' Set Global Variables Here '=======================================================================================================================