Aims of the Project
The primary aim of this project is to produce a set of scripts to assist in web page
generation for slide shows and gallery pages.
There will also be a utility to rapidly produce a web page slide show by editing the configuration file.
The page will have the following components generated from a rudimentary database file:
- Title or Title Logo
- One or more photographs with descriptions
- Navigation Controls
- Advertising
- Generic Information eg copyright and links
The tool to configure the page will be written in Perl, and will modify a PHP
script that contains a rudimentary database (in the form of a PHP array declaration) defining
a sequence of pictures. The database script and a further script for generating the content
will both be included in a skeleton script, that has the name of the page to be generated.
Cascading Style Sheets will be used to the extent permitted by the client browser, but the
emphasis will be on clean code that validates with the W3C.
Other scripts that may be generally useful will also be listed in the download section.
Downloads
All downloads are licenced under the GNU GPL version 2 or later.
If you use one of these scripts, and have no generator meta tag set in your headers, please
consider adding the following line to your headers,
<meta name="generator" content="Catnip Mouse [GNU / Linux]" />
replacing '[GNU / Linux]' with the operating system used by your web server.
count.php
This script is a simple page hit counter that returns a string representation of a number that increments
each time the script is called. Several simpler implementations were tried before this script was arrived
at; they would mostly perform correctly for a month or so then reset or corrupt. This script has been
stress tested with four tight loops each calling the script concurrently - with no ill effects. The script requires
a lockfile and two register files to work; make sure these exist in the same directory as the called script and
are readable and writeable by the web server process.
Download count.php.txt 20051202 v00.01.00
csscompress.php
This file is nothing to do with the slide show system.
It enables a css file to be delivered with gzip compression turned on, on servers where it is not possible
or desired to turn on global compression. It also generates an Etag and last-modified header, and sends a 304
response in reply to appropriate If-Modified-Since and
If-None-Match headers.
Download csscompress.php.txt 20060407 v00.01.00
od.php
This file is nothing to do with the slide show system.
It provides a function that takes the name of an OpenDocument file as input, and returns a text string
which is a hyperlink to that OpenDocument file. The function examines the metadata of the OpenDocument file
and uses the document title field to generate the link text, and the creator and date fields to generate a file
properties string, which is added to the hyperlink 'title' attribute. In the majority of web browsers this information
will be displayed as a 'tooltip' when the cursor is placed over the link.
Download od.php.txt 20051103 v00.01.00
Demonstration Page
odfdetect.txt
This file is nothing to do with the slide show system.
It is a fragment of JavaScript that can be placed on a web page to indicate if the viewing browser
has a plugin to view OpenDocument mime types of the form "application/vnd.oasis.opendocument.XXX" It
depends on the navigator.mimeTypes object being present, so works on the Gecko family of browsers
but results on other types are unknown.
Download odfdetect.txt 20051103 v00.01.00
Demonstration Page
|