Changeset 45 for trunk/Application
- Timestamp:
- Dec 31, 2010, 9:56:34 PM (14 years ago)
- Location:
- trunk/Application
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UCustomApplication.pas
r42 r45 8 8 Classes, SysUtils, UHTTPServerCGI, USqlDatabase, UConfig, DateUtils, 9 9 UXmlClasses, UHtmlClasses, UCore, UHTTPServer, UHTTPServerTCP, 10 UHTTPSessionMySQL, UHTTPSessionFile, UUser, Specialized ObjectList;10 UHTTPSessionMySQL, UHTTPSessionFile, UUser, SpecializedList; 11 11 12 12 type … … 79 79 begin 80 80 with Database do begin 81 Hostname := DatabaseHostName;82 Database := DatabaseDatabase;83 UserName := DatabaseUserName;84 Password := DatabasePassword;81 Hostname := Config.DatabaseHostName; 82 Database := Config.DatabaseDatabase; 83 UserName := Config.DatabaseUserName; 84 Password := Config.DatabasePassword; 85 85 Connect; 86 86 end; … … 102 102 UserOnline.Update; 103 103 with HandlerData do begin 104 Style := Config Style;105 BaseURL := Config BaseURL;104 Style := Config.Style; 105 BaseURL := Config.BaseURL; 106 106 107 107 HtmlDocument.ContentLanguage := 'cs'; … … 110 110 HtmlDocument.Scripts.Add(NavigationLink('/Style/' + Style + '/Global.js')); 111 111 HtmlDocument.Scripts.Add(NavigationLink('/Style/' + Style + '/jquery.js')); 112 113 Request.QueryParts.Count := 2; 114 Request.QueryParts[0] := 'uzivatel'; 115 Request.QueryParts[1] := 'prihlaseni'; 112 116 113 117 if Request.QueryParts.Count > 0 then PageName := Request.QueryParts[0] … … 124 128 HtmlDocument.Title := GlobalTitle + ' - ' + HtmlDocument.Title; 125 129 with HtmlDocument.AsXmlDocument do try 126 Formated := Config FormatHTML;130 Formated := Config.FormatHTML; 127 131 Response.Stream.WriteString(AsString); 128 132 finally … … 262 266 begin 263 267 InitDatabase; 268 HTTPServer.ShowExceptions := Config.ShowException; 264 269 //Database.Query('SELECT * FROM ssss'); 265 270 HTTPServer.SessionStorage := THTTPSessionStorageMySQL.Create;
Note:
See TracChangeset
for help on using the changeset viewer.