source:
branches/lazarus/wowhosting.lpr
Last change on this file was 61, checked in by , 15 years ago | |
---|---|
File size: 568 bytes |
Line | |
---|---|
1 | program WowHosting; |
2 | |
3 | {$mode delphi}{$H+} |
4 | |
5 | uses |
6 | UCore, USqlDatabase, SysUtils, UMainPage, pwinit, pwmain, |
7 | UFinancePage, UNewsPage, UUserPage, UBill; |
8 | |
9 | var |
10 | Output: string; |
11 | I: Integer; |
12 | PageName: string; |
13 | begin |
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)); |
22 | end. |
23 |
Note:
See TracBrowser
for help on using the repository browser.