Changeset 62 for trunk/Modules


Ignore:
Timestamp:
Dec 19, 2011, 9:33:21 AM (13 years ago)
Author:
chronos
Message:
  • Přidáno: Jednotka UApplicationInfo obsahující informace o programu.
Location:
trunk/Modules
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/UMainModule.lfm

    r54 r62  
    99    Timeout = 10800
    1010    SessionIdCookieName = 'SessionId'
    11     left = 312
    12     top = 31
     11    left = 304
     12    top = 32
    1313  end
    1414  object Database: TSqlDatabase
    1515    Connected = False
     16    Port = 3306
    1617    Encoding = 'utf8'
    1718    left = 81
  • trunk/Modules/UMainModule.lrs

    r54 r62  
    55  +'HorizontalOffset'#3#162#1#14'VerticalOffset'#3#205#0#5'Width'#3#175#1#0#24
    66  +'THTTPSessionStorageMySQL'#24'HTTPSessionStorageMySQL1'#8'Database'#7#8'Data'
    7   +'base'#7'Timeout'#3'0*'#19'SessionIdCookieName'#6#9'SessionId'#4'left'#3'8'#1
    8   +#3'top'#2#31#0#0#12'TSqlDatabase'#8'Database'#9'Connected'#8#8'Encoding'#6#4
    9   +'utf8'#4'left'#2'Q'#3'top'#2'V'#0#0#0
     7  +'base'#7'Timeout'#3'0*'#19'SessionIdCookieName'#6#9'SessionId'#4'left'#3'0'#1
     8  +#3'top'#2' '#0#0#12'TSqlDatabase'#8'Database'#9'Connected'#8#4'Port'#3#234#12
     9  +#8'Encoding'#6#4'utf8'#4'left'#2'Q'#3'top'#2'V'#0#0#0
    1010]);
  • trunk/Modules/UMainModule.pas

    r58 r62  
    1010  UXmlClasses, UHtmlClasses, UCore, UHTTPServerTCP,
    1111  UHTTPSessionFile, UUser, SpecializedList, Registry;
    12 
    13 const
    14   RegistryKey = '\Software\Chronosoft\ZdechovNET';
    1512
    1613type
     
    5754implementation
    5855
     56uses
     57  UApplicationInfo;
     58
    5959{ TMainModule }
    6060
     
    233233  try
    234234    RootKey := HKEY_CURRENT_USER;
    235     OpenKey(RegistryKey, True);
     235    OpenKey(ApplicationInfo.RegistryKey, True);
    236236    Style := ReadStringWithDefault('Style', 'Basic');
    237237    BaseURL := ReadStringWithDefault('BaseURL', 'http://localhost');
Note: See TracChangeset for help on using the changeset viewer.