$cover = "$path/index.jpg";
if (!file_exists($cover)) $cover = 'foto/index.jpg';
if (is_link($cover)) {
$cover = preg_replace('{^(?:\.\./)*(?=data/)}', 'thumb/100/', readlink($cover));
}
$cover = "$path/index.jpg";
if (!file_exists($cover)) $cover = 'foto/index.jpg';
if (is_link($cover)) {
$cover = preg_replace('{^(?:\.\./)*(?=data/)}', 'thumb/100/', readlink($cover));
}
$html .= "<figcaption>$album</figcaption>";
if (!$User->login and file_exists("$path/.private")) {
$html = '<s title="bewoners">'.$html.'</s>';
}
$html = "<figure>$html</figure>";
$html .= "<figcaption>$album</figcaption>";
if (!$User->login and file_exists("$path/.private")) {
$html = '<s title="bewoners">'.$html.'</s>';
}
$html = "<figure>$html</figure>";
- printf('<li id="%s"><a href="%s">%s</a>'."\n", $album, "/$path", $html);
+ printf('<li id="%s">', $album);
+ printf('<a href="/%s">%s</a>'."\n", htmlspecialchars($path), $html);