The Cute Little Image Gallery Script (CLIGS) is a PHP script that autogenerates a nice html index for a directory full of jpeg images. CLIGS (c) Copyright 2005 John Leach and is licensed under the terms of the Gnu Public License version 2.

Features

Requirements

CLIGS needs the following stuff to work:

For help getting these requirements installed, see below

Download

Get the latest version of the script from the downloads directory

Installation

<Directory /home/john/www>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^gallery/.*$ /cligs.php
<Directory>

drwxrwx---  91 john www-data 4.9K Mar 10 22:25 thumbcache

<gallery>
        <title>My holiday in Italy</title>
        <description>Photos from holiday in Venice, Italy.</description>
        <author>John Leach</author>
        <date>December 2005</date>
        <logo>/home/john/www/overlay-logo.png</logo>
        <icon>Image18.jpg</icon>
        <footer>All the photos are belong to me</footer>
</gallery>

If you don't specify an icon, a random one is chose each time.

Requirements installation

I'm just going to cover Fedora and Debian here. It should be enough to help you with other distros. If you're compiling from source, then you're on your own.

GD support for PHP

On Fedora this is available from the php-gd rpm. On Debian it's called php4-gd.

PHP Pear

Get the base PHP Pear installed first. On Fedora this is available from the rpm named php-pear. On Debian it's called php4-pear.

Now you can use the pear command line to install the HTML_Page2 module. It seems this module is still in development, so you need to tell Pear you're happy installing devel modules:

pear config-set preferred_state devel

Then install the module:

pear install HTML_Page2

Limitations / Bugs

TODO

Cligs/Version 1.0 (last edited 2005-10-24 11:16:09 by JohnLeach)