Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
Posted By: a2ploggerwhy there is no response sidtheduck ?well ... frankly, because I have been busy and haven't had the time. :D
// no such caption, perhaps we have better luck with path?
if (!$picture) {
$filepath = join("/",$names);
$sql = "SELECT *
FROM `".TABLE_PREFIX."pictures`
WHERE `path`='" . mysql_real_escape_string($filepath)."'
AND `parent_album`=".intval($album["id"]);
$result = run_query($sql);
$picture = mysql_fetch_assoc($result);
}
// No such caption, perhaps we have better luck with path?
if (!$picture) {
// Check if it's an RSS feed for the picture comments
while (!empty($names['arg1']) && $names['arg1'] == 'feed') {
$feed = array_pop($names);
}
$filepath = join('/', $names);
$like_match = array('_', '%');
$like_replace = array('\_', '\%');
$filepath = str_replace($like_match, $like_replace, $filepath);
$sql = "SELECT *
FROM `".TABLE_PREFIX."pictures`
WHERE `path` LIKE '".$filepath.".%'
AND `parent_album`=".intval($album['id']);
$result = run_query($sql);
$picture = mysql_fetch_assoc($result);
}
1 to 9 of 9