#!/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 ########################################## # title $title='Backgrounds'; # header $header='Favorite Backs'; # thumbnail size $tsz='70'; # table colums $cols='8'; # background color $bgc='#336666'; # text color $txtclr='#99ff66'; # link color $lnkclr='#66ffcc'; # vlink color $vlnkclr='#66cccc'; # font size $fntsze='12pt'; ########################################## $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~
Info Tile | ~;
$i++;
if($i==$cols)
{
print "