Changeset 99
- Timestamp:
- Oct 2, 2012, 2:12:16 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CoolWeb/Persistence/USqlDatabase.pas
r84 r99 55 55 LastUsedTable: string; 56 56 LastQuery: string; 57 function EscapeString(Text: string): string; 57 58 procedure CreateDatabase; 58 59 procedure CreateTable(Name: string); … … 451 452 end; 452 453 454 function TSqlDatabase.EscapeString(Text: string): string; 455 var 456 L: Integer; 457 begin 458 SetLength(Result, Length(Text) * 2 + 1); 459 L := mysql_real_escape_string(FSession, PChar(Result), PChar(Text), Length(Text)); 460 SetLength(Result, L); 461 end; 462 453 463 { TDbRows } 454 464 -
trunk/Packages/CoolWeb/WebServer/UHTTPServerTCP.pas
r98 r99 93 93 end; 94 94 95 96 97 95 // Process cookies 98 96 if Request.Headers.SearchKey('Cookie') <> -1 then -
trunk/Pages/UPageAdmin.pas
r97 r99 15 15 procedure DataModuleProduce(HandlerData: THTTPHandlerData); 16 16 private 17 procedure HandleReload(HandlerData: THTTPHandlerData); 17 18 procedure HandleModuleList(HandlerData: THTTPHandlerData); 18 19 procedure HandleInstall(HandlerData: THTTPHandlerData); … … 32 33 33 34 uses 34 UCore, UXmlClasses, UHtmlClasses, UUtils, USqlDatabase, UModularSystem; 35 UCore, UXmlClasses, UHtmlClasses, UUtils, USqlDatabase, UModularSystem, 36 UModuleSystem; 35 37 36 38 {$R *.lfm} … … 50 52 if PageName = '' then PageName := 'modulelist'; 51 53 if PageName = 'modulelist' then HandleModuleList(HandlerData) 54 else if PageName = 'reload' then HandleReload(HandlerData) 52 55 else if PageName = 'install' then HandleInstall(HandlerData) 53 56 else if PageName = 'uninstall' then HandleUninstall(HandlerData); 54 57 end; 55 58 GeneratePage(Self); 59 end; 60 end; 61 62 procedure TPageAdmin.HandleReload(HandlerData: THTTPHandlerData); 63 begin 64 with TWebSession(HandlerData) do begin 65 with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin 66 TModuleSystem(Core.ModuleManager.FindModuleByName('System')).UpdateModuleList; 67 Text := 'Seznam modulů synchronizován'; 68 Text := Text + '<br/><br/>'; 69 HandleModuleList(HandlerData); 70 end; 56 71 end; 57 72 end; … … 76 91 Text := Text + '</td></tr>'; 77 92 end; 93 Text := Text + '</table>'; 94 Text := Text + MakeLink('Obnovit seznam modulů', NavigationLink('/administration/reload')); 78 95 end; 79 96 end; -
trunk/UCore.pas
r98 r99 86 86 87 87 uses 88 UModuleSystem, UModuleZdechovNET, UModuleUser, UPageAdmin ;88 UModuleSystem, UModuleZdechovNET, UModuleUser, UPageAdmin, UModuleTV; 89 89 90 90 resourcestring … … 278 278 RegisterModule(TModuleUser.Create(nil), True); 279 279 RegisterModule(TModuleZdechovNET.Create(nil), True); 280 RegisterModule(TModuleTV.Create(nil), True); 280 281 end; 281 282 end; -
trunk/ZdechovNET.lpi
r97 r99 36 36 </Target> 37 37 <SearchPaths> 38 <OtherUnitFiles Value="/usr/lib/mysql;/usr/lib64/mysql;Application;WebServer;Network;Pages;Modules/User;Common;Modules/System;Modules/ZdechovNET "/>38 <OtherUnitFiles Value="/usr/lib/mysql;/usr/lib64/mysql;Application;WebServer;Network;Pages;Modules/User;Common;Modules/System;Modules/ZdechovNET;Modules/TV"/> 39 39 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 40 40 </SearchPaths> … … 117 117 </Item7> 118 118 </RequiredPackages> 119 <Units Count="2 3">119 <Units Count="26"> 120 120 <Unit0> 121 121 <Filename Value="ZdechovNET.lpr"/> … … 202 202 <IsPartOfProject Value="True"/> 203 203 <HasResources Value="True"/> 204 <UnitName Value="UHistoryPage"/> 204 205 </Unit14> 205 206 <Unit15> … … 207 208 <IsPartOfProject Value="True"/> 208 209 <HasResources Value="True"/> 210 <UnitName Value="UHostingPage"/> 209 211 </Unit15> 210 212 <Unit16> … … 243 245 <HasResources Value="True"/> 244 246 </Unit22> 247 <Unit23> 248 <Filename Value="Modules/TV/UModuleTV.pas"/> 249 <IsPartOfProject Value="True"/> 250 <UnitName Value="UModuleTV"/> 251 </Unit23> 252 <Unit24> 253 <Filename Value="Modules/TV/UPageTV.pas"/> 254 <IsPartOfProject Value="True"/> 255 <ComponentName Value="WebPageTV"/> 256 <ResourceBaseClass Value="DataModule"/> 257 <UnitName Value="UPageTV"/> 258 </Unit24> 259 <Unit25> 260 <Filename Value="Modules/TV/UPlaylist.pas"/> 261 <IsPartOfProject Value="True"/> 262 <UnitName Value="UPlaylist"/> 263 </Unit25> 245 264 </Units> 246 265 </ProjectOptions>
Note:
See TracChangeset
for help on using the changeset viewer.