source: branches/lazarus/wowhosting.lpr

Last change on this file was 61, checked in by george, 15 years ago
  • Přidáno: Další chybějící soubory s vývojové větve ve Free Pascalu.
File size: 568 bytes
Line 
1program WowHosting;
2
3{$mode delphi}{$H+}
4
5uses
6 UCore, USqlDatabase, SysUtils, UMainPage, pwinit, pwmain,
7 UFinancePage, UNewsPage, UUserPage, UBill;
8
9var
10 Output: string;
11 I: Integer;
12 PageName: string;
13begin
14 SetHeader('Content-Type', 'text/html; charset=utf-8');
15 PageName := GetCgiVar('p');
16 if PageName = '' then PageName := 'index';
17 I := 0;
18 while (I < Length(Pages)) and (Pages[I].Name <> PageName) do Inc(I);
19 if I < Length(Pages) then Output := Pages[I].Producer
20 else Output := 'Stránka nenalezena';
21 WebWriteLn(FormatOutput(Output));
22end.
23
Note: See TracBrowser for help on using the repository browser.