lazarus/components/fpweb/demo
2008-08-25 22:32:23 +00:00
..
echo IDE: search for ancestor units now ignores missing units 2007-11-15 18:13:27 +00:00
image using UTF-8 for file operations and environment variables 2008-08-25 22:32:23 +00:00
session fpweb: added demos from Michael Van Canneyt 2007-11-15 08:09:00 +00:00
README.txt fpweb: added demos from Michael Van Canneyt 2007-11-15 08:09:00 +00:00

This directory contains demo applications for the FP/Lazarus web
package lazweb

echo demo:
==========

This is a very simple demo, it just echoes the request back to the
webbrowser. The standard webutil unit contains a 'dumprequest'
routine which can be used to dump the request.

session demo:
=============

The session directory contains a session demonstration CGI app.
The DemoSession action variable controls what will happen:
DemoSession=NewSession - a new session is started
DemoSession=InSession (the default): the session variable is displayed
DemoSession=EndSession - the sesson is destroyed.

Sample URLs:

end session:
http://localhost/~michael/sessiondemo.cgi?DemoSession=EndSession

set session variable 'var':
http://localhost/~michael/sessiondemo.cgi?Var=SomeValue

start session:
http://localhost/~michael/sessiondemo.cgi?DemoSession=NewSession

image demo:
===========

You need to set some constants in this application, you must configure some
font/image paths and set a font name.

This demo shows how to send images. It has 2 actions:

Pie: creates a pie diagram on the fly. It uses the fpimage routines
for this. The text is shown using a font, for which the FreeType
font library is used.

A sample URL is:
http://localhost/~michael/imagedemo.cgi?action=pie

It can be configured with the Runs/Failed/Skipped/FontName query
variables. See the sources for more information.

The second action is image:
In this mode, the image is searched on disk through the 'FileName' query
variable. The directory is hardcoded in the program, see the constants in
the source. Only PNG images are sent.

Sample URL:
http://localhost/~michael/imagedemo.cgi?action=file&filename=menu_run

This will send the 'menu_run.png' file from the configured directory.