Teams List
"; foreach($teams_folder as $file) { if( $file != '.' and $file != '..' ) { print "
$file "; } } print " "; } ?>
Welcome to John Nielsen's Bobsled Photos Home page!

The pictures here are organized according to team. Once you click on a team, you can see pictures of that team organized according to event.

All pictures are for sale through PayPal. Please e-mail me at bobsledphotos@friendshiptours.org if you have any questions. About John Nielsen

Stuff about John Nielsen.

More stuff about John Nielsen. $team

"; $team_folder = scandir("./pictures/$team"); if( $team_folder ) { $event_counter = 0; print " "; foreach($team_folder as $file) { if( $file == '.' or $file == '..' ) { continue; } print " "; $event_counter++; if( $event_counter == 4 ) { print "\n"; $event_counter = 0; } } print "

$file
"; } } //======================================= // Displays a specific event of a // specific team //======================================= function DisplayTeamEvent($team,$event) { print " $team :: $event

"; $event_folder = scandir("./pictures/$team/$event"); if( $event_folder ) { $picture_counter = 0; print " "; foreach($event_folder as $file) { if( $file == '.' or $file == '..' or (true == strpos($file,".txt")) ) { continue; } print " "; $picture_counter++; if( $picture_counter == 5 ) { print "\n"; $picture_counter = 0; } } print "

$file
"; } } //======================================= // Displays a specific picture of a // specific event of a specific team //======================================= function DisplayTeamEventPicture($team,$event,$picture) { $picture_details = file_get_contents("./pictures/$team/$event/$picture.txt"); $details = explode("\n",$picture_details); $details[1] = stripslashes($details[1]); print " $team :: $event :: $picture


Description: {$details[1]}

Price: \${$details[0]}
"; } ?>