Changeset 54
- Timestamp:
- Jul 20, 2011, 11:52:31 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CGI.lpi
r53 r54 57 57 <EditorIndex Value="0"/> 58 58 <WindowIndex Value="0"/> 59 <TopLine Value=" 5"/>60 <CursorPos X=" 7" Y="34"/>59 <TopLine Value="4"/> 60 <CursorPos X="1" Y="19"/> 61 61 <UsageCount Value="203"/> 62 62 <Loaded Value="True"/> … … 493 493 <Unit50> 494 494 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericList.inc"/> 495 <WindowIndex Value="0"/> 496 <TopLine Value="14"/> 497 <CursorPos X="1" Y="29"/> 495 <EditorIndex Value="4"/> 496 <WindowIndex Value="0"/> 497 <TopLine Value="29"/> 498 <CursorPos X="15" Y="46"/> 498 499 <UsageCount Value="178"/> 500 <Loaded Value="True"/> 499 501 </Unit50> 500 502 <Unit51> … … 569 571 <TopLine Value="71"/> 570 572 <CursorPos X="40" Y="12"/> 571 <UsageCount Value="5 1"/>573 <UsageCount Value="53"/> 572 574 <DefaultSyntaxHighlighter Value="Delphi"/> 573 575 </Unit59> … … 592 594 <UnitName Value="UHTTPServer"/> 593 595 <WindowIndex Value="0"/> 594 <TopLine Value=" 82"/>595 <CursorPos X=" 15" Y="98"/>596 <TopLine Value="180"/> 597 <CursorPos X="3" Y="182"/> 596 598 <UsageCount Value="14"/> 597 599 </Unit62> … … 599 601 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UHTTPServerCGI.pas"/> 600 602 <UnitName Value="UHTTPServerCGI"/> 601 <EditorIndex Value=" 5"/>603 <EditorIndex Value="3"/> 602 604 <WindowIndex Value="0"/> 603 605 <TopLine Value="65"/> 604 <CursorPos X=" 23" Y="85"/>605 <UsageCount Value="1 0"/>606 <CursorPos X="1" Y="86"/> 607 <UsageCount Value="11"/> 606 608 <Loaded Value="True"/> 607 609 </Unit63> … … 639 641 <Unit68> 640 642 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericListObject.inc"/> 641 <WindowIndex Value="0"/> 642 <TopLine Value="2"/> 643 <CursorPos X="14" Y="19"/> 643 <EditorIndex Value="2"/> 644 <WindowIndex Value="0"/> 645 <TopLine Value="61"/> 646 <CursorPos X="23" Y="61"/> 644 647 <UsageCount Value="11"/> 648 <Loaded Value="True"/> 645 649 </Unit68> 646 650 <Unit69> … … 707 711 <ResourceBaseClass Value="DataModule"/> 708 712 <UnitName Value="UMainModule"/> 709 <EditorIndex Value="4"/> 710 <WindowIndex Value="0"/> 711 <TopLine Value="9"/> 712 <CursorPos X="18" Y="30"/> 713 <UsageCount Value="33"/> 713 <IsVisibleTab Value="True"/> 714 <EditorIndex Value="1"/> 715 <WindowIndex Value="0"/> 716 <TopLine Value="57"/> 717 <CursorPos X="44" Y="74"/> 718 <UsageCount Value="35"/> 714 719 <Loaded Value="True"/> 715 720 <LoadedDesigner Value="True"/> … … 770 775 <UnitName Value="UWebPage"/> 771 776 <WindowIndex Value="0"/> 772 <TopLine Value=" 1"/>773 <CursorPos X=" 25" Y="15"/>777 <TopLine Value="4"/> 778 <CursorPos X="14" Y="21"/> 774 779 <UsageCount Value="14"/> 775 780 </Unit83> … … 788 793 <UnitName Value="UPagesModule"/> 789 794 <WindowIndex Value="0"/> 790 <TopLine Value=" 12"/>791 <CursorPos X=" 43" Y="26"/>795 <TopLine Value="48"/> 796 <CursorPos X="13" Y="342"/> 792 797 <UsageCount Value="30"/> 793 798 <DefaultSyntaxHighlighter Value="Delphi"/> … … 812 817 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/LazIDEReg.pas"/> 813 818 <UnitName Value="LazIDEReg"/> 814 <EditorIndex Value="7"/> 815 <WindowIndex Value="0"/> 816 <TopLine Value="1"/> 817 <CursorPos X="64" Y="8"/> 819 <WindowIndex Value="0"/> 820 <TopLine Value="1"/> 821 <CursorPos X="79" Y="4"/> 818 822 <UsageCount Value="13"/> 819 <Loaded Value="True"/>820 823 </Unit88> 821 824 <Unit89> … … 861 864 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UWebApp.pas"/> 862 865 <UnitName Value="UWebApp"/> 863 <IsVisibleTab Value="True"/> 864 <EditorIndex Value="3"/> 865 <WindowIndex Value="0"/> 866 <TopLine Value="21"/> 867 <CursorPos X="18" Y="43"/> 868 <UsageCount Value="13"/> 866 <EditorIndex Value="6"/> 867 <WindowIndex Value="0"/> 868 <TopLine Value="57"/> 869 <CursorPos X="1" Y="75"/> 870 <UsageCount Value="14"/> 869 871 <Loaded Value="True"/> 870 872 </Unit94> … … 872 874 <Filename Value="/usr/share/fpcsrc/2.4.2/packages/fcl-base/src/custapp.pp"/> 873 875 <UnitName Value="CustApp"/> 874 <EditorIndex Value="1"/> 875 <WindowIndex Value="0"/> 876 <TopLine Value="34"/> 877 <CursorPos X="15" Y="51"/> 876 <WindowIndex Value="0"/> 877 <TopLine Value="19"/> 878 <CursorPos X="3" Y="26"/> 878 879 <UsageCount Value="13"/> 879 <Loaded Value="True"/>880 880 </Unit95> 881 881 <Unit96> … … 908 908 <UnitName Value="UContactPage"/> 909 909 <WindowIndex Value="0"/> 910 <TopLine Value="1 "/>911 <CursorPos X=" 68" Y="5"/>912 <UsageCount Value="2 4"/>910 <TopLine Value="17"/> 911 <CursorPos X="1" Y="47"/> 912 <UsageCount Value="26"/> 913 913 <DefaultSyntaxHighlighter Value="Delphi"/> 914 914 </Unit99> … … 920 920 <UnitName Value="UInternetPage"/> 921 921 <WindowIndex Value="0"/> 922 <TopLine Value="2 0"/>923 <CursorPos X=" 28" Y="30"/>924 <UsageCount Value="2 1"/>922 <TopLine Value="26"/> 923 <CursorPos X="1" Y="57"/> 924 <UsageCount Value="23"/> 925 925 <DefaultSyntaxHighlighter Value="Delphi"/> 926 926 </Unit100> … … 932 932 <UnitName Value="UHostingPage"/> 933 933 <WindowIndex Value="0"/> 934 <TopLine Value=" 20"/>935 <CursorPos X="1 5" Y="31"/>936 <UsageCount Value="2 1"/>934 <TopLine Value="66"/> 935 <CursorPos X="1" Y="97"/> 936 <UsageCount Value="23"/> 937 937 <DefaultSyntaxHighlighter Value="Delphi"/> 938 938 </Unit101> … … 944 944 <UnitName Value="UHistoryPage"/> 945 945 <WindowIndex Value="0"/> 946 <TopLine Value=" 9"/>947 <CursorPos X=" 21" Y="30"/>948 <UsageCount Value="2 0"/>946 <TopLine Value="26"/> 947 <CursorPos X="1" Y="57"/> 948 <UsageCount Value="22"/> 949 949 <DefaultSyntaxHighlighter Value="Delphi"/> 950 950 </Unit102> … … 956 956 <UnitName Value="UDocumentsPage"/> 957 957 <WindowIndex Value="0"/> 958 <TopLine Value="2 3"/>959 <CursorPos X=" 21" Y="30"/>960 <UsageCount Value="2 0"/>958 <TopLine Value="24"/> 959 <CursorPos X="1" Y="55"/> 960 <UsageCount Value="22"/> 961 961 <DefaultSyntaxHighlighter Value="Delphi"/> 962 962 </Unit103> … … 968 968 <UnitName Value="UVoIPPage"/> 969 969 <WindowIndex Value="0"/> 970 <TopLine Value=" 1"/>971 <CursorPos X=" 67" Y="8"/>972 <UsageCount Value="2 0"/>970 <TopLine Value="34"/> 971 <CursorPos X="1" Y="65"/> 972 <UsageCount Value="22"/> 973 973 <DefaultSyntaxHighlighter Value="Delphi"/> 974 974 </Unit104> … … 979 979 <ResourceBaseClass Value="DataModule"/> 980 980 <UnitName Value="UPlansPage"/> 981 <WindowIndex Value="0"/> 982 <TopLine Value="2"/> 983 <CursorPos X="81" Y="8"/> 984 <UsageCount Value="20"/> 981 <EditorIndex Value="5"/> 982 <WindowIndex Value="0"/> 983 <TopLine Value="28"/> 984 <CursorPos X="23" Y="40"/> 985 <UsageCount Value="22"/> 986 <Loaded Value="True"/> 985 987 <DefaultSyntaxHighlighter Value="Delphi"/> 986 988 </Unit105> … … 992 994 <UnitName Value="ULinksPage"/> 993 995 <WindowIndex Value="0"/> 994 <TopLine Value=" 1"/>995 <CursorPos X=" 67" Y="8"/>996 <UsageCount Value="2 0"/>996 <TopLine Value="36"/> 997 <CursorPos X="1" Y="67"/> 998 <UsageCount Value="22"/> 997 999 <DefaultSyntaxHighlighter Value="Delphi"/> 998 1000 </Unit106> … … 1005 1007 <WindowIndex Value="0"/> 1006 1008 <TopLine Value="8"/> 1007 <CursorPos X="1 4" Y="30"/>1008 <UsageCount Value="2 0"/>1009 <CursorPos X="1" Y="39"/> 1010 <UsageCount Value="22"/> 1009 1011 <DefaultSyntaxHighlighter Value="Delphi"/> 1010 1012 </Unit107> … … 1016 1018 <UnitName Value="UWebCamPage"/> 1017 1019 <WindowIndex Value="0"/> 1018 <TopLine Value=" 17"/>1019 <CursorPos X=" 21" Y="30"/>1020 <UsageCount Value="2 0"/>1020 <TopLine Value="47"/> 1021 <CursorPos X="1" Y="78"/> 1022 <UsageCount Value="22"/> 1021 1023 <DefaultSyntaxHighlighter Value="Delphi"/> 1022 1024 </Unit108> … … 1028 1030 <UnitName Value="UUserControlPage"/> 1029 1031 <WindowIndex Value="0"/> 1030 <TopLine Value=" 1"/>1031 <CursorPos X="1 4" Y="9"/>1032 <UsageCount Value="2 0"/>1032 <TopLine Value="38"/> 1033 <CursorPos X="1" Y="68"/> 1034 <UsageCount Value="22"/> 1033 1035 <DefaultSyntaxHighlighter Value="Delphi"/> 1034 1036 </Unit109> … … 1041 1043 <WindowIndex Value="0"/> 1042 1044 <TopLine Value="15"/> 1043 <CursorPos X=" 21" Y="30"/>1044 <UsageCount Value="2 0"/>1045 <CursorPos X="1" Y="46"/> 1046 <UsageCount Value="22"/> 1045 1047 <DefaultSyntaxHighlighter Value="Delphi"/> 1046 1048 </Unit110> … … 1051 1053 <ResourceBaseClass Value="DataModule"/> 1052 1054 <UnitName Value="UAboutPage"/> 1053 <EditorIndex Value="2"/> 1054 <WindowIndex Value="0"/> 1055 <TopLine Value="34"/> 1056 <CursorPos X="37" Y="43"/> 1057 <UsageCount Value="20"/> 1058 <Loaded Value="True"/> 1059 <LoadedDesigner Value="True"/> 1055 <WindowIndex Value="0"/> 1056 <TopLine Value="54"/> 1057 <CursorPos X="1" Y="83"/> 1058 <UsageCount Value="22"/> 1060 1059 <DefaultSyntaxHighlighter Value="Delphi"/> 1061 1060 </Unit111> 1062 1061 <Unit112> 1063 1062 <Filename Value="Pages/UAboutPage.lfm"/> 1064 <EditorIndex Value="6"/> 1065 <WindowIndex Value="0"/> 1066 <TopLine Value="1"/> 1067 <CursorPos X="50" Y="4"/> 1063 <WindowIndex Value="0"/> 1064 <TopLine Value="1"/> 1065 <CursorPos X="1" Y="1"/> 1068 1066 <ExtraEditorCount Value="1"/> 1069 1067 <ExtraEditor1> 1070 1068 <WindowIndex Value="0"/> 1071 1069 <TopLine Value="1"/> 1072 <CursorPos X=" 1" Y="1"/>1070 <CursorPos X="50" Y="4"/> 1073 1071 </ExtraEditor1> 1074 1072 <UsageCount Value="10"/> 1075 <Loaded Value="True"/>1076 1073 <DefaultSyntaxHighlighter Value="LFM"/> 1077 1074 </Unit112> … … 1095 1092 <Filename Value="../../../lazarus/components/daemon/reglazdaemon.pp"/> 1096 1093 <UnitName Value="RegLazDaemon"/> 1097 <EditorIndex Value="8"/> 1098 <WindowIndex Value="0"/> 1099 <TopLine Value="61"/> 1094 <WindowIndex Value="0"/> 1095 <TopLine Value="23"/> 1100 1096 <CursorPos X="37" Y="23"/> 1101 1097 <UsageCount Value="10"/> 1102 <Loaded Value="True"/>1103 1098 </Unit115> 1104 1099 </Units> 1105 <JumpHistory Count=" 24" HistoryIndex="23">1100 <JumpHistory Count="30" HistoryIndex="29"> 1106 1101 <Position1> 1107 <Filename Value=" CGI.lpr"/>1108 <Caret Line=" 23" Column="28" TopLine="3"/>1102 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UWebApp.pas"/> 1103 <Caret Line="97" Column="1" TopLine="79"/> 1109 1104 </Position1> 1110 1105 <Position2> 1111 <Filename Value=" CGI.lpr"/>1112 <Caret Line=" 11" Column="25" TopLine="3"/>1106 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UWebApp.pas"/> 1107 <Caret Line="98" Column="1" TopLine="79"/> 1113 1108 </Position2> 1114 1109 <Position3> 1115 <Filename Value=" CGI.lpr"/>1116 <Caret Line=" 26" Column="33" TopLine="4"/>1110 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UWebApp.pas"/> 1111 <Caret Line="99" Column="1" TopLine="79"/> 1117 1112 </Position3> 1118 1113 <Position4> 1119 <Filename Value=" CGI.lpr"/>1120 <Caret Line="1 1" Column="42" TopLine="4"/>1114 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UWebApp.pas"/> 1115 <Caret Line="100" Column="1" TopLine="79"/> 1121 1116 </Position4> 1122 1117 <Position5> 1123 <Filename Value=" CGI.lpr"/>1124 <Caret Line=" 28" Column="29" TopLine="4"/>1118 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UWebApp.pas"/> 1119 <Caret Line="102" Column="1" TopLine="79"/> 1125 1120 </Position5> 1126 1121 <Position6> 1127 <Filename Value=" CGI.lpr"/>1128 <Caret Line="1 1" Column="55" TopLine="4"/>1122 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UWebApp.pas"/> 1123 <Caret Line="104" Column="1" TopLine="79"/> 1129 1124 </Position6> 1130 1125 <Position7> 1131 <Filename Value=" CGI.lpr"/>1132 <Caret Line=" 28" Column="34" TopLine="4"/>1126 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UWebApp.pas"/> 1127 <Caret Line="105" Column="1" TopLine="79"/> 1133 1128 </Position7> 1134 1129 <Position8> 1135 <Filename Value=" CGI.lpr"/>1136 <Caret Line="1 1" Column="73" TopLine="4"/>1130 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UWebApp.pas"/> 1131 <Caret Line="106" Column="1" TopLine="79"/> 1137 1132 </Position8> 1138 1133 <Position9> 1139 <Filename Value=" CGI.lpr"/>1140 <Caret Line=" 31" Column="30" TopLine="4"/>1134 <Filename Value="Modules/UMainModule.pas"/> 1135 <Caret Line="75" Column="11" TopLine="60"/> 1141 1136 </Position9> 1142 1137 <Position10> 1143 <Filename Value=" CGI.lpr"/>1144 <Caret Line="1 2" Column="15" TopLine="4"/>1138 <Filename Value="Modules/UMainModule.pas"/> 1139 <Caret Line="199" Column="75" TopLine="197"/> 1145 1140 </Position10> 1146 1141 <Position11> 1147 <Filename Value=" Pages/UAboutPage.pas"/>1148 <Caret Line=" 1" Column="1" TopLine="1"/>1142 <Filename Value="Modules/UMainModule.pas"/> 1143 <Caret Line="74" Column="37" TopLine="57"/> 1149 1144 </Position11> 1150 1145 <Position12> 1151 <Filename Value=" CGI.lpr"/>1152 <Caret Line=" 33" Column="28" TopLine="5"/>1146 <Filename Value="Modules/UMainModule.pas"/> 1147 <Caret Line="75" Column="12" TopLine="57"/> 1153 1148 </Position12> 1154 1149 <Position13> 1155 <Filename Value=" Pages/UAboutPage.pas"/>1156 <Caret Line=" 14" Column="27" TopLine="1"/>1150 <Filename Value="Modules/UMainModule.pas"/> 1151 <Caret Line="74" Column="37" TopLine="57"/> 1157 1152 </Position13> 1158 1153 <Position14> 1159 <Filename Value=" Pages/UAboutPage.pas"/>1160 <Caret Line=" 85" Column="15" TopLine="52"/>1154 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UWebApp.pas"/> 1155 <Caret Line="73" Column="32" TopLine="57"/> 1161 1156 </Position14> 1162 1157 <Position15> 1163 <Filename Value=" ../../PascalClassLibrary/Network/CoolWeb/LazIDEReg.pas"/>1164 <Caret Line="1 37" Column="5" TopLine="104"/>1158 <Filename Value="Modules/UMainModule.pas"/> 1159 <Caret Line="199" Column="1" TopLine="183"/> 1165 1160 </Position15> 1166 1161 <Position16> 1167 <Filename Value=" ../../PascalClassLibrary/Network/CoolWeb/LazIDEReg.pas"/>1168 <Caret Line=" 52" Column="53" TopLine="41"/>1162 <Filename Value="Modules/UMainModule.pas"/> 1163 <Caret Line="200" Column="1" TopLine="183"/> 1169 1164 </Position16> 1170 1165 <Position17> 1171 <Filename Value=" Pages/UAboutPage.pas"/>1172 <Caret Line="7 1" Column="19" TopLine="53"/>1166 <Filename Value="Modules/UMainModule.pas"/> 1167 <Caret Line="72" Column="42" TopLine="58"/> 1173 1168 </Position17> 1174 1169 <Position18> 1175 <Filename Value=" CGI.lpr"/>1176 <Caret Line=" 34" Column="6" TopLine="5"/>1170 <Filename Value="Modules/UMainModule.pas"/> 1171 <Caret Line="74" Column="1" TopLine="58"/> 1177 1172 </Position18> 1178 1173 <Position19> 1179 <Filename Value=" CGI.lpr"/>1180 <Caret Line=" 17" Column="23" TopLine="5"/>1174 <Filename Value="Modules/UMainModule.pas"/> 1175 <Caret Line="75" Column="1" TopLine="58"/> 1181 1176 </Position19> 1182 1177 <Position20> 1183 <Filename Value=" ../../PascalClassLibrary/Network/CoolWeb/WebServer/UWebApp.pas"/>1184 <Caret Line="1 8" Column="26" TopLine="1"/>1178 <Filename Value="Modules/UMainModule.pas"/> 1179 <Caret Line="199" Column="1" TopLine="182"/> 1185 1180 </Position20> 1186 1181 <Position21> 1187 1182 <Filename Value="Modules/UMainModule.pas"/> 1188 <Caret Line=" 72" Column="40" TopLine="55"/>1183 <Caret Line="200" Column="1" TopLine="182"/> 1189 1184 </Position21> 1190 1185 <Position22> 1191 1186 <Filename Value="Modules/UMainModule.pas"/> 1192 <Caret Line=" 33" Column="15" TopLine="16"/>1187 <Caret Line="74" Column="1" TopLine="57"/> 1193 1188 </Position22> 1194 1189 <Position23> 1195 1190 <Filename Value="Modules/UMainModule.pas"/> 1196 <Caret Line=" 290" Column="27" TopLine="265"/>1191 <Caret Line="199" Column="1" TopLine="182"/> 1197 1192 </Position23> 1198 1193 <Position24> 1199 <Filename Value=" CGI.lpr"/>1200 <Caret Line=" 34" Column="7" TopLine="5"/>1194 <Filename Value="Modules/UMainModule.pas"/> 1195 <Caret Line="200" Column="1" TopLine="182"/> 1201 1196 </Position24> 1197 <Position25> 1198 <Filename Value="Modules/UMainModule.pas"/> 1199 <Caret Line="74" Column="1" TopLine="57"/> 1200 </Position25> 1201 <Position26> 1202 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UHTTPServerCGI.pas"/> 1203 <Caret Line="86" Column="1" TopLine="65"/> 1204 </Position26> 1205 <Position27> 1206 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UWebApp.pas"/> 1207 <Caret Line="75" Column="1" TopLine="57"/> 1208 </Position27> 1209 <Position28> 1210 <Filename Value="Modules/UMainModule.pas"/> 1211 <Caret Line="75" Column="12" TopLine="57"/> 1212 </Position28> 1213 <Position29> 1214 <Filename Value="Modules/UMainModule.pas"/> 1215 <Caret Line="199" Column="50" TopLine="197"/> 1216 </Position29> 1217 <Position30> 1218 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericListObject.inc"/> 1219 <Caret Line="20" Column="14" TopLine="3"/> 1220 </Position30> 1202 1221 </JumpHistory> 1203 1222 </ProjectOptions> … … 1242 1261 </CompilerOptions> 1243 1262 <Debugging> 1244 <BreakPoints Count=" 1">1263 <BreakPoints Count="2"> 1245 1264 <Item1> 1246 1265 <Kind Value="bpkSource"/> … … 1248 1267 <Line Value="91"/> 1249 1268 </Item1> 1269 <Item2> 1270 <Kind Value="bpkSource"/> 1271 <Source Value="Modules/UMainModule.pas"/> 1272 <Line Value="199"/> 1273 </Item2> 1250 1274 </BreakPoints> 1251 1275 </Debugging> -
trunk/CGI.lpr
r53 r54 5 5 uses 6 6 UCore, USqlDatabase, SysUtils, Contnrs, 7 UContactPage, UUser, UHTTPSessionMySQL, UHTTPSessionFile, UPagesModule,7 UContactPage, UUser, UHTTPSessionMySQL, UHTTPSessionFile, 8 8 UCommon, UHTTPServer, UHTTPServerTCP, UHTTPServerCGI, UTCPServer, UPool, 9 9 UMemoryStreamEx, UMIMEType, UPageList, Interfaces, UMainModule, UWebApp, … … 12 12 UNetworkPage, UAboutPage; 13 13 14 var15 Application: TWebApp;16 14 begin 17 Application := TWebApp.Create(nil);18 15 with Application do 19 16 try 20 17 Initialize; 18 MainModule := TMainModule.Create(nil); 19 MainModule.Run; 21 20 RegisterPage(TInternetPage, InternetPage, 'internet'); 22 21 RegisterPage(THostingPage, HostingPage, 'hosting'); … … 34 33 Run; 35 34 finally 36 Free;35 MainModule.Free; 37 36 end; 38 37 end. -
trunk/Modules/UMainModule.lfm
r53 r54 5 5 VerticalOffset = 205 6 6 Width = 431 7 object HTTPServer: THTTPServerCGI8 ShowExceptions = False9 DocumentRoot = './'10 SessionStorage = HTTPSessionStorageMySQL111 OnRequest = HTTPServerRequest12 left = 8113 top = 3214 end15 7 object HTTPSessionStorageMySQL1: THTTPSessionStorageMySQL 16 8 Database = Database -
trunk/Modules/UMainModule.lrs
r53 r54 3 3 LazarusResources.Add('TMainModule','FORMDATA',[ 4 4 'TPF0'#11'TMainModule'#10'MainModule'#14'OldCreateOrder'#8#6'Height'#3#22#1#16 5 +'HorizontalOffset'#3#162#1#14'VerticalOffset'#3#205#0#5'Width'#3#175#1#0#14 6 +'THTTPServerCGI'#10'HTTPServer'#14'ShowExceptions'#8#12'DocumentRoot'#6#2'./' 7 +#14'SessionStorage'#7#24'HTTPSessionStorageMySQL1'#9'OnRequest'#7#17'HTTPSer' 8 +'verRequest'#4'left'#2'Q'#3'top'#2' '#0#0#24'THTTPSessionStorageMySQL'#24'HT' 9 +'TPSessionStorageMySQL1'#8'Database'#7#8'Database'#7'Timeout'#3'0*'#19'Sessi' 10 +'onIdCookieName'#6#9'SessionId'#4'left'#3'8'#1#3'top'#2#31#0#0#12'TSqlDataba' 11 +'se'#8'Database'#9'Connected'#8#8'Encoding'#6#4'utf8'#4'left'#2'Q'#3'top'#2 12 +'V'#0#0#0 5 +'HorizontalOffset'#3#162#1#14'VerticalOffset'#3#205#0#5'Width'#3#175#1#0#24 6 +'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 13 10 ]); -
trunk/Modules/UMainModule.pas
r53 r54 7 7 uses 8 8 Classes, SysUtils, FileUtil, LResources, UHTTPServerCGI, UHTTPSessionMySQL, 9 UHTTPServer, USqlDatabase, UConfig, DateUtils, UWebPage, 9 UHTTPServer, USqlDatabase, UConfig, DateUtils, UWebPage, UWebApp, 10 10 UXmlClasses, UHtmlClasses, UCore, UHTTPServerTCP, 11 11 UHTTPSessionFile, UUser, SpecializedList; 12 12 13 13 type 14 TMainModule = class;15 16 TRegistredPage = class17 Name: string;18 Page: TWebPage;19 end;20 21 { TRegistredPageList }22 23 TRegistredPageList = class(TListObject)24 function FindByName(Name: string): TRegistredPage;25 end;26 27 14 { TMainModule } 28 15 29 16 TMainModule = class(TDataModule) 30 HTTPServer: THTTPServerCGI;31 17 HTTPSessionStorageMySQL1: THTTPSessionStorageMySQL; 32 18 Database: TSqlDatabase; 33 procedure HTTPServerRequest(HandlerData: THTTPHandlerData);34 19 private 35 20 procedure Footer; … … 49 34 Keywords: string; 50 35 HtmlDocument: THtmlDocument; 51 Pages: TRegistredPageList;52 36 PageName: string; 53 37 ModuleName: string; … … 55 39 User: TWebUser; 56 40 UserOnline: TWebOnlineUser; 41 procedure GeneratePage(HandlerData: THTTPHandlerData; Page: TWebPage); 57 42 procedure Run; 58 43 constructor Create(AOwner: TComponent); override; 59 44 destructor Destroy; override; 60 procedure RegisterPage(Name: string; Page: TWebPage);61 45 end; 62 46 … … 64 48 MainModule: TMainModule; 65 49 66 resourcestring67 SPageNotFound = 'Page not found';68 69 50 70 51 implementation 71 52 72 { TRegistredPageList }73 74 function TRegistredPageList.FindByName(Name: string): TRegistredPage;75 var76 I: Integer;77 begin78 I := 0;79 while (I < Count) and (TRegistredPage(Items[I]).Name <> Name) do Inc(I);80 if I < Count then Result := TRegistredPage(Items[I])81 else Result := nil;82 end;83 84 53 { TMainModule } 85 54 86 procedure TMainModule. HTTPServerRequest(HandlerData: THTTPHandlerData);55 procedure TMainModule.GeneratePage(HandlerData: THTTPHandlerData; Page: TWebPage); 87 56 var 88 57 I: Integer; 89 58 TitleTag: THtmlString; 90 Page: TRegistredPage;91 59 begin 92 60 User.HandlerData := HandlerData; … … 103 71 HtmlDocument.Scripts.Add(NavigationLink('/Style/' + Style + '/jquery.js')); 104 72 105 Request.QueryParts.Count := 2;106 Request.QueryParts[0] := 'uzivatel';107 Request.QueryParts[1] := 'prihlaseni';108 109 if Request.QueryParts.Count > 0 then PageName := Request.QueryParts[0]110 else PageName := '';111 Page := Pages.FindByName(PageName);112 if Assigned(Page) then begin113 73 TitleTag := THtmlString.Create; 114 HtmlDocument.Body.SubItems. Add(TitleTag);74 HtmlDocument.Body.SubItems.Insert(0, TitleTag); 115 75 TopMenu; 116 Page.Page.OnProduce(HandlerData);117 HtmlDocument.Title := Page. Page.Caption;76 //Page.Page.OnProduce(HandlerData); 77 HtmlDocument.Title := Page.Caption; 118 78 TitleTag.Text := '<div class="TitlePanel"><span class="GlobalTitle">' + GlobalTitle + 119 79 '</span> - ' + HtmlDocument.Title + '</div>'; … … 126 86 Free; 127 87 end; 128 end else Response.Stream.WriteString(SPageNotFound); 129 end; 130 end; 131 132 procedure TMainModule.RegisterPage(Name: string; Page: TWebPage); 133 var 134 NewRegistredPage: TRegistredPage; 135 begin 136 NewRegistredPage := TRegistredPage.Create; 137 NewRegistredPage.Name := Name; 138 NewRegistredPage.Page := Page; 139 Pages.Add(NewRegistredPage); 140 end; 141 88 end; 89 end; 142 90 143 91 procedure TMainModule.InitDatabase; … … 163 111 begin 164 112 inherited; 165 Pages := TRegistredPageList.Create;166 113 HtmlDocument := THtmlDocument.Create; 167 114 User := TWebUser.Create; … … 174 121 begin 175 122 HtmlDocument.Free; 176 Pages.Free;177 123 User.Free; 178 124 UserOnline.Free; … … 251 197 procedure TMainModule.TopMenu; 252 198 begin 253 with THtmlString(HtmlDocument.Body.SubItems. AddNew(THtmlString.Create)) do begin199 with THtmlString(HtmlDocument.Body.SubItems.InsertNew(1, THtmlString.Create)) do begin 254 200 Text := '<div class="Navigation">'; 255 201 // Visitor … … 286 232 begin 287 233 InitDatabase; 288 MainModule.HTTPServer.ShowExceptions := Config.ShowException;234 Application.HTTPServer.ShowExceptions := Config.ShowException; 289 235 //Database.Query('SELECT * FROM ssss'); 290 MainModule.HTTPServer.Run;291 236 end; 292 237
Note:
See TracChangeset
for help on using the changeset viewer.