Ignore:
Timestamp:
Dec 30, 2011, 6:00:53 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Částečně zprovozněna registrace a přihlašování uživatelů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Components/CoolWeb/WebServer/UWebApp.pas

    r68 r69  
    2727  TWebApp = class(TCustomApplication)
    2828  private
     29    FOnBeforePageProduce: TOnProduceEvent;
    2930    FOnInitialize: TNotifyEvent;
    3031    FServerType: THTTPServerType;
     
    4243    constructor Create(AOwner: TComponent); override;
    4344    destructor Destroy; override;
     45    property OnBeforePageProduce: TOnProduceEvent read FOnBeforePageProduce write FOnBeforePageProduce;
    4446    property OnInitialize: TNotifyEvent read FOnInitialize write FOnInitialize;
    4547    property ServerType: THTTPServerType read FServerType write SetServerType;
     
    133135    //Request.QueryParts[0] := 'uzivatel';
    134136    //Request.QueryParts[1] := 'prihlaseni';
     137    if Assigned(FOnBeforePageProduce) then
     138      FOnBeforePageProduce(HandlerData);
    135139
    136140    if Request.QueryParts.Count > 0 then PageName := Request.QueryParts[0]
     
    172176    hstdout := @stderr;
    173177    Writeln(hstdout^, 'An unhandled exception occurred: ' + E.Message + '<br>');
    174     WriteLn(hstdout^, StringReplace(DumpExceptionCallStack(E), LineEnding, '<br>', [rfReplaceAll]));
     178    WriteLn(hstdout^, DumpExceptionCallStack(E));
    175179  end;
    176180end;
Note: See TracChangeset for help on using the changeset viewer.