Bildvisning

$val) { $dela_image[count($dela_image)] = $val; }
$dela_gal = $dela_image[0]; $dela_pid = $dela_image[1];
if ($dela_pid) {
$dela_pic = nggdb::find_image($dela_pid);
$dela_pic->description = html_entity_decode( stripslashes(nggGallery::i18n($dela_pic->description, ’pic_’ . $dela_pic->pid . ’_description’)) );
echo ”

no images were found

”;
if (preg_match(”/\:\:/”,$dela_pic->description, $dela_m)) {
echo substr($dela_pic->description,0,strpos($dela_pic->description,”::”));
} else {
echo $dela_pic->description;
}
echo ”
\n”;
echo ”

filename .”\” data-send=\”true\” data-width=\”620\” data-show-faces=\”false\” style=\”margin-left: 10px; text-align:center;\”>

\n\n \n\n”;
$gsql = ”SELECT * FROM `wp_posts` WHERE `post_type` LIKE ’post’ AND (`post_content` LIKE ’%gallery id=”. $dela_gal .”%’ OR `post_content` LIKE ’%pic id=”. $dela_pid .”%’)”;
if ($gres = mysql_query($gsql)) { echo ”Inlägg\n”; }
while ($grow = mysql_fetch_array($gres, MYSQL_ASSOC)) {
echo ”• ”. $grow[post_title] .”\n”;
}
$gsql = ”SELECT * FROM `wp_ngg_gallery` WHERE `gid` = ”. $dela_gal .” LIMIT 1″;
$gres = mysql_query($gsql);
while ($grow = mysql_fetch_array($gres, MYSQL_ASSOC)) {
echo ”


Galleri\n • ”. $grow[title] .” [Visa bildspel]\n”;
}
} else {
echo ”

no images were found

\n”;
}
?>

Lämna ett svar

Din e-postadress kommer inte publiceras. Obligatoriska fält är märkta *