- Successfully imported 1731 WordPress posts to Hugo markdown format - Migrated 204+ images from archive to static directory - Copied standalone directories (curtain, farm, gobbler, house, images, party, revcemetery, railsday, birthday) - Fixed all internal links to use /legacy prefix for archived content - Remapped archive links to point to correct Hugo posts - Fixed Louisville Georgia Cemetery post rendering issue 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
83 lines
2.4 KiB
PHP
Executable File
83 lines
2.4 KiB
PHP
Executable File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<title>Revolutionary War Cemetery -- Louisville, Georgia</title>
|
|
<link rel="stylesheet" href="http://www.ericwagoner.com/weblog/styles-site.css" type="text/css" />
|
|
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
</HEAD>
|
|
<body>
|
|
<?
|
|
include("config.inc");
|
|
include("functions.inc");
|
|
|
|
$version = "2.0.2";
|
|
|
|
preg_match("/(.*\/).*$/",$SCRIPT_FILENAME,$matches);
|
|
|
|
$realbase = $matches[1] . $pix_base;
|
|
$dynbase = $matches[1] . $dyn_base;
|
|
|
|
$imgbase = dirname($SCRIPT_NAME);
|
|
$image = $_GET["image"];
|
|
$dispsize = $_GET["dispsize"];
|
|
($imgbase == '/') and $imgbase = '';
|
|
|
|
if ($dispsize == '') $dispsize = $default_size;
|
|
if (preg_match("/\.\./",$pic) or preg_match("/\.\./",$album)) {
|
|
print "Please refrain from trying to access unauthorized files in this manner.<br>";
|
|
print "Have a nice day.";
|
|
} else if ($mode == 'home' or $mode == '') {
|
|
clearstatcache();
|
|
$sourcefile = "$realbase/$image.jpg";
|
|
$srcsize = GetImageSize("$sourcefile");
|
|
if ($dispsize >= $srcsize[0]) {
|
|
$dispsize = "Original";
|
|
}
|
|
if ($dispsize == 'Original') {
|
|
$viewfile = "$realbase/$image.jpg";
|
|
$viewpic = "$image.jpg";
|
|
$imgsrc = "/$pix_base/$viewpic";
|
|
} else {
|
|
$viewpic = $image . "_scaled_$dispsize.jpg";
|
|
$viewfile = "$dynbase/$viewpic";
|
|
$imgsrc = "/$dyn_base/$viewpic";
|
|
}
|
|
if (!file_exists($viewfile)) {
|
|
createImage($dispsize,$sourcefile,$viewfile);
|
|
}
|
|
$viewsize = GetImageSize("$viewfile");
|
|
$sourcefile = "$realbase/$image.jpg";
|
|
print " <IMG hspace=3 vspace=3 $thumbsize[3] BORDER=0 SRC=\"" . $imgbase . "$imgsrc\">\n";
|
|
print " <FORM METHOD=GET>\n";
|
|
print " Resize the image here: \n";
|
|
print " <SELECT onChange='submit();' name=dispsize>\n";
|
|
while (list($foo,$dsize) = each($viewsizes)) {
|
|
if ($dsize < $srcsize[0] or $dsize == 'Original') {
|
|
print " <OPTION VALUE=$dsize";
|
|
$dsize == $dispsize and print " SELECTED";
|
|
if ($dsize == "Original") {
|
|
print ">Original\n";
|
|
} else {
|
|
print ">$dsize";
|
|
print "x";
|
|
print ceil($dsize * $srcsize[1] / $srcsize[0]);
|
|
print "\n";
|
|
}
|
|
}
|
|
}
|
|
print " <input type=hidden name=image value=\"$image\">\n";
|
|
print " <br>(Original Photo Size = $srcsize[0]x$srcsize[1])\n </FORM>\n";
|
|
print " </td>\n <td>\n \n";
|
|
} else {
|
|
print " No picture this day.\n";
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
</body></html>
|
|
|
|
|
|
|