- Timestamp:
- Sep 13, 2010, 11:45:27 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UCustomApplication.pas
r33 r34 76 76 DbRows: TDbRows; 77 77 begin 78 Database := TSqlDatabase.Create;79 78 with Database do begin 80 79 Hostname := DatabaseHostName; … … 84 83 Connect; 85 84 end; 86 DbRows := Database.Query('SET NAMES utf8'); 87 DbRows.Free; 85 try 86 DbRows := Database.Query('SET NAMES utf8'); 87 finally 88 DbRows.Free; 89 end; 88 90 end; 89 91 … … 93 95 TitleTag: THtmlString; 94 96 begin 95 HTTPServer.ShowExceptions := False;96 97 with HandlerData do begin 97 98 Style := ConfigStyle; … … 130 131 inherited; 131 132 Database := TSqlDatabase.Create; 132 InitDatabase;133 133 Pages := TObjectList.Create; 134 134 HtmlDocument := THtmlDocument.Create; … … 250 250 procedure TCustomApplication.Run; 251 251 begin 252 InitDatabase; 253 //Database.Query('SELECT * FROM ssss'); 252 254 HTTPServer.SessionStorage := THTTPSessionStorageMySQL.Create; 253 255 THTTPSessionStorageMySQL(HTTPServer.SessionStorage).SqlDatabase := Database; -
trunk/CGI.lpi
r33 r34 48 48 <TopLine Value="3"/> 49 49 <CursorPos X="29" Y="25"/> 50 <UsageCount Value="18 5"/>50 <UsageCount Value="187"/> 51 51 <Loaded Value="True"/> 52 52 <LoadedDesigner Value="True"/> … … 61 61 <TopLine Value="259"/> 62 62 <CursorPos X="47" Y="281"/> 63 <UsageCount Value="18 1"/>63 <UsageCount Value="183"/> 64 64 <Loaded Value="True"/> 65 65 <DefaultSyntaxHighlighter Value="Delphi"/> … … 87 87 <TopLine Value="37"/> 88 88 <CursorPos X="69" Y="51"/> 89 <UsageCount Value="18 5"/>89 <UsageCount Value="187"/> 90 90 <Loaded Value="True"/> 91 91 <DefaultSyntaxHighlighter Value="Delphi"/> … … 158 158 <TopLine Value="91"/> 159 159 <CursorPos X="10" Y="110"/> 160 <UsageCount Value=" 29"/>160 <UsageCount Value="30"/> 161 161 <Loaded Value="True"/> 162 162 <DefaultSyntaxHighlighter Value="Delphi"/> … … 168 168 <TopLine Value="283"/> 169 169 <CursorPos X="10" Y="302"/> 170 <UsageCount Value="2 2"/>170 <UsageCount Value="23"/> 171 171 <Loaded Value="True"/> 172 172 <DefaultSyntaxHighlighter Value="Delphi"/> … … 180 180 <TopLine Value="1"/> 181 181 <CursorPos X="92" Y="11"/> 182 <UsageCount Value="16 0"/>182 <UsageCount Value="162"/> 183 183 <Loaded Value="True"/> 184 184 <DefaultSyntaxHighlighter Value="Delphi"/> … … 189 189 <TopLine Value="108"/> 190 190 <CursorPos X="1" Y="134"/> 191 <UsageCount Value="16 0"/>191 <UsageCount Value="162"/> 192 192 <DefaultSyntaxHighlighter Value="None"/> 193 193 </Unit15> … … 197 197 <TopLine Value="1"/> 198 198 <CursorPos X="1" Y="1"/> 199 <UsageCount Value="16 0"/>199 <UsageCount Value="162"/> 200 200 <DefaultSyntaxHighlighter Value="JScript"/> 201 201 </Unit16> … … 367 367 <TopLine Value="543"/> 368 368 <CursorPos X="14" Y="556"/> 369 <UsageCount Value="3 0"/>369 <UsageCount Value="31"/> 370 370 <Loaded Value="True"/> 371 371 <DefaultSyntaxHighlighter Value="Delphi"/> … … 377 377 <TopLine Value="10"/> 378 378 <CursorPos X="22" Y="23"/> 379 <UsageCount Value="3 0"/>379 <UsageCount Value="31"/> 380 380 <Loaded Value="True"/> 381 381 <DefaultSyntaxHighlighter Value="Delphi"/> … … 388 388 <TopLine Value="1140"/> 389 389 <CursorPos X="26" Y="1143"/> 390 <UsageCount Value="3 0"/>390 <UsageCount Value="31"/> 391 391 <Loaded Value="True"/> 392 392 <DefaultSyntaxHighlighter Value="Delphi"/> … … 398 398 <TopLine Value="43"/> 399 399 <CursorPos X="5" Y="61"/> 400 <UsageCount Value="3 0"/>400 <UsageCount Value="31"/> 401 401 <Loaded Value="True"/> 402 402 <DefaultSyntaxHighlighter Value="Delphi"/> … … 408 408 <TopLine Value="50"/> 409 409 <CursorPos X="10" Y="63"/> 410 <UsageCount Value="3 0"/>410 <UsageCount Value="31"/> 411 411 <Loaded Value="True"/> 412 412 <DefaultSyntaxHighlighter Value="Delphi"/> … … 416 416 <IsPartOfProject Value="True"/> 417 417 <UnitName Value="UStringListEx"/> 418 <IsVisibleTab Value="True"/>419 418 <EditorIndex Value="2"/> 420 419 <WindowIndex Value="0"/> 421 420 <TopLine Value="1"/> 422 <CursorPos X=" 34" Y="14"/>423 <UsageCount Value="6 0"/>421 <CursorPos X="46" Y="11"/> 422 <UsageCount Value="62"/> 424 423 <Loaded Value="True"/> 425 424 <DefaultSyntaxHighlighter Value="Delphi"/> … … 437 436 <Filename Value="Common/UDatabase.pas"/> 438 437 <IsPartOfProject Value="True"/> 439 <UsageCount Value="6 0"/>438 <UsageCount Value="62"/> 440 439 <DefaultSyntaxHighlighter Value="Delphi"/> 441 440 </Unit42> … … 448 447 <TopLine Value="218"/> 449 448 <CursorPos X="1" Y="231"/> 450 <UsageCount Value="6 0"/>449 <UsageCount Value="62"/> 451 450 <Loaded Value="True"/> 452 451 <DefaultSyntaxHighlighter Value="Delphi"/> … … 458 457 <EditorIndex Value="25"/> 459 458 <WindowIndex Value="0"/> 460 <TopLine Value="2 47"/>461 <CursorPos X=" 61" Y="236"/>462 <UsageCount Value="6 0"/>459 <TopLine Value="215"/> 460 <CursorPos X="49" Y="233"/> 461 <UsageCount Value="62"/> 463 462 <Loaded Value="True"/> 464 463 <DefaultSyntaxHighlighter Value="Delphi"/> … … 472 471 <TopLine Value="13"/> 473 472 <CursorPos X="5" Y="32"/> 474 <UsageCount Value="6 0"/>473 <UsageCount Value="62"/> 475 474 <Loaded Value="True"/> 476 475 <DefaultSyntaxHighlighter Value="Delphi"/> … … 499 498 <TopLine Value="64"/> 500 499 <CursorPos X="14" Y="78"/> 501 <UsageCount Value=" 29"/>500 <UsageCount Value="30"/> 502 501 <Loaded Value="True"/> 503 502 <DefaultSyntaxHighlighter Value="Delphi"/> … … 507 506 <EditorIndex Value="27"/> 508 507 <WindowIndex Value="0"/> 509 <TopLine Value=" 377"/>510 <CursorPos X="3" Y=" 300"/>511 <UsageCount Value="2 5"/>508 <TopLine Value="476"/> 509 <CursorPos X="3" Y="489"/> 510 <UsageCount Value="26"/> 512 511 <Loaded Value="True"/> 513 512 <DefaultSyntaxHighlighter Value="Delphi"/> … … 519 518 <TopLine Value="519"/> 520 519 <CursorPos X="23" Y="526"/> 521 <UsageCount Value="2 5"/>520 <UsageCount Value="26"/> 522 521 <Loaded Value="True"/> 523 522 <DefaultSyntaxHighlighter Value="Delphi"/> … … 531 530 <TopLine Value="1"/> 532 531 <CursorPos X="53" Y="18"/> 533 <UsageCount Value="4 3"/>532 <UsageCount Value="45"/> 534 533 <Loaded Value="True"/> 535 534 <DefaultSyntaxHighlighter Value="Delphi"/> … … 543 542 <TopLine Value="1"/> 544 543 <CursorPos X="56" Y="10"/> 545 <UsageCount Value="2 2"/>544 <UsageCount Value="24"/> 546 545 <Loaded Value="True"/> 547 546 <DefaultSyntaxHighlighter Value="Delphi"/> … … 553 552 <EditorIndex Value="12"/> 554 553 <WindowIndex Value="0"/> 555 <TopLine Value=" 67"/>556 <CursorPos X=" 7" Y="74"/>557 <UsageCount Value="2 1"/>554 <TopLine Value="76"/> 555 <CursorPos X="29" Y="94"/> 556 <UsageCount Value="23"/> 558 557 <Loaded Value="True"/> 559 558 <DefaultSyntaxHighlighter Value="Delphi"/> … … 567 566 <TopLine Value="28"/> 568 567 <CursorPos X="18" Y="45"/> 569 <UsageCount Value="2 1"/>568 <UsageCount Value="23"/> 570 569 <Loaded Value="True"/> 571 570 <DefaultSyntaxHighlighter Value="Delphi"/> … … 579 578 <TopLine Value="148"/> 580 579 <CursorPos X="52" Y="165"/> 581 <UsageCount Value="2 1"/>580 <UsageCount Value="23"/> 582 581 <Loaded Value="True"/> 583 582 <DefaultSyntaxHighlighter Value="Delphi"/> … … 587 586 <IsPartOfProject Value="True"/> 588 587 <UnitName Value="UHTTPServer"/> 588 <IsVisibleTab Value="True"/> 589 589 <EditorIndex Value="13"/> 590 590 <WindowIndex Value="0"/> 591 <TopLine Value=" 44"/>592 <CursorPos X=" 33" Y="59"/>593 <UsageCount Value="2 1"/>591 <TopLine Value="126"/> 592 <CursorPos X="7" Y="143"/> 593 <UsageCount Value="23"/> 594 594 <Loaded Value="True"/> 595 595 <DefaultSyntaxHighlighter Value="Delphi"/> … … 603 603 <TopLine Value="82"/> 604 604 <CursorPos X="65" Y="100"/> 605 <UsageCount Value="2 1"/>605 <UsageCount Value="23"/> 606 606 <Loaded Value="True"/> 607 607 <DefaultSyntaxHighlighter Value="Delphi"/> … … 613 613 <EditorIndex Value="21"/> 614 614 <WindowIndex Value="0"/> 615 <TopLine Value=" 121"/>616 <CursorPos X=" 50" Y="139"/>617 <UsageCount Value="2 1"/>615 <TopLine Value="27"/> 616 <CursorPos X="3" Y="29"/> 617 <UsageCount Value="23"/> 618 618 <Loaded Value="True"/> 619 619 <DefaultSyntaxHighlighter Value="Delphi"/> … … 627 627 <TopLine Value="1"/> 628 628 <CursorPos X="6" Y="15"/> 629 <UsageCount Value="2 0"/>629 <UsageCount Value="22"/> 630 630 <Loaded Value="True"/> 631 631 <DefaultSyntaxHighlighter Value="Delphi"/> … … 639 639 <TopLine Value="119"/> 640 640 <CursorPos X="66" Y="143"/> 641 <UsageCount Value="2 0"/>641 <UsageCount Value="22"/> 642 642 <Loaded Value="True"/> 643 643 <DefaultSyntaxHighlighter Value="Delphi"/> … … 651 651 <TopLine Value="74"/> 652 652 <CursorPos X="52" Y="92"/> 653 <UsageCount Value="2 0"/>653 <UsageCount Value="22"/> 654 654 <Loaded Value="True"/> 655 655 <DefaultSyntaxHighlighter Value="Delphi"/> … … 663 663 <TopLine Value="12"/> 664 664 <CursorPos X="15" Y="25"/> 665 <UsageCount Value="2 0"/>665 <UsageCount Value="22"/> 666 666 <Loaded Value="True"/> 667 667 <DefaultSyntaxHighlighter Value="Delphi"/> … … 675 675 <TopLine Value="660"/> 676 676 <CursorPos X="3" Y="687"/> 677 <UsageCount Value="2 0"/>677 <UsageCount Value="22"/> 678 678 <Loaded Value="True"/> 679 679 <DefaultSyntaxHighlighter Value="Delphi"/> … … 686 686 <TopLine Value="383"/> 687 687 <CursorPos X="15" Y="397"/> 688 <UsageCount Value="1 0"/>688 <UsageCount Value="11"/> 689 689 <Loaded Value="True"/> 690 690 </Unit64> … … 695 695 <EditorIndex Value="1"/> 696 696 <WindowIndex Value="0"/> 697 <TopLine Value=" 19"/>698 <CursorPos X=" 64" Y="112"/>699 <UsageCount Value="2 0"/>697 <TopLine Value="74"/> 698 <CursorPos X="44" Y="86"/> 699 <UsageCount Value="22"/> 700 700 <Loaded Value="True"/> 701 701 <DefaultSyntaxHighlighter Value="Delphi"/> … … 707 707 <TopLine Value="690"/> 708 708 <CursorPos X="3" Y="695"/> 709 <UsageCount Value="1 0"/>709 <UsageCount Value="11"/> 710 710 <Loaded Value="True"/> 711 711 <DefaultSyntaxHighlighter Value="Delphi"/> … … 715 715 <Position1> 716 716 <Filename Value="WebServer/UHTTPSessionMySQL.pas"/> 717 <Caret Line=" 54" Column="22" TopLine="51"/>717 <Caret Line="38" Column="1" TopLine="25"/> 718 718 </Position1> 719 719 <Position2> 720 <Filename Value="WebServer/UHTTPSe rver.pas"/>721 <Caret Line=" 135" Column="41" TopLine="118"/>720 <Filename Value="WebServer/UHTTPSessionMySQL.pas"/> 721 <Caret Line="40" Column="1" TopLine="25"/> 722 722 </Position2> 723 723 <Position3> 724 <Filename Value="WebServer/UHTTPSe rver.pas"/>725 <Caret Line=" 55" Column="25" TopLine="44"/>724 <Filename Value="WebServer/UHTTPSessionMySQL.pas"/> 725 <Caret Line="41" Column="1" TopLine="25"/> 726 726 </Position3> 727 727 <Position4> 728 <Filename Value="WebServer/UHTTPSe rver.pas"/>729 <Caret Line=" 56" Column="23" TopLine="44"/>728 <Filename Value="WebServer/UHTTPSessionMySQL.pas"/> 729 <Caret Line="42" Column="1" TopLine="25"/> 730 730 </Position4> 731 731 <Position5> 732 <Filename Value="WebServer/UHTTPSession File.pas"/>733 <Caret Line="4 5" Column="12" TopLine="28"/>732 <Filename Value="WebServer/UHTTPSessionMySQL.pas"/> 733 <Caret Line="43" Column="1" TopLine="25"/> 734 734 </Position5> 735 735 <Position6> 736 736 <Filename Value="WebServer/UHTTPSessionMySQL.pas"/> 737 <Caret Line=" 59" Column="27" TopLine="51"/>737 <Caret Line="44" Column="1" TopLine="25"/> 738 738 </Position6> 739 739 <Position7> 740 740 <Filename Value="WebServer/UHTTPSessionMySQL.pas"/> 741 <Caret Line=" 57" Column="1" TopLine="51"/>741 <Caret Line="46" Column="1" TopLine="25"/> 742 742 </Position7> 743 743 <Position8> 744 744 <Filename Value="WebServer/UHTTPSessionMySQL.pas"/> 745 <Caret Line=" 60" Column="1" TopLine="51"/>745 <Caret Line="48" Column="1" TopLine="26"/> 746 746 </Position8> 747 747 <Position9> 748 748 <Filename Value="WebServer/UHTTPSessionMySQL.pas"/> 749 <Caret Line=" 67" Column="1" TopLine="51"/>749 <Caret Line="49" Column="1" TopLine="27"/> 750 750 </Position9> 751 751 <Position10> 752 752 <Filename Value="WebServer/UHTTPSessionMySQL.pas"/> 753 <Caret Line=" 68" Column="1" TopLine="51"/>753 <Caret Line="74" Column="9" TopLine="64"/> 754 754 </Position10> 755 755 <Position11> 756 <Filename Value="WebServer/UHTTPSe ssionMySQL.pas"/>757 <Caret Line=" 69" Column="1" TopLine="51"/>756 <Filename Value="WebServer/UHTTPServerCGI.pas"/> 757 <Caret Line="31" Column="16" TopLine="16"/> 758 758 </Position11> 759 759 <Position12> 760 <Filename Value="WebServer/UHTTPSe ssionMySQL.pas"/>761 <Caret Line=" 70" Column="1" TopLine="51"/>760 <Filename Value="WebServer/UHTTPServerCGI.pas"/> 761 <Caret Line="23" Column="1" TopLine="1"/> 762 762 </Position12> 763 763 <Position13> 764 <Filename Value="WebServer/UHTTPSe ssionMySQL.pas"/>765 <Caret Line=" 71" Column="1" TopLine="51"/>764 <Filename Value="WebServer/UHTTPServerCGI.pas"/> 765 <Caret Line="143" Column="47" TopLine="123"/> 766 766 </Position13> 767 767 <Position14> 768 <Filename Value="WebServer/UHTTPSe ssionMySQL.pas"/>769 <Caret Line=" 74" Column="1" TopLine="52"/>768 <Filename Value="WebServer/UHTTPServerCGI.pas"/> 769 <Caret Line="122" Column="88" TopLine="109"/> 770 770 </Position14> 771 771 <Position15> 772 <Filename Value="WebServer/UHTTPSe ssionMySQL.pas"/>773 <Caret Line=" 38" Column="1" TopLine="25"/>772 <Filename Value="WebServer/UHTTPServerCGI.pas"/> 773 <Caret Line="144" Column="58" TopLine="114"/> 774 774 </Position15> 775 775 <Position16> 776 <Filename Value=" WebServer/UHTTPSessionMySQL.pas"/>777 <Caret Line=" 40" Column="1" TopLine="25"/>776 <Filename Value="Common/UStringListEx.pas"/> 777 <Caret Line="32" Column="1" TopLine="18"/> 778 778 </Position16> 779 779 <Position17> 780 <Filename Value="WebServer/UHTTPSe ssionMySQL.pas"/>781 <Caret Line=" 41" Column="1" TopLine="25"/>780 <Filename Value="WebServer/UHTTPServerCGI.pas"/> 781 <Caret Line="139" Column="50" TopLine="121"/> 782 782 </Position17> 783 783 <Position18> 784 <Filename Value="WebServer/UHTTPSe ssionMySQL.pas"/>785 <Caret Line=" 42" Column="1" TopLine="25"/>784 <Filename Value="WebServer/UHTTPServerCGI.pas"/> 785 <Caret Line="145" Column="32" TopLine="121"/> 786 786 </Position18> 787 787 <Position19> 788 <Filename Value="WebServer/UHTTPSe ssionMySQL.pas"/>789 <Caret Line=" 43" Column="1" TopLine="25"/>788 <Filename Value="WebServer/UHTTPServerCGI.pas"/> 789 <Caret Line="122" Column="102" TopLine="121"/> 790 790 </Position19> 791 791 <Position20> 792 <Filename Value="WebServer/UHTTPSe ssionMySQL.pas"/>793 <Caret Line=" 44" Column="1" TopLine="25"/>792 <Filename Value="WebServer/UHTTPServer.pas"/> 793 <Caret Line="399" Column="18" TopLine="392"/> 794 794 </Position20> 795 795 <Position21> 796 <Filename Value="WebServer/UHTTPSe ssionMySQL.pas"/>797 <Caret Line=" 46" Column="1" TopLine="25"/>796 <Filename Value="WebServer/UHTTPServer.pas"/> 797 <Caret Line="394" Column="37" TopLine="378"/> 798 798 </Position21> 799 799 <Position22> 800 <Filename Value="WebServer/UHTTPSe ssionMySQL.pas"/>801 <Caret Line=" 48" Column="1" TopLine="26"/>800 <Filename Value="WebServer/UHTTPServer.pas"/> 801 <Caret Line="105" Column="83" TopLine="87"/> 802 802 </Position22> 803 803 <Position23> 804 <Filename Value="WebServer/UHTTPSe ssionMySQL.pas"/>805 <Caret Line=" 49" Column="1" TopLine="27"/>804 <Filename Value="WebServer/UHTTPServer.pas"/> 805 <Caret Line="173" Column="41" TopLine="168"/> 806 806 </Position23> 807 807 <Position24> 808 <Filename Value=" WebServer/UHTTPSessionMySQL.pas"/>809 <Caret Line=" 74" Column="9" TopLine="64"/>808 <Filename Value="Application/UCustomApplication.pas"/> 809 <Caret Line="95" Column="25" TopLine="83"/> 810 810 </Position24> 811 811 <Position25> 812 <Filename Value="WebServer/UHTTPServer CGI.pas"/>813 <Caret Line=" 31" Column="16" TopLine="16"/>812 <Filename Value="WebServer/UHTTPServer.pas"/> 813 <Caret Line="105" Column="72" TopLine="92"/> 814 814 </Position25> 815 815 <Position26> 816 816 <Filename Value="WebServer/UHTTPServerCGI.pas"/> 817 <Caret Line=" 23" Column="1" TopLine="1"/>817 <Caret Line="44" Column="38" TopLine="39"/> 818 818 </Position26> 819 819 <Position27> 820 <Filename Value=" WebServer/UHTTPServerCGI.pas"/>821 <Caret Line=" 143" Column="47" TopLine="123"/>820 <Filename Value="Application/UCustomApplication.pas"/> 821 <Caret Line="252" Column="6" TopLine="232"/> 822 822 </Position27> 823 823 <Position28> 824 <Filename Value=" WebServer/UHTTPServerCGI.pas"/>825 <Caret Line=" 122" Column="88" TopLine="109"/>824 <Filename Value="Application/UCustomApplication.pas"/> 825 <Caret Line="31" Column="25" TopLine="18"/> 826 826 </Position28> 827 827 <Position29> 828 <Filename Value="WebServer/UHTTPSe rverCGI.pas"/>829 <Caret Line=" 144" Column="58" TopLine="114"/>828 <Filename Value="WebServer/UHTTPSessionMySQL.pas"/> 829 <Caret Line="97" Column="21" TopLine="85"/> 830 830 </Position29> 831 831 <Position30> 832 <Filename Value=" Common/UStringListEx.pas"/>833 <Caret Line=" 32" Column="1" TopLine="18"/>832 <Filename Value="WebServer/UHTTPServer.pas"/> 833 <Caret Line="56" Column="27" TopLine="43"/> 834 834 </Position30> 835 835 </JumpHistory> … … 851 851 <AllowLabel Value="False"/> 852 852 <CPPInline Value="False"/> 853 <UseAnsiStrings Value="False"/>854 853 </SyntaxOptions> 855 854 </Parsing> -
trunk/Common/USqlDatabase.pas
r33 r34 225 225 mysql_query(FSession, PChar(Data)); 226 226 if LastErrorNumber <> 0 then begin 227 raise EQueryError.Create(Format(SDatabaseQueryError, [ Data]));227 raise EQueryError.Create(Format(SDatabaseQueryError, [LastErrorMessage])); 228 228 end; 229 229 -
trunk/WebServer/UHTTPServer.pas
r33 r34 141 141 end; 142 142 143 WriteString('Session id: ' + SessionId);143 //WriteString('Session id: ' + SessionId); 144 144 WriteString('<h5>Session variables</h5>'); 145 145 for I := 0 to Session.Count - 1 do begin; … … 201 201 constructor THTTPServer.Create; 202 202 begin 203 ShowExceptions := False; 203 204 DocumentRoot := './'; 204 205 Name := 'THTTPServer'; … … 207 208 destructor THTTPServer.Destroy; 208 209 begin 210 SessionStorage.Free; 209 211 inherited Destroy; 210 212 end; … … 223 225 Stream.Free; 224 226 Headers.Free; 227 Cookies.Free; 225 228 inherited Destroy; 226 229 end; … … 395 398 begin 396 399 for i := 0 to FrameCount - 1 do 397 Writeln(hstdout^, BackTraceStrFunc(TArrayOfPointer(Frames)[i])); 400 if I < Length(TArrayOfPointer(Frames)) then 401 Writeln(hstdout^, BackTraceStrFunc(TArrayOfPointer(Frames)[i])); 398 402 end; 399 403 Writeln(hstdout^,''); … … 426 430 begin 427 431 for i := 0 to FrameCount - 1 do 428 Writeln(hstderr^, BackTraceStrFunc(TArrayOfPointer(Frames)[i])); 432 if I < Length(TArrayOfPointer(Frames)) then 433 Writeln(hstderr^, BackTraceStrFunc(TArrayOfPointer(Frames)[i])); 429 434 end; 430 435 Writeln(hstderr^,''); -
trunk/WebServer/UHTTPServerCGI.pas
r33 r34 1 1 unit UHTTPServerCGI; 2 2 3 {$mode delphi} 3 {$mode delphi}{$H+} 4 4 5 5 interface -
trunk/WebServer/UHTTPSessionMySQL.pas
r33 r34 92 92 if DbRows.Count > 0 then 93 93 DbRows2 := SqlDatabase.Query('UPDATE `HTTPSession` SET `Variables`="' + HandlerData.Session.Text 94 + '" WHERE `Identification`="' + HandlerData.SessionId + '", `Time` = NOW()')94 + '", `Time` = NOW() WHERE `Identification`="' + HandlerData.SessionId + '"') 95 95 else DbRows2 := SqlDatabase.Query('INSERT INTO `HTTPSession` (`Time`, `Variables`, `Identification`) VALUES (' + 96 96 'NOW(), "' + HandlerData.Session.Text + '", "' + HandlerData.SessionId + '")');
Note:
See TracChangeset
for help on using the changeset viewer.