/[AnywhereTS-MSSQL]/trunk/TSAdminTool/ProSupport.cs
ViewVC logotype

Diff of /trunk/TSAdminTool/ProSupport.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/TSAdminTool/ProSupport.cs	2012/07/16 09:53:12	164
+++ trunk/TSAdminTool/ProSupport.cs	2012/07/16 10:19:21	165
@@ -26,11 +26,15 @@
 
         // Registry keys
         public const string strRegTFTP_root = "TFTP_root"; // Reg key for TFTP root directory in database
-        //public const string strRegDatabaseDir = "DatabaseDir"; // Reg key for database directory
+
         public const string strRegAnywhereTSServer = "ATSServer"; // Reg key for database server
         public const string strRegDatabaseServer = "DatabaseServer"; // Reg key for database server
         public const string strRegDatabaseInstance = "DatabaseInstance"; // Reg key for database server
+#if HAVE_FRMCONFIGMODE
+        [Obsolete("strRegDatabaseDir has been deprecated in favor of Direct SQL Server Access")]
+        public const string strRegDatabaseDir = "DatabaseDir"; // Reg key for database directory
         public const string strRegDestDir = "DestDir"; // Reg key for Destination directory, used in unmanged mode..
+#endif
 
         // Database constants
         public const string DEFAULT_RECORD_MAC = "Default     "; // Phony MAC address (12 chars) used to identify the client record that contains the default settings for all new clients
@@ -46,16 +50,20 @@
         public static string strDatabaseInstance; // If this computer does not contain the database server, this is the name of the database server that contains the ATS database. Used by the Control Panel
 
         // Directories
-        //public static string strDatabasePath; // The directory where the database file is located.
+        #if HAVE_FRMCONFIGMODE
+        [Obsolete("strDatabasePath has been deprecated in favor of Direct SQL Server Access")]
+        public static string strDatabasePath; // The directory where the database file is located.
         public static string strDestDir; // Destination directory for client files in unmanaged mode.
-
+#endif
         // Constructor Initializes the global variables
         static ProSupport()
         {
            //  Initiate variables from registry
             strAnywhereTSServer = ATSGlobals.GetATSRegValueString(strRegAnywhereTSServer);
-            //strDatabasePath = ATSGlobals.GetATSRegValueString(strRegDatabaseDir);
+#if HAVE_FRMCONFIGMODE
+            strDatabasePath = ATSGlobals.GetATSRegValueString(strRegDatabaseDir);
             strDestDir = ATSGlobals.GetATSRegValueString(strRegDestDir);
+#endif
             strDatabaseServer = ATSGlobals.GetATSRegValueString(strRegDatabaseServer);
             strDatabaseInstance = ATSGlobals.GetATSRegValueString(strRegDatabaseInstance);
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22