Changeset 68 for trunk/Modules
- Timestamp:
- Dec 26, 2011, 12:07:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/UMainModule.pas
r67 r68 41 41 UserOnline: TWebOnlineUser; 42 42 FormatHTML: Boolean; 43 NetworkAddress: string; 44 NetworkPort: Integer; 45 MaxConnections: Integer; 43 46 procedure LoadFromRegistry; 44 47 procedure SaveToRegistry; … … 236 239 SectionGeneral = 'General'; 237 240 SectionDatabase = 'Database'; 241 SectionHTTPServer = 'HTTPServer'; 238 242 begin 239 243 with TIniFile.Create(ConfigFile) do … … 249 253 FormatHTML := ReadBool(SectionGeneral, 'FormatHTML', False); 250 254 Application.LogException := not ReadBool(SectionGeneral, 'ShowException', False); 255 NetworkAddress := ReadString(SectionHTTPServer, 'NetworkAddress', 'localhost'); 256 NetworkPort := ReadInteger(SectionHTTPServer, 'NetworkPort', 80); 257 MaxConnections := ReadInteger(SectionHTTPServer, 'MaxConnections', 10); 251 258 finally 252 259 Free; … … 258 265 SectionGeneral = 'General'; 259 266 SectionDatabase = 'Database'; 267 SectionHTTPServer = 'HTTPServer'; 260 268 begin 261 269 with TIniFile.Create(ConfigFile) do … … 271 279 WriteBool(SectionGeneral, 'FormatHTML', FormatHTML); 272 280 WriteBool(SectionGeneral, 'ShowException', not Application.LogException); 281 WriteString(SectionHTTPServer, 'NetworkAddress', NetworkAddress); 282 WriteInteger(SectionHTTPServer, 'NetworkPort', NetworkPort); 283 WriteInteger(SectionHTTPServer, 'MaxConnections', MaxConnections); 273 284 finally 274 285 Free;
Note:
See TracChangeset
for help on using the changeset viewer.