Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
if (!empty($names['picture'])) {
// Check for album level pagination first
if ($names['picture'] == 'page' && !empty($names['arg1']) && is_numeric($names['arg1']) && intval($names['arg1']) == $names['arg1']) {
return array('level' => 'album', 'id' => $album['id'], 'plog_page' => intval($names['arg1']));
}
$sql = "SELECT *
FROM `".PLOGGER_TABLE_PREFIX."pictures`
WHERE `caption`='".$names['picture']."'
AND `parent_album`=".intval($album['id']);
$result = run_query($sql);
if (!empty($names['picture'])) {
// Check for album level pagination first
if ($names['picture'] == 'page' && !empty($names['arg1']) && is_numeric($names['arg1']) && intval($names['arg1']) == $names['arg1']) {
return array('level' => 'album', 'id' => $album['id'], 'plog_page' => intval($names['arg1']));
}
$names['picture'] = substr($names['picture'], 0, strpos($names['picture'], '.html'));
$sql = "SELECT *
FROM `".PLOGGER_TABLE_PREFIX."pictures`
WHERE `caption`='".$names['picture']."'
AND `parent_album`=".intval($album['id']);
$result = run_query($sql);
1 to 6 of 6