'; } else if ( ($mode == 'showall') && ($set == $currentSet) ) { $output = $output.'Would show '.$setInfo['dir'].'/'.$pictureInfo['file'].'
'; $output = $output.'Comment: '.$pictureInfo['COMMENT'].'
'; } } $currentTag = ""; } // process data between tags function characterData($parser, $data) { global $pictureInfo, $setInfo, $currentTag, $mode, $lastDate, $inImage; if ($inImage) { $pictureInfo[$currentTag] = $data; } else { $setInfo[$currentTag] = $data; } } // // *** End of XML control content *** // // // *** Code to generate content *** // // Include the header; head($style, 'Pictures', ''); // initialize parser $xml_parser = xml_parser_create(); $file = 'content/pictures.xml'; if ($mode == 'index') { ?>
Want to see what we look like and some of the stupid stuff we've done then check out the picture sets, the interactive group shots should let you put some names to the faces (or faces to the names). I've got some videos that you can check out as well.
Update:This is picture viewer version 2, a server-side system using PHP and XML as such it should work on any machine. If it doesn't then please let me know.
'; } // read and parse data while ( ($data = fgets($fp, 4096)) ) { // error handler if (!xml_parse($xml_parser, $data, feof($fp) )) { die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); } } if ($mode == 'index') { echo ''; } // clean up xml_parser_free($xml_parser); // Include the footer; foot($style); ?>