css/main.css" />
req: $req

"; //I always feel like I've breathed life into Frankenstein's monster when I finally get a tricky programming project to work. //INDEX PAGE if ($req === "" || $req === "/" || $req === "index.html" || $req === "index.php" || $req === "/h/"){ print "

Photo logs of my travels are ordered roughly chronologically, but also with concern to grouping photos together based on theme. You may find it helpful to read these logs in fullscreen mode (F11 toggle on most browsers)

"; //print(""); $entries = array( /* "Peru" => array( "2012/03-20-bike" => "Pittsburgh to DC Bike Ride", "2012/03-20-bike" => "Pittsburgh to DC Bike Ride", "2012/03-20-bike" => "Pittsburgh to DC Bike Ride" ),*/ "Spring 2012" => array( "2012/03-20-bike" => "Pittsburgh to DC Bike Ride" ), "Bike Rides in New Zealand" => array( "2011/11-06-bay-ride" => "Rides Around the Bay", "2011/10-27-hutt-ride" => "Ride Through the Hutt Valley", "2011/10-20-porirua-ride" => "Ride to Porirua", "2011/09-10-coast-rides" => "Rides Around the Coast", "2011/11-09-makara-rides" => "Makara Beach Rides" ), "Mid-Semester Break in New Zealand" => array( "2011/09-03-west-coast" => "West Coast of the South Island", "2011/08-30-queenstown" => "Queenstown", "2011/08-27-otago" => "The Otago Peninsula", "2011/08-25-dunedin" => "Dunedin", "2011/08-23-cch" => "Christchurch", ), "Studying Abroad in New Zealand" => array( "2011/10-25-mini-golf" => "Mini-Golf", "2011/10-18-hike" => "Wind Turbine Tramp", "2011/09-28-matthews" => "Mt. Matthews Tramp", "2011/08-20-town" => "Differences in New Zealand", "2011/08-21-home" => "Living in Wellington", "2011/08-20-town" => "The City of Wellington", "2011/08-15-adv-weekend" => "\"Adventure\" Weekend", "2011/07-02-orientation" => "Orientation", //"2011/06-30-journey" => "Journey to New Zealand", ), "Early 2011" => array( //"2011/06-15-lego" => "Lego Kids' Fest", "2011/06-10-buff" => "Buffalo, NY", "2011/05-31-det" => "Detroit Electronic Music Festival" ) ); foreach ($entries as $category => $ent){ print("

$category

"); } //BLOG ENTRY } else { print "

<<< Home

"; //Load the styelsheet and parser $xsl = new DOMDocument(); if ($dev){ $xsl->load("xslt/photoblog-loc.xsl"); } else { $xsl->load("xslt/photoblog.xsl"); } $xslt = new XSLTProcessor(); $xslt->importStylesheet($xsl); //load the xml doc, stripping the leading slash @hack $xml = new DOMDocument(); $req = substr($req, 1, strlen($req)); $xml->load($req . ".xml"); echo $xslt->transformToXML($xml); print "

<<< Home

"; } ?>

Valid XHTML 1.0 Strict

© Copyright 2008-2011, all rights reserved.
All photos were taken by me unless otherwise noted.