#!/usr/bin/perl -w # http://riverdrift.com/ 2007 # Install in any directory with images # name whatever.pl and chomod to 755 # Edit variables below as you wish ########################################## # page title $title='My Pictures'; # thumbnail size $tsz='70'; # table colums $cols='8'; # background color $bgc='#336666'; # text color $txtclr='#99ff66'; # font size $fntsze='14pt'; ########################################## $root = $ENV{'SERVER_NAME'}; $script = $ENV{'SCRIPT_NAME'}; use CGI qw(param); $file = param('file'); print "Content-type:text/html\n\n"; if ($file) { &do_stuff; } else { &disply_img; } sub disply_img { $direct = `dirname $script`; chomp($direct); print qq~