if(isset($_GET['name']))
{
$return = '
';
/*
$images = glob("images/".$_GET['name']."/" . "*.jpg");
//print each file name
foreach($images as $image)
{
$return.='
-
';
}
*/
$return .= '';
$return .="
";
if(file_exists('images/'.$_GET['name'].'/description.html'))
$return.=file_get_contents('images/'.$_GET['name'].'/description.html');
$return.='
';
/*
if(sizeof($images) > 1)
{
echo '
';
}
*/
echo $return;
} else {
echo "Gallery not found. Please try again.";
}
?>