(.+)", $data, $regs)) {
$title = $regs[1];
$entry["title"] = $title;
} else {
continue;
}
// Date: This only works if you put a comment in you Picasa "header.html" template like:
//
if (ereg("date=\"([^\"]+)\"", $data, $regs)) {
$entry["date"] = " " . $regs[1] . "";
} else {
$entry["date"] = "";
}
// Find the datails for the first image in the album, so make sure the first one is
// always good enough to be used in the index!
if (ereg("src=\"([^\"]+)\" width=\"([^\"]+)\" height=\"([^\"]+)\"", $data, $regs)) {
$entry["thumb"] = $regs[1];
$entry["thumburl"] = $title . "/" . $regs[1];
$entry["width"] = $regs[2];
$entry["height"] = $regs[3];
} else {
continue;
}
$entries[$title] = $entry;
$sort[$title] = $mtime;
unset($entry);
}
arsort($sort, SORT_NUMERIC);
reset($sort);
$i = 0;
foreach ($sort as $key => $value) {
$i++;
$entry = $entries[$key];
$img = " ";
echo "" .
$img . " " . $entry["title"] . "" . $entry["date"] . " | \n";
// change this number to however many albums you want on one line:
if ($i == 5) {
echo " \n";
$i = 0;
}
}
?>
The galleries were created using Picasa. This index is a custom PHP script,
which you can download to use on your own website here.
|