Changeset 45
- Timestamp:
- Dec 31, 2010, 9:56:34 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 deleted
- 5 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; -
trunk/CGI.lpi
r44 r45 48 48 </Item3> 49 49 </RequiredPackages> 50 <Units Count=" 57">50 <Units Count="65"> 51 51 <Unit0> 52 52 <Filename Value="CGI.lpr"/> 53 53 <IsPartOfProject Value="True"/> 54 54 <UnitName Value="CGI"/> 55 <EditorIndex Value=" 1"/>56 <WindowIndex Value="0"/> 57 <TopLine Value="1"/> 58 <CursorPos X="3 9" Y="27"/>55 <EditorIndex Value="2"/> 56 <WindowIndex Value="0"/> 57 <TopLine Value="1"/> 58 <CursorPos X="34" Y="30"/> 59 59 <UsageCount Value="203"/> 60 60 <Loaded Value="True"/> … … 65 65 <IsPartOfProject Value="True"/> 66 66 <UnitName Value="UMainPage"/> 67 <EditorIndex Value=" 2"/>68 <WindowIndex Value="0"/> 69 <TopLine Value=" 269"/>70 <CursorPos X="2 2" Y="272"/>67 <EditorIndex Value="0"/> 68 <WindowIndex Value="0"/> 69 <TopLine Value="349"/> 70 <CursorPos X="20" Y="366"/> 71 71 <UsageCount Value="200"/> 72 72 <Loaded Value="True"/> … … 79 79 <TopLine Value="291"/> 80 80 <CursorPos X="1" Y="311"/> 81 <UsageCount Value="9 3"/>81 <UsageCount Value="92"/> 82 82 <DefaultSyntaxHighlighter Value="Delphi"/> 83 83 </Unit2> 84 84 <Unit3> 85 85 <Filename Value="UXmlClasses.pas"/> 86 <UsageCount Value="9 3"/>86 <UsageCount Value="92"/> 87 87 <DefaultSyntaxHighlighter Value="Delphi"/> 88 88 </Unit3> … … 91 91 <IsPartOfProject Value="True"/> 92 92 <UnitName Value="UCore"/> 93 <WindowIndex Value="0"/> 94 <TopLine Value="2"/> 95 <CursorPos X="1" Y="19"/> 93 <EditorIndex Value="4"/> 94 <WindowIndex Value="0"/> 95 <TopLine Value="82"/> 96 <CursorPos X="21" Y="99"/> 96 97 <UsageCount Value="203"/> 98 <Loaded Value="True"/> 97 99 <DefaultSyntaxHighlighter Value="Delphi"/> 98 100 </Unit4> … … 103 105 <TopLine Value="217"/> 104 106 <CursorPos X="5" Y="236"/> 105 <UsageCount Value="9 3"/>107 <UsageCount Value="92"/> 106 108 <DefaultSyntaxHighlighter Value="Delphi"/> 107 109 </Unit5> … … 112 114 <TopLine Value="10"/> 113 115 <CursorPos X="27" Y="19"/> 114 <UsageCount Value="9 3"/>116 <UsageCount Value="92"/> 115 117 <DefaultSyntaxHighlighter Value="Delphi"/> 116 118 </Unit6> … … 120 122 <TopLine Value="17"/> 121 123 <CursorPos X="34" Y="30"/> 122 <UsageCount Value="9 3"/>124 <UsageCount Value="92"/> 123 125 <DefaultSyntaxHighlighter Value="Delphi"/> 124 126 </Unit7> … … 129 131 <TopLine Value="204"/> 130 132 <CursorPos X="25" Y="226"/> 131 <UsageCount Value="9 3"/>133 <UsageCount Value="92"/> 132 134 <DefaultSyntaxHighlighter Value="Delphi"/> 133 135 </Unit8> … … 138 140 <TopLine Value="102"/> 139 141 <CursorPos X="25" Y="107"/> 140 <UsageCount Value="9 3"/>142 <UsageCount Value="92"/> 141 143 <DefaultSyntaxHighlighter Value="Delphi"/> 142 144 </Unit9> … … 147 149 <TopLine Value="40"/> 148 150 <CursorPos X="9" Y="59"/> 149 <UsageCount Value="8 1"/>151 <UsageCount Value="80"/> 150 152 <DefaultSyntaxHighlighter Value="Delphi"/> 151 153 </Unit10> … … 155 157 <TopLine Value="91"/> 156 158 <CursorPos X="10" Y="110"/> 157 <UsageCount Value="63"/> 158 <DefaultSyntaxHighlighter Value="Delphi"/> 159 <UsageCount Value="62"/> 159 160 </Unit11> 160 161 <Unit12> … … 162 163 <IsPartOfProject Value="True"/> 163 164 <UnitName Value="UConfig"/> 164 <EditorIndex Value="6"/> 165 <WindowIndex Value="0"/> 166 <TopLine Value="1"/> 167 <CursorPos X="1" Y="1"/> 165 <WindowIndex Value="0"/> 166 <TopLine Value="7"/> 167 <CursorPos X="76" Y="8"/> 168 168 <UsageCount Value="294"/> 169 <Loaded Value="True"/>170 169 <DefaultSyntaxHighlighter Value="Delphi"/> 171 170 </Unit12> … … 192 191 <TopLine Value="608"/> 193 192 <CursorPos X="44" Y="627"/> 194 <UsageCount Value="6 2"/>193 <UsageCount Value="61"/> 195 194 <DefaultSyntaxHighlighter Value="Delphi"/> 196 195 </Unit15> … … 201 200 <TopLine Value="39"/> 202 201 <CursorPos X="25" Y="58"/> 203 <UsageCount Value="6 2"/>202 <UsageCount Value="61"/> 204 203 <DefaultSyntaxHighlighter Value="Delphi"/> 205 204 </Unit16> … … 210 209 <TopLine Value="1"/> 211 210 <CursorPos X="69" Y="19"/> 212 <UsageCount Value="5 8"/>211 <UsageCount Value="57"/> 213 212 <DefaultSyntaxHighlighter Value="Delphi"/> 214 213 </Unit17> … … 219 218 <TopLine Value="1"/> 220 219 <CursorPos X="52" Y="124"/> 221 <UsageCount Value="5 5"/>220 <UsageCount Value="54"/> 222 221 <DefaultSyntaxHighlighter Value="Delphi"/> 223 222 </Unit18> … … 227 226 <TopLine Value="539"/> 228 227 <CursorPos X="14" Y="556"/> 229 <UsageCount Value="64"/> 230 <DefaultSyntaxHighlighter Value="Delphi"/> 228 <UsageCount Value="63"/> 231 229 </Unit19> 232 230 <Unit20> … … 235 233 <TopLine Value="10"/> 236 234 <CursorPos X="22" Y="23"/> 237 <UsageCount Value="64"/> 238 <DefaultSyntaxHighlighter Value="Delphi"/> 235 <UsageCount Value="63"/> 239 236 </Unit20> 240 237 <Unit21> … … 244 241 <TopLine Value="1140"/> 245 242 <CursorPos X="26" Y="1143"/> 246 <UsageCount Value="64"/> 247 <DefaultSyntaxHighlighter Value="Delphi"/> 243 <UsageCount Value="63"/> 248 244 </Unit21> 249 245 <Unit22> … … 252 248 <TopLine Value="43"/> 253 249 <CursorPos X="5" Y="61"/> 254 <UsageCount Value="64"/> 255 <DefaultSyntaxHighlighter Value="Delphi"/> 250 <UsageCount Value="63"/> 256 251 </Unit22> 257 252 <Unit23> … … 260 255 <TopLine Value="50"/> 261 256 <CursorPos X="10" Y="63"/> 262 <UsageCount Value="64"/> 263 <DefaultSyntaxHighlighter Value="Delphi"/> 257 <UsageCount Value="63"/> 264 258 </Unit23> 265 259 <Unit24> … … 269 263 <TopLine Value="17"/> 270 264 <CursorPos X="32" Y="36"/> 271 <UsageCount Value="18 3"/>265 <UsageCount Value="182"/> 272 266 <DefaultSyntaxHighlighter Value="Delphi"/> 273 267 </Unit24> … … 278 272 <TopLine Value="8"/> 279 273 <CursorPos X="17" Y="19"/> 280 <UsageCount Value=" 10"/>274 <UsageCount Value="9"/> 281 275 <DefaultSyntaxHighlighter Value="Delphi"/> 282 276 </Unit25> … … 287 281 <TopLine Value="25"/> 288 282 <CursorPos X="86" Y="94"/> 289 <UsageCount Value="18 3"/>283 <UsageCount Value="182"/> 290 284 <DefaultSyntaxHighlighter Value="Delphi"/> 291 285 </Unit26> … … 296 290 <TopLine Value="549"/> 297 291 <CursorPos X="19" Y="569"/> 298 <UsageCount Value="18 4"/>292 <UsageCount Value="183"/> 299 293 <DefaultSyntaxHighlighter Value="Delphi"/> 300 294 </Unit27> … … 305 299 <TopLine Value="1"/> 306 300 <CursorPos X="64" Y="14"/> 307 <UsageCount Value="18 4"/>301 <UsageCount Value="183"/> 308 302 <DefaultSyntaxHighlighter Value="Delphi"/> 309 303 </Unit28> … … 314 308 <TopLine Value="6"/> 315 309 <CursorPos X="5" Y="33"/> 316 <UsageCount Value="18 4"/>310 <UsageCount Value="183"/> 317 311 <DefaultSyntaxHighlighter Value="Delphi"/> 318 312 </Unit29> … … 323 317 <TopLine Value="99"/> 324 318 <CursorPos X="33" Y="117"/> 325 <UsageCount Value="1 1"/>319 <UsageCount Value="10"/> 326 320 <DefaultSyntaxHighlighter Value="Delphi"/> 327 321 </Unit30> … … 331 325 <TopLine Value="61"/> 332 326 <CursorPos X="14" Y="78"/> 333 <UsageCount Value="63"/> 334 <DefaultSyntaxHighlighter Value="Delphi"/> 327 <UsageCount Value="62"/> 335 328 </Unit31> 336 329 <Unit32> … … 339 332 <TopLine Value="519"/> 340 333 <CursorPos X="23" Y="526"/> 341 <UsageCount Value="59"/> 342 <DefaultSyntaxHighlighter Value="Delphi"/> 334 <UsageCount Value="58"/> 343 335 </Unit32> 344 336 <Unit33> … … 347 339 <UnitName Value="UConfig"/> 348 340 <WindowIndex Value="0"/> 349 <TopLine Value="1 "/>350 <CursorPos X=" 53" Y="18"/>341 <TopLine Value="11"/> 342 <CursorPos X="19" Y="11"/> 351 343 <UsageCount Value="362"/> 352 344 <DefaultSyntaxHighlighter Value="Delphi"/> … … 358 350 <TopLine Value="1"/> 359 351 <CursorPos X="16" Y="164"/> 360 <UsageCount Value="32 5"/>352 <UsageCount Value="324"/> 361 353 <DefaultSyntaxHighlighter Value="Delphi"/> 362 354 </Unit34> … … 367 359 <TopLine Value="81"/> 368 360 <CursorPos X="1" Y="96"/> 369 <UsageCount Value="32 4"/>361 <UsageCount Value="323"/> 370 362 <DefaultSyntaxHighlighter Value="Delphi"/> 371 363 </Unit35> … … 376 368 <TopLine Value="1"/> 377 369 <CursorPos X="18" Y="45"/> 378 <UsageCount Value="32 4"/>370 <UsageCount Value="323"/> 379 371 <DefaultSyntaxHighlighter Value="Delphi"/> 380 372 </Unit36> … … 385 377 <TopLine Value="142"/> 386 378 <CursorPos X="52" Y="165"/> 387 <UsageCount Value="32 4"/>379 <UsageCount Value="323"/> 388 380 <DefaultSyntaxHighlighter Value="Delphi"/> 389 381 </Unit37> … … 394 386 <TopLine Value="109"/> 395 387 <CursorPos X="36" Y="96"/> 396 <UsageCount Value="32 4"/>388 <UsageCount Value="323"/> 397 389 <DefaultSyntaxHighlighter Value="Delphi"/> 398 390 </Unit38> … … 403 395 <TopLine Value="44"/> 404 396 <CursorPos X="27" Y="61"/> 405 <UsageCount Value="32 4"/>397 <UsageCount Value="323"/> 406 398 <DefaultSyntaxHighlighter Value="Delphi"/> 407 399 </Unit39> … … 412 404 <TopLine Value="1"/> 413 405 <CursorPos X="50" Y="8"/> 414 <UsageCount Value="32 4"/>406 <UsageCount Value="323"/> 415 407 <DefaultSyntaxHighlighter Value="Delphi"/> 416 408 </Unit40> … … 421 413 <TopLine Value="1"/> 422 414 <CursorPos X="21" Y="1"/> 423 <UsageCount Value="32 3"/>415 <UsageCount Value="322"/> 424 416 <DefaultSyntaxHighlighter Value="Delphi"/> 425 417 </Unit41> … … 430 422 <TopLine Value="1"/> 431 423 <CursorPos X="53" Y="8"/> 432 <UsageCount Value="32 3"/>424 <UsageCount Value="322"/> 433 425 <DefaultSyntaxHighlighter Value="Delphi"/> 434 426 </Unit42> … … 439 431 <TopLine Value="1"/> 440 432 <CursorPos X="52" Y="92"/> 441 <UsageCount Value="32 3"/>433 <UsageCount Value="322"/> 442 434 <DefaultSyntaxHighlighter Value="Delphi"/> 443 435 </Unit43> … … 448 440 <TopLine Value="83"/> 449 441 <CursorPos X="47" Y="106"/> 450 <UsageCount Value="32 3"/>442 <UsageCount Value="322"/> 451 443 <DefaultSyntaxHighlighter Value="Delphi"/> 452 444 </Unit44> … … 457 449 <TopLine Value="1"/> 458 450 <CursorPos X="3" Y="687"/> 459 <UsageCount Value="32 3"/>451 <UsageCount Value="322"/> 460 452 <DefaultSyntaxHighlighter Value="Delphi"/> 461 453 </Unit45> … … 466 458 <TopLine Value="383"/> 467 459 <CursorPos X="15" Y="397"/> 468 <UsageCount Value="4 4"/>460 <UsageCount Value="43"/> 469 461 </Unit46> 470 462 <Unit47> … … 472 464 <IsPartOfProject Value="True"/> 473 465 <UnitName Value="UCustomApplication"/> 474 <EditorIndex Value=" 0"/>475 <WindowIndex Value="0"/> 476 <TopLine Value="1 27"/>477 <CursorPos X=" 39" Y="127"/>466 <EditorIndex Value="1"/> 467 <WindowIndex Value="0"/> 468 <TopLine Value="106"/> 469 <CursorPos X="1" Y="116"/> 478 470 <UsageCount Value="339"/> 479 471 <Loaded Value="True"/> … … 485 477 <TopLine Value="690"/> 486 478 <CursorPos X="3" Y="695"/> 487 <UsageCount Value="44"/> 488 <DefaultSyntaxHighlighter Value="Delphi"/> 479 <UsageCount Value="43"/> 489 480 </Unit48> 490 481 <Unit49> … … 494 485 <TopLine Value="1"/> 495 486 <CursorPos X="43" Y="79"/> 496 <UsageCount Value="3 20"/>487 <UsageCount Value="319"/> 497 488 <DefaultSyntaxHighlighter Value="Delphi"/> 498 489 </Unit49> 499 490 <Unit50> 500 491 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericList.inc"/> 501 <IsVisibleTab Value="True"/> 502 <EditorIndex Value="5"/> 503 <WindowIndex Value="0"/> 504 <TopLine Value="6"/> 505 <CursorPos X="22" Y="19"/> 492 <WindowIndex Value="0"/> 493 <TopLine Value="373"/> 494 <CursorPos X="1" Y="398"/> 506 495 <UsageCount Value="179"/> 507 <Loaded Value="True"/>508 496 </Unit50> 509 497 <Unit51> … … 513 501 <TopLine Value="1"/> 514 502 <CursorPos X="26" Y="18"/> 515 <UsageCount Value="8 4"/>503 <UsageCount Value="83"/> 516 504 </Unit51> 517 505 <Unit52> 518 506 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Modules/UUser.pas"/> 519 507 <UnitName Value="UUser"/> 520 <EditorIndex Value="8"/> 521 <WindowIndex Value="0"/> 522 <TopLine Value="91"/> 523 <CursorPos X="20" Y="8"/> 524 <UsageCount Value="93"/> 525 <Loaded Value="True"/> 508 <WindowIndex Value="0"/> 509 <TopLine Value="1"/> 510 <CursorPos X="15" Y="20"/> 511 <UsageCount Value="96"/> 526 512 </Unit52> 527 513 <Unit53> 528 514 <Filename Value="../../../lazarus/trunk/ide/lazarus.pp"/> 529 515 <UnitName Value="Lazarus"/> 530 <EditorIndex Value="7"/>531 516 <WindowIndex Value="0"/> 532 517 <TopLine Value="1"/> 533 518 <CursorPos X="44" Y="17"/> 534 <UsageCount Value="92"/> 535 <Loaded Value="True"/> 519 <UsageCount Value="95"/> 536 520 </Unit53> 537 521 <Unit54> 538 522 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/CoolWeb.pas"/> 539 523 <UnitName Value="CoolWeb"/> 540 <EditorIndex Value="3"/>541 524 <WindowIndex Value="0"/> 542 525 <TopLine Value="1"/> 543 526 <CursorPos X="34" Y="13"/> 544 <UsageCount Value="10"/> 545 <Loaded Value="True"/> 527 <UsageCount Value="13"/> 546 528 </Unit54> 547 529 <Unit55> 548 530 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/TemplateGenerics.pas"/> 549 531 <UnitName Value="TemplateGenerics"/> 550 <EditorIndex Value="4"/>551 532 <WindowIndex Value="0"/> 552 533 <TopLine Value="1"/> 553 534 <CursorPos X="60" Y="11"/> 554 <UsageCount Value="10"/> 555 <Loaded Value="True"/> 535 <UsageCount Value="13"/> 556 536 </Unit55> 557 537 <Unit56> … … 561 541 <TopLine Value="92"/> 562 542 <CursorPos X="7" Y="119"/> 543 <UsageCount Value="9"/> 544 </Unit56> 545 <Unit57> 546 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UXmlClasses.pas"/> 547 <UnitName Value="UXmlClasses"/> 548 <EditorIndex Value="5"/> 549 <WindowIndex Value="0"/> 550 <TopLine Value="18"/> 551 <CursorPos X="1" Y="25"/> 552 <UsageCount Value="15"/> 553 <Loaded Value="True"/> 554 </Unit57> 555 <Unit58> 556 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/> 557 <UnitName Value="UHtmlClasses"/> 558 <EditorIndex Value="6"/> 559 <WindowIndex Value="0"/> 560 <TopLine Value="133"/> 561 <CursorPos X="5" Y="150"/> 562 <UsageCount Value="15"/> 563 <Loaded Value="True"/> 564 </Unit58> 565 <Unit59> 566 <Filename Value="Application/UWebObjects.pas"/> 567 <IsPartOfProject Value="True"/> 568 <UnitName Value="UWebObjects"/> 569 <IsVisibleTab Value="True"/> 570 <EditorIndex Value="3"/> 571 <WindowIndex Value="0"/> 572 <TopLine Value="98"/> 573 <CursorPos X="43" Y="115"/> 574 <UsageCount Value="24"/> 575 <Loaded Value="True"/> 576 <DefaultSyntaxHighlighter Value="Delphi"/> 577 </Unit59> 578 <Unit60> 579 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UCommon.pas"/> 580 <UnitName Value="UCommon"/> 581 <WindowIndex Value="0"/> 582 <TopLine Value="1"/> 583 <CursorPos X="1" Y="1"/> 563 584 <UsageCount Value="10"/> 564 </Unit56> 585 </Unit60> 586 <Unit61> 587 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Network/UTCPServer.pas"/> 588 <UnitName Value="UTCPServer"/> 589 <WindowIndex Value="0"/> 590 <TopLine Value="1"/> 591 <CursorPos X="1" Y="1"/> 592 <UsageCount Value="11"/> 593 </Unit61> 594 <Unit62> 595 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UHTTPServer.pas"/> 596 <UnitName Value="UHTTPServer"/> 597 <WindowIndex Value="0"/> 598 <TopLine Value="14"/> 599 <CursorPos X="5" Y="31"/> 600 <UsageCount Value="11"/> 601 </Unit62> 602 <Unit63> 603 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/WebServer/UHTTPServerCGI.pas"/> 604 <UnitName Value="UHTTPServerCGI"/> 605 <WindowIndex Value="0"/> 606 <TopLine Value="2"/> 607 <CursorPos X="37" Y="14"/> 608 <UsageCount Value="10"/> 609 </Unit63> 610 <Unit64> 611 <Filename Value="/usr/share/fpcsrc/rtl/inc/objpash.inc"/> 612 <WindowIndex Value="0"/> 613 <TopLine Value="168"/> 614 <CursorPos X="23" Y="185"/> 615 <UsageCount Value="10"/> 616 </Unit64> 565 617 </Units> 566 <JumpHistory Count=" 10" HistoryIndex="9">618 <JumpHistory Count="29" HistoryIndex="28"> 567 619 <Position1> 568 <Filename Value="Application/U CustomApplication.pas"/>569 <Caret Line=" 266" Column="44" TopLine="239"/>620 <Filename Value="Application/UWebObjects.pas"/> 621 <Caret Line="81" Column="13" TopLine="51"/> 570 622 </Position1> 571 623 <Position2> 572 <Filename Value=" Application/UCustomApplication.pas"/>573 <Caret Line=" 170" Column="26" TopLine="149"/>624 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/> 625 <Caret Line="96" Column="1" TopLine="66"/> 574 626 </Position2> 575 627 <Position3> 576 <Filename Value=" CGI.lpr"/>577 <Caret Line="2 7" Column="39" TopLine="1"/>628 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/> 629 <Caret Line="253" Column="23" TopLine="250"/> 578 630 </Position3> 579 631 <Position4> 580 <Filename Value="../../PascalClassLibrary/ Generics/TemplateGenerics/Generic/GenericList.inc"/>581 <Caret Line=" 47" Column="81" TopLine="23"/>632 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/> 633 <Caret Line="99" Column="1" TopLine="79"/> 582 634 </Position4> 583 635 <Position5> 584 <Filename Value=" ../../../lazarus/trunk/ide/lazarus.pp"/>585 <Caret Line=" 1" Column="1" TopLine="1"/>636 <Filename Value="Application/UWebObjects.pas"/> 637 <Caret Line="83" Column="48" TopLine="60"/> 586 638 </Position5> 587 639 <Position6> 588 <Filename Value=" ../../PascalClassLibrary/Network/CoolWeb/CoolWeb.pas"/>589 <Caret Line=" 1" Column="1" TopLine="1"/>640 <Filename Value="Application/UWebObjects.pas"/> 641 <Caret Line="65" Column="23" TopLine="55"/> 590 642 </Position6> 591 643 <Position7> 592 <Filename Value=" ../../PascalClassLibrary/Network/CoolWeb/CoolWeb.pas"/>593 <Caret Line=" 10" Column="3" TopLine="1"/>644 <Filename Value="Application/UWebObjects.pas"/> 645 <Caret Line="74" Column="5" TopLine="57"/> 594 646 </Position7> 595 647 <Position8> 596 <Filename Value=" ../../PascalClassLibrary/Network/CoolWeb/CoolWeb.pas"/>597 <Caret Line=" 13" Column="14" TopLine="1"/>648 <Filename Value="Application/UWebObjects.pas"/> 649 <Caret Line="79" Column="1" TopLine="65"/> 598 650 </Position8> 599 651 <Position9> 600 <Filename Value=" ../../PascalClassLibrary/Network/CoolWeb/CoolWeb.pas"/>601 <Caret Line=" 1" Column="1" TopLine="1"/>652 <Filename Value="Application/UWebObjects.pas"/> 653 <Caret Line="86" Column="1" TopLine="65"/> 602 654 </Position9> 603 655 <Position10> 604 <Filename Value="../../PascalClassLibrary/ Generics/TemplateGenerics/TemplateGenerics.pas"/>605 <Caret Line=" 10" Column="3" TopLine="1"/>656 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/> 657 <Caret Line="253" Column="1" TopLine="236"/> 606 658 </Position10> 659 <Position11> 660 <Filename Value="Application/UWebObjects.pas"/> 661 <Caret Line="91" Column="11" TopLine="65"/> 662 </Position11> 663 <Position12> 664 <Filename Value="Application/UWebObjects.pas"/> 665 <Caret Line="90" Column="10" TopLine="74"/> 666 </Position12> 667 <Position13> 668 <Filename Value="Pages/UMainPage.pas"/> 669 <Caret Line="389" Column="12" TopLine="360"/> 670 </Position13> 671 <Position14> 672 <Filename Value="Pages/UMainPage.pas"/> 673 <Caret Line="366" Column="20" TopLine="349"/> 674 </Position14> 675 <Position15> 676 <Filename Value="Application/UWebObjects.pas"/> 677 <Caret Line="29" Column="74" TopLine="11"/> 678 </Position15> 679 <Position16> 680 <Filename Value="Application/UWebObjects.pas"/> 681 <Caret Line="71" Column="1" TopLine="58"/> 682 </Position16> 683 <Position17> 684 <Filename Value="Application/UWebObjects.pas"/> 685 <Caret Line="24" Column="10" TopLine="8"/> 686 </Position17> 687 <Position18> 688 <Filename Value="Application/UWebObjects.pas"/> 689 <Caret Line="20" Column="1" TopLine="10"/> 690 </Position18> 691 <Position19> 692 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/> 693 <Caret Line="273" Column="32" TopLine="265"/> 694 </Position19> 695 <Position20> 696 <Filename Value="Application/UWebObjects.pas"/> 697 <Caret Line="25" Column="45" TopLine="3"/> 698 </Position20> 699 <Position21> 700 <Filename Value="Application/UWebObjects.pas"/> 701 <Caret Line="24" Column="59" TopLine="2"/> 702 </Position21> 703 <Position22> 704 <Filename Value="Application/UWebObjects.pas"/> 705 <Caret Line="71" Column="51" TopLine="52"/> 706 </Position22> 707 <Position23> 708 <Filename Value="Application/UWebObjects.pas"/> 709 <Caret Line="65" Column="11" TopLine="49"/> 710 </Position23> 711 <Position24> 712 <Filename Value="Application/UWebObjects.pas"/> 713 <Caret Line="16" Column="26" TopLine="1"/> 714 </Position24> 715 <Position25> 716 <Filename Value="Application/UWebObjects.pas"/> 717 <Caret Line="67" Column="11" TopLine="50"/> 718 </Position25> 719 <Position26> 720 <Filename Value="Application/UWebObjects.pas"/> 721 <Caret Line="16" Column="52" TopLine="1"/> 722 </Position26> 723 <Position27> 724 <Filename Value="Application/UWebObjects.pas"/> 725 <Caret Line="67" Column="43" TopLine="50"/> 726 </Position27> 727 <Position28> 728 <Filename Value="Application/UWebObjects.pas"/> 729 <Caret Line="115" Column="26" TopLine="99"/> 730 </Position28> 731 <Position29> 732 <Filename Value="Application/UWebObjects.pas"/> 733 <Caret Line="116" Column="36" TopLine="99"/> 734 </Position29> 607 735 </JumpHistory> 608 736 </ProjectOptions> … … 640 768 <WriteFPCLogo Value="False"/> 641 769 <CompilerMessages> 770 <IgnoredMessages idx5023="True" idx5024="True" idx5025="True" idx5026="True" idx5027="True" idx5028="True" idx5029="True" idx5030="True" idx5031="True"/> 642 771 <UseMsgFile Value="True"/> 643 772 </CompilerMessages> -
trunk/Pages/UMainPage.pas
r41 r45 7 7 uses 8 8 Classes, SysUtils, USqlDatabase, UCore, UCustomApplication, UHtmlClasses, 9 UHTTPServer ;9 UHTTPServer, UWebObjects; 10 10 11 11 procedure Links(App: TCustomApplication; HandlerData: THTTPHandlerData); … … 362 362 var 363 363 PageName: string; 364 NewForm: TQueryForm; 365 NewGroup: TQueryFormGroup; 366 NewItem: TQueryFormItem; 364 367 begin 365 368 App.HtmlDocument.Title := 'Uživatel'; … … 370 373 if PageName = 'prihlaseni' then begin 371 374 Text := 'Login'; 372 375 NewForm := TQueryForm.Create; 376 NewForm.Title := 'Přihlášení'; 377 // NewForm.Action := THTMLInput.Create; 378 // NewForm.Action 379 NewGroup := TQueryFormGroup.Create; 380 NewGroup.Title := 'Základní údaje'; 381 NewItem := TQueryFormItem.Create; 382 NewItem.Caption := 'Jméno'; 383 NewItem.Hint := 'Zadejte vaše přihlašovací jméno'; 384 NewItem.Required := True; 385 NewGroup.Rows.Add(NewItem); 386 NewItem := TQueryFormItem.Create; 387 NewItem.Caption := 'Heslo'; 388 NewItem.Hint := 'Zadejte vaše heslo'; 389 NewItem.Required := True; 390 NewGroup.Rows.Add(NewItem); 391 NewForm.Groups.Add(NewGroup); 392 App.HtmlDocument.Body.SubItems.Add(NewForm); 373 393 end else Text := ''; 374 394 end; -
trunk/UConfigSample.pas
r27 r45 8 8 Classes, SysUtils; 9 9 10 const 11 WebServerAddress: string = 'http://localhost/'; 12 DatabaseHostname: string = 'localhost'; 13 DatabaseDatabase: string = 'web'; 14 DatabaseUserName: string = 'user'; 15 DatabasePassword: string = 'password'; 16 ConfigFormatHTML: Boolean = False; 17 ConfigStyle: string = 'Basic'; 18 ConfigBaseURL: string = 'http://localhost'; 10 type 11 TConfig = record 12 WebServerAddress: string; 13 DatabaseHostname: string; 14 DatabaseDatabase: string; 15 DatabaseUserName: string; 16 DatabasePassword: string; 17 FormatHTML: Boolean; 18 Style: string; 19 BaseURL: string; 20 ShowException: Boolean; 21 end; 22 23 var 24 Config: TConfig; 25 19 26 20 27 implementation 21 28 29 initialization 30 31 with Config do begin 32 WebServerAddress := 'http://localhost/'; 33 DatabaseHostname := 'localhost'; 34 DatabaseDatabase := 'web'; 35 DatabaseUserName := 'user'; 36 DatabasePassword := 'password'; 37 FormatHTML := False; 38 Style := 'Basic'; 39 BaseURL := 'http://localhost'; 40 ShowException := False; 41 end; 42 22 43 end. 23 44 -
trunk/UCore.pas
r44 r45 32 32 Navigace: string; 33 33 begin 34 Navigace := ''; 34 35 //Navigace := CgiEnvVar.RequestURI; 35 36 Result := '<?xml version="1.0" encoding="utf-8"?>' + … … 96 97 begin 97 98 if (Length(URL) > 0) and (URL[1] = '/') then 98 Result := Config BaseURL + URL99 Result := Config.BaseURL + URL 99 100 else Result := URL; 100 101 end;
Note:
See TracChangeset
for help on using the changeset viewer.