Changeset 108
- Timestamp:
- Oct 10, 2012, 3:30:34 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UWebSession.pas
r107 r108 166 166 ModuleBase := TModuleBase(ModuleManager.FindModuleByName('Base')); 167 167 if Assigned(ModuleBase) then ModuleBase.Session := Self; 168 if Assigned(ModuleBase) then ModuleBase.HandlerData := Self; 168 169 end; 169 170 end; -
trunk/Modules/Portal/UModulePortal.pas
r107 r108 224 224 '<div class="Navigation"><span class="MenuItem"><strong>Navigace :: </strong> '; 225 225 Output := Output + Navigation + '</span><div class="MenuItem2">'; 226 if Assigned(ModuleUser) then begin 226 227 if ModuleUser.User.Id = UnknownUser then 227 228 Output := Output + '<a href="' + MakeLink('Přihlášení', … … 230 231 else Output := Output + ModuleUser.User.Name + ' ' + MakeLink('Odhlásit', 231 232 NavigationLink('/?Action=Logout')); 233 end; 232 234 // <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení</a>'; 233 235 Output := Output + '</div></div>'; -
trunk/Modules/User/UModuleUser.pas
r107 r108 62 62 User := TWebUser.Create; 63 63 User.Database := ModuleBase.Session.Database; 64 User.HandlerData := ModuleBase.Session; 64 65 UserOnline := TWebOnlineUser.Create; 65 66 UserOnline.Database := ModuleBase.Session.Database; 67 UserOnline.HandlerData := ModuleBase.Session; 66 68 AfterStart; 67 69 end; -
trunk/Modules/User/UUser.pas
r103 r108 46 46 procedure Login(User: Integer); 47 47 procedure Logout; 48 constructor Create; 48 49 end; 49 50 … … 123 124 end; 124 125 126 constructor TWebOnlineUser.Create; 127 begin 128 User := UnknownUser; 129 end; 130 125 131 { TUser } 126 132 … … 218 224 DbRows: TDbRows; 219 225 begin 226 if Id <> -1 then 220 227 try 221 228 DbRows := TDbRows.Create; -
trunk/Modules/ZdechovNET/UHostingPage.lfm
r97 r108 3 3 Caption = 'Hosting' 4 4 OnProduce = DataModuleProduce 5 Height = 506 HorizontalOffset = 2597 VerticalOffset = 2 508 Width = 505 Height = 224 6 HorizontalOffset = 550 7 VerticalOffset = 280 8 Width = 329 9 9 end -
trunk/Modules/ZdechovNET/UModuleZdechovNET.pas
r106 r108 75 75 BeforeStart; 76 76 ModuleBase := TModuleBase(Manager.FindModuleByName('Base')); 77 ModuleBase.GeneratePage := GeneratePage; 77 78 ModuleUser := TModuleUser(Manager.FindModuleByName('User')); 78 79 with ModuleBase, Pages do begin 79 80 //GeneratePage := GeneratePage; 80 81 InternetPage := TInternetPage.Create(nil); 82 InternetPage.ModuleUser := ModuleUser; 81 83 RegisterPage(InternetPage, 'internet'); 82 84 HostingPage := THostingPage.Create(nil); 85 HostingPage.ModuleUser := ModuleUser; 83 86 RegisterPage(HostingPage, 'hosting'); 84 87 HistoryPage := THistoryPage.Create(nil); 88 HistoryPage.ModuleUser := ModuleUser; 85 89 RegisterPage(HistoryPage, 'historie'); 86 90 DocumentsPage := TDocumentsPage.Create(nil); 91 DocumentsPage.ModuleUser := ModuleUser; 87 92 RegisterPage(DocumentsPage, 'dokumenty'); 88 93 VoIPPage := TVoIPPage.Create(nil); 94 VoIPPage.ModuleUser := ModuleUser; 89 95 RegisterPage(VoIPPage, 'voip'); 90 96 LinksPage := TLinksPage.Create(nil); 97 LinksPage.ModuleUser := ModuleUser; 91 98 RegisterPage(LinksPage, 'odkazy'); 92 99 ContactPage := TContactPage.Create(nil); 100 ContactPage.ModuleUser := ModuleUser; 93 101 RegisterPage(ContactPage, 'kontakt'); 94 102 ServerInfoPage := TServerInfoPage.Create(nil); 103 ServerInfoPage.ModuleUser := ModuleUser; 95 104 RegisterPage(ServerInfoPage, 'serverinfo'); 96 105 WebCamPage := TWebCamPage.Create(nil); 106 WebCamPage.ModuleUser := ModuleUser; 97 107 RegisterPage(WebCamPage, 'kamery'); 98 108 PlansPage := TPlansPage.Create(nil); 109 PlansPage.ModuleUser := ModuleUser; 99 110 RegisterPage(PlansPage, 'plany'); 100 111 NetworkPage := TNetworkPage.Create(nil); 112 NetworkPage.ModuleUser := ModuleUser; 101 113 RegisterPage(NetworkPage, 'sit'); 102 114 ProjectsPage := TProjectsPage.Create(nil); 115 ProjectsPage.ModuleUser := ModuleUser; 103 116 RegisterPage(ProjectsPage, 'projekty'); 104 117 AboutPage := TAboutPage.Create(nil); 118 AboutPage.ModuleUser := ModuleUser; 105 119 RegisterPage(AboutPage, ''); 106 120 end; -
trunk/Packages/CoolWeb/WebServer/UWebApp.pas
r105 r108 29 29 procedure UnregisterPage(Page: TWebPage); 30 30 function ProducePage(HandlerData: THTTPHandlerData): Boolean; 31 constructor Create; override; 31 32 end; 32 33 … … 163 164 end; 164 165 166 constructor TPageList.Create; 167 begin 168 inherited Create; 169 OwnsObjects := False; 170 end; 171 165 172 procedure TWebApp.HTTPServerRequest(HandlerData: THTTPHandlerData); 166 173 begin -
trunk/ZdechovNET.lpi
r107 r108 210 210 <Filename Value="Modules/ZdechovNET/UHostingPage.pas"/> 211 211 <IsPartOfProject Value="True"/> 212 <HasResources Value="True"/> 212 <ComponentName Value="HostingPage"/> 213 <HasResources Value="True"/> 214 <ResourceBaseClass Value="DataModule"/> 213 215 <UnitName Value="UHostingPage"/> 214 216 </Unit15>
Note:
See TracChangeset
for help on using the changeset viewer.