Image catalog
[ Image Catalog Demo ]
Description This is a script to organize, manage and display all your images and thumbnails. Have full control of what will be displayed, be sure nobody else is using it and track all bandwidth thieves. Create web image catalogs on the fly by editing a simple text file. Could work with, but does not require Server Side Includes (SSI). Files index.html - this file; data.txt - to keep all information; catalog.conf - the only file you need to change; catalog.pl - script to display the catalog; catalog.html - template file for the catalog; show.pl - script to show the real image; show.html - template file to show the real image; /image - images directory; /thumb - thumbnails directory Instalation Open 'catalog.conf' and change the following: $data - server path to the data file; $show - server path to the show template; $catalog - server path to the catalog template; $error_log - server path to the error.log file; $show_url - URL of the show image script; $img_src - URL of the images directory; $thumb_src - URL of the thumbnails directory; $font_face - font face definition; $font_size - font size definition; $border - image's border definition; $alt_text - image's alternate text definition; @referers - who can access the image show script Open 'data.txt' and add the image information as follows: ID|nu|thumb|h01|w01|image|h02|w02|text ID - image ID, defines which image to display; nu - image number, will be displayed as alt text; thumb - filename of the thumbnail; h01 - height of the thumbnail; w01 - width of the thumbnail; image - filename of the real image; h02 - height of the real image; w02 - width of the real image; text - text to be displayed below each image (if you don't want any text - leave it blank) Permissions catalog.conf - 755 catalog.pl - 755 show.pl - 755 data.txt - 777 catalog.html - 777 show.html - 777 How to call Run http://your_domain.com/your_sub_dir/catalog.pl Notes This package goes with two different scripts. One builds the catalog, the other displays an image. You can use them both or you can use just the second one. To do this simply make all configurations and call show.pl instead of catalog.pl - it will open 'show.html' with the real image into it.