Gig Posters! Collapse \n
\n"; echo "
"; echo "
"; foreach($files as $file) { $filethumb = substr($file, -10, 6); //should return -thumb or gibberish if not thumbnail $filesuffix = substr($file, -4); //returns .jpg if($filethumb != "-thumb"){ $filename = substr($file, 0, -4); //should return filename minus extension echo ''."\n\t"; echo ''."\n"; echo ''; }; } echo "
"; $dir = 'images/posters/'; $poster = scandir($dir, 1); foreach($poster as $file) { $dircheck = $dir . $file; if( $file == ".." || $file == "."){ /*ignores parent directories*/ } elseif(is_dir($dircheck)) { $files = glob($dircheck . "/*.{jpg,png,gif}", GLOB_BRACE); $file = substr($file, 11); $copyright = $dircheck . '/copyright.txt'; echo "
"; echo "

Check out some old Gig Posters! Expand

\n"; echo "
"; foreach($files as $subfile) { $filethumb = substr($subfile, -10, 6); //should return -thumb or gibberish if not thumbnail $filesuffix = substr($subfile, -4); //returns .jpg if($filethumb != "-thumb"){ $filename = substr($subfile, 0, -4); //should return filename minus extension echo "\n\t"; echo ''."\n"; echo ''; }; } echo "
"; echo "
"; } } echo "
"; } ?> "; echo "$file_date

$file Expand

\n"; if (file_exists($copyright)) { $copyrightcontents = file_get_contents($copyright, true); echo 'Images credited to: ',$copyrightcontents,''."\n"; } echo "
\n"; if($copyrightcontents){ $copyrightcontents = strip_tags($copyrightcontents); $copyrightfooter = ", Image credited to: " . $copyrightcontents; }; echo "
"; foreach($files as $subfile) { $filethumb = substr($subfile, -10, 6); //should return -thumb or gibberish if not thumbnail $filesuffix = substr($subfile, -4); //returns .jpg if($filethumb != "-thumb"){ $filename = substr($subfile, 0, -4); //should return filename minus extension echo "\n\t"; echo ''."\n"; echo ''; }; } echo "
"; echo "
"; } } $files = glob('images/photos/*.{jpg,png,gif}', GLOB_BRACE); if($files != null){ echo "

Random Photos Expand

\n
\n"; echo "
"; foreach($files as $file) { $filethumb = substr($file, -10, 6); //should return -thumb or gibberish if not thumbnail $filesuffix = substr($file, -4); //returns .jpg if($filethumb != "-thumb"){ $filename = substr($file, 0, -4); //should return filename minus extension echo ''."\n\t"; echo ''."\n"; echo ''; }; } echo "
"; } ?>