'; preg_match("/(.*)index\.php/i", $_SERVER["PHP_SELF"], $match2); if ((isset ($_GET['album']) && $_GET['album'] != $_SESSION['thisAlbum']) || $_SESSION['thisMain']!=$match2[1] ) { unset($_SESSION['dropdown']); unset($_SESSION['thisAlbum']); unset($_SESSION['ci']); unset($_SESSION['jpegs']); unset($_SESSION['dropdown']); unset($_SESSION['firstKey']); unset($_SESSION['noofimages']); unset ($_SESSION['thumbKeys']); $_SESSION['thisMain']=$match2[1]; $_SESSION['thisAlbum']=$_GET['album']; } $instructions =""; if (!isset ($_SESSION['thisAlbum']) || !isset( $_SESSION['dropdown']) || $_GET['a']=='list') { $dropDown=""; if ($_SESSION['thisAlbum']==$dir) { $selected = "selected"; $star="*"; } else { $selected = ""; $star=""; } $dropDown .=""; } } $dropDown .=""; $instructions .="
$description
"; $_SESSION['dropdown']=$dropDown; } if (!isset ($_SESSION['thisAlbum']) || $_GET['a']=='list') { print_box ("

Available Photo Albums
".ucfirst($_SESSION['thisAlbum'])."

"); print_box ($instructions); print ""; } else { preg_match("/(.*)index\.php/i", $_SERVER["SCRIPT_FILENAME"], $match); preg_match("/(.*)index\.php/i", $_SERVER["PHP_SELF"], $match2); $description=file_get_contents($match[1].$_SESSION['thisAlbum']."/description.txt"); $slideshow= new showImage ($match[1].$_SESSION['thisAlbum']."/", $_SESSION['thisAlbum']."/", $description); } ?>