Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<?
include("header.html");
?>
<?
# program specific text
include($type.$year.".inc");
$portrait = array();
$landscape = array();
if ($dir = @opendir("./")) {
while (($file = readdir($dir)) !== false) {
if (ereg("(jpg)\$",$file) && ereg("^$type",$file) && ereg("$year",$file))
{
$imagesize = getimagesize("./".$file);
#print $file . "<br>";
# figure out landscape/portrait,for arrays
$wth = intval($imagesize[0]);
$hgt = intval($imagesize[1]);
if (intval($hgt) > intval($wth))
{
array_push($portrait, $file);
}
else
{
array_push($landscape, $file);
}
}
}
closedir($dir);
}
print "<pre>";
print_r ($landscape);
print "</pre>";
# rifle through arrays, grouping jpg orientations together.
foreach($landscape as $val)
{
print $val."<br>";
#$imagesize = GetImageSize("./".$val);
$wth = intval($imagesize[0]);
$hgt = intval($imagesize[1]);
$factor = 150;
$mult = $wth / $factor;
$phgt = $hgt / $mult;
$pwth = $wth / $mult;
#print "<a href='$val'><img src='$val' width=$pwth height=$phgt border=0></a>\n";
}
foreach($portrait as $val)
{
#print "$val<br>";
#$imagesize = GetImageSize("./".$val);
$wth = intval($imagesize[0]);
$hgt = intval($imagesize[1]);
$factor = 150;
$mult = $hgt / $factor;
$phgt = $hgt / $mult;
$pwth = $wth / $mult;
#print "<a href='$val'><img src='$val' width=$pwth height=$phgt border=0></a>\n";
}
include("footer.html");
?>
Array
(
[0] => ma-2004-18.jpg
[1] => ma-2004-19.jpg
[2] => ma-2004-21.jpg
[3] => ma-2004-22.jpg
[4] => ma-2004-23.jpg
[5] => ma-2004-24.jpg
[6] => ma-2004-26.jpg
[7] => ma-2004-27.jpg
[8] => ma-2004-29.jpg
[9] => ma-2004-30.jpg
[10] => ma-2004-40.jpg
[11] => ma-2004-38.jpg
)
Array
Array
Array
Array
Array
Array
Array
Array
Array
Array
Array
Array