ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/AnywhereTS-MSSQL/trunk/TSAdminTool/ProSupport.cs
(Generate patch)

Comparing trunk/TSAdminTool/ProSupport.cs (file contents):
Revision 164 by william, Mon Jul 16 09:47:04 2012 UTC vs.
Revision 165 by william, Mon Jul 16 10:19:21 2012 UTC

# Line 26 | Line 26 | namespace AnywhereTS
26  
27          // Registry keys
28          public const string strRegTFTP_root = "TFTP_root"; // Reg key for TFTP root directory in database
29 <        //public const string strRegDatabaseDir = "DatabaseDir"; // Reg key for database directory
29 >
30          public const string strRegAnywhereTSServer = "ATSServer"; // Reg key for database server
31          public const string strRegDatabaseServer = "DatabaseServer"; // Reg key for database server
32          public const string strRegDatabaseInstance = "DatabaseInstance"; // Reg key for database server
33 + #if HAVE_FRMCONFIGMODE
34 +        [Obsolete("strRegDatabaseDir has been deprecated in favor of Direct SQL Server Access")]
35 +        public const string strRegDatabaseDir = "DatabaseDir"; // Reg key for database directory
36          public const string strRegDestDir = "DestDir"; // Reg key for Destination directory, used in unmanged mode..
37 + #endif
38  
39          // Database constants
40          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
# Line 46 | Line 50 | namespace AnywhereTS
50          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
51  
52          // Directories
53 <        //public static string strDatabasePath; // The directory where the database file is located.
53 >        #if HAVE_FRMCONFIGMODE
54 >        [Obsolete("strDatabasePath has been deprecated in favor of Direct SQL Server Access")]
55 >        public static string strDatabasePath; // The directory where the database file is located.
56          public static string strDestDir; // Destination directory for client files in unmanaged mode.
57 <
57 > #endif
58          // Constructor Initializes the global variables
59          static ProSupport()
60          {
61             //  Initiate variables from registry
62              strAnywhereTSServer = ATSGlobals.GetATSRegValueString(strRegAnywhereTSServer);
63 <            //strDatabasePath = ATSGlobals.GetATSRegValueString(strRegDatabaseDir);
63 > #if HAVE_FRMCONFIGMODE
64 >            strDatabasePath = ATSGlobals.GetATSRegValueString(strRegDatabaseDir);
65              strDestDir = ATSGlobals.GetATSRegValueString(strRegDestDir);
66 + #endif
67              strDatabaseServer = ATSGlobals.GetATSRegValueString(strRegDatabaseServer);
68              strDatabaseInstance = ATSGlobals.GetATSRegValueString(strRegDatabaseInstance);
69          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines