* License: GPLv2 */ include("info.php"); if(! isset( $css ) ) { $css = "/photos/style.css"; } // Read directory entries and look for files. $photodir = dir( getcwd() ); while( false !== ( $entry = $photodir->read() ) ) { $parts = pathinfo( $entry ); if( preg_match( "/(jp.{1,2}|png|gif)/", $parts['extension'] ) ) { $entries[] = $entry; } } $photodir->close(); // Format XHTML (yay, passes validation!) $header = "\n"; $header .= "\n"; $header .= ""; $header .= "
\n"; $header .= "\t"; $header .= "\t