#!/usr/bin/perl

# Purpose:  To display a gallery of photos.

# This script displays notice information about the scripts

# Prereqs for PGAL:
# - requires pgal_library.pl perl library
# - requires ImageMagick image manipulation tools be installed
# - requires cookies to be enabled on the browser

# Assumptions:
# - Currently only accepts JPEG images with a jpg or jpeg extention
# - Currently if a "converted" filespec exists, it will not check to confirm that the file
#       already the correct dimension but will assume so.

# RISKS:
# - I should be using suexec to deal with file management. Currently I am not. In order
# 	the scripts to function, the directory and files in it must be readable by the
#	same user that Apache is run by, the easiest way to do this is to just make them
#	world writable.  Yes, this is a HUGE SECURITY HOLE for your data.  I'll get around
#	to fixing it.  Use at your own risk.


#set useful stuff
use POSIX;
use CGI;
use CGI::Pretty;
use CGI::Session;
$q = new CGI;
require 'pgal_library.pl';

%GLOBAL = &globals;

$SCRIPT_TITLE="PGAL Information";

&start_pgal_html("","","",$SCRIPT_TITLE);

print $q->center($q->h3("$SCRIPT_TITLE"));

print <<EOF
PGAL is a set of photo gallery scripts created by me, <a href=http://www.fielding.ca>Paul Fielding</a>, to meet a specific need.  You can guess what PGAL stands for.  There's lots of great gallery software out there, most of which do way more than my scripts will ever do.  My needs were few, but very specific, and existing software didn't format things the way I wanted them.  So, I decided to grow my own.
<p>
Written entirely in perl, PGAL also makes use of a nifty little product called <a href="http://www.imagemagick.org">ImageMagick</a> to do the image manipulation bits.  The inline quicktime bits are done using Apple's <a href="http://www.apple.com/quicktime/tools_tips/tutorials/activex.html">qtplugin.cab</a> plugin.
<p>
All you need to do is find a way to upload your original files to your web server, and PGAL will automatically crop, rename and resize the images to meet it's needs.  A web admin interface allows you to re-order, rotate and delete images, and set up comments as needed.  An index of all galleries is automatically created and maintained.
<p>
These scripts are not intended for public distribution, they're intended to meet my personal needs.  That being said, I'm not specifically trying to hide them from the world, I just make zero warranty that they'll work for anyone else.  If you're interested in getting your hands on them for your own dire needs, feel free to contact me about it.  I can be contacted via my <a href=http://www.fielding.ca>website</a>.
<p>
Enjoy!
<p>
EOF
;

print "<center><a href=$GLOBAL{PGALDIR}>Back to the galleries</a></center>\n";

print "</div>\n";


# Write out footer
&end_pgal_html;
exit;
