%s
", $_SERVER['PHP_SELF'], $file, $file); #if ($str == "" or preg_match("/^#/", $str)) continue; list($dir, $title) = array($file, $file); $titles[$file] = $title; } closedir($dh); function datesort($a,$b) { list($a,$x) = split("_",$a); list($b,$x) = split("_",$b); list($m,$d,$y) = split("-", $a); $a = date("l, F j, Y", mktime(0,0,0,$m,$d,$y)); list($m,$d,$y) = split("-", $b); $b = date("l, F j, Y", mktime(0,0,0,$m,$d,$y)); if (strtotime($a) == strtotime($b)) { return 0; } if (strtotime($a) <= strtotime($b)) { return 1; } else { return -1;} } usort($titles, "datesort"); ?> Angryox.com: Home Addition Construction Images <? echo isset($path)?"from ".$path:"2004-2005"; ?>

", $_SERVER['PHP_SELF'], $v, $v, $date); } ?>

Our house went under construction June 15, 2004. We're adding about 850 square feet to our house, including adding a first floor bathroom, expanding the kitchen and dining room, adding a family room, and adding a master suite (master bath, walk-in closet and bedroom) on the second floor. WOW! Here are the pictures.

Directory: Date:
%s%s
"; print_r($imag); echo ""; if (isset($HTTP_GET_VARS['img'])) { $count = $HTTP_GET_VARS['img']; } else $count = 1; echo "
"; printf("%s Thumbnails: %s [ ", $_SERVER['PHP_SELF'], $path, $GLOBALS['titles'][$path], $path); if ($count == 1) echo "< < Back"; else printf("< < Back", $_SERVER['PHP_SELF'], $path, $count - 1); printf(" | Home | ", $_SERVER['PHP_SELF']); if ($count == count($imag)) echo "Next > >"; else printf("Next > >", $_SERVER['PHP_SELF'], $path, $count + 1); echo " ]"; ?> "; echo "".$imag[$count]."
"; echo "
"; } function thumbnails($path) { if (!is_dir($GLOBALS['myimgdir'].$path."/thumbs")) { mkdir($GLOBALS['myimgdir'].$path."/thumbs"); } $fd = opendir($GLOBALS['myimgdir'].$path) or die("Can't open ".$GLOBALS['myimgdir'].$path); while($file = readdir($fd)) { if (!eregi("\.jpg$", $file)) continue; if (!file_exists($GLOBALS['myimgdir'].$path."/thumbs/".$file)) { $cmd = "/usr/local/bin/convert ".$GLOBALS['myimgdir'].$path."/".$file." -resize 120 ".$GLOBALS['myimgdir'].$path."/thumbs/".$file; $foo = `$cmd`; } } $image = array(); echo "
"; printf("%s Thumbnails: [ ", $_SERVER['PHP_SELF'], $path, $GLOBALS['titles'][$path]); printf(" Home ", $_SERVER['PHP_SELF']); echo " ]"; ?>  
"; $fd = opendir($GLOBALS['myimgdir'].$path."/thumbs") or die("Can't open dir."); while($file = readdir($fd)) { if (!eregi("\.jpg$", $file)) continue; $image[] = $file; } natsort($image); $count=1; foreach($image as $v) { $imag[$count++] = $v; } echo ""; $max = 4; $cur = 0; foreach($imag as $k => $v) { if ($cur%$max == 0) echo ""; printf("\n", $_SERVER['PHP_SELF'], $path, $k, $v, $GLOBALS['mypath'], $path, $v); $cur++; } echo ""; echo "
%s
"; echo "
"; exit; }