\r\n";
$iindex .= "\t
\r\n";
foreach (glob("*", GLOB_ONLYDIR) as $directory) {
if (is_readable($directory."/photos.rss")) {
$reset = 0;
$count++;
$data = @simplexml_load_file($directory."/photos.rss");
foreach ($data->channel as $channel) {
$gallerytitle = $channel->title;
$gallerydescription = $channel->description;
foreach ($channel->item as $items) {
$reset++;
$thumbnail = "bin/images/thumbnails/".$items->guid.".jpg";
if ($reset == 1 && is_readable($directory."/".$thumbnail)) {
$size = getimagesize($directory."/".$thumbnail);
$iindex .= "\t\t| \r\n";
$iindex .= "\t\t\t  \r\n";
$iindex .= "\t\t\t".$gallerytitle." \r\n";
$iindex .= "\t\t\t".$gallerydescription." \r\n";
$iindex .= "\t\t | \r\n";
if ($count % $cells == 0) {
$iindex .= "\t
\r\n";
$iindex .= "\t\r\n";
}
}
}
}
}
}
$iindex .= "\t
\r\n";
$iindex .= "\r\n\r\n";
return $iindex;
}
?>