} //If it is a numeric album get the name and set variables if (is_numeric($album)) { $album_name_keyword = get_album_name($album); $CURRENT_CAT_NAME = $album_name_keyword['title']; $META_ALBUM_SET = "AND aid IN (" . (int) $_GET['album'] . ")" . $ALBUM_SET; //Set the album to last uploaded $album = 'lastup'; } //If the album is not set set it to lastup - this is the default if (!isset($album)) { $album = 'lastup'; } if (isset($_GET['cat']) && $_GET['cat'] > 0) { $cat = $_GET['cat']; $album_name_keyword = easyrss_get_cat_name($cat); $CURRENT_CAT_NAME = $album_name_keyword['name']; get_meta_album_set($cat, $META_ALBUM_SET); } if (isset($_GET['cat']) && $_GET['cat'] < 0) { $cat = $_GET['cat']; $album_name_keyword = get_album_name(-$cat); $CURRENT_CAT_NAME = $album_name_keyword['title']; $META_ALBUM_SET = "AND aid IN (" . -$cat . ")" . $ALBUM_SET; } //Changes these to point to your site if the following is not giving correct results. $link_url = $CONFIG['ecards_more_pic_target'] . "displayimage.php?pos=-"; $image_url = $CONFIG['ecards_more_pic_target'] . "albums/"; $META_ALBUM_SET .= $forbidden_set_string; $data = get_pic_data($album, $thumb_count, $album_name, $lower_limit, $thumb_per_page); header("content-type: text/xml");
function easyrss_footer($html) { global $CONFIG, $lang_plugin_easyrss; require 'plugins/easy_rss/include/init.inc.php'; if (($CONFIG['plugin_easyrss_showrss'] || $CONFIG['plugin_easyrss_showgoogle']) && in_array($_SERVER[SCRIPT_NAME], array('index.php', 'thumbnails.php', 'displayimage.php'))) { global $CONFIG; $album = $_GET['album']; $cat = $_GET['cat']; $feed = str_replace("http://", "", $CONFIG[ecards_more_pic_target]) . "rss.php"; if ($album) { $feed .= "?album=" . $album; } else { $feed .= "?album=lastup"; } if ($cat) { if ($cat > 10000) { $feed .= "?album=lastupby&uid=" . ($cat - 10000); } else { $feed .= "&cat=" . $cat; } } $html .= "<center>\n"; if ($CONFIG['plugin_easyrss_showrss']) { $html .= '<img src="images/spacer.gif" border=0 width=12 height=17>'; $rss_ico = '<a href="http://' . $feed . '">'; $rss_ico .= '<img src="plugins/easy_rss/rss.gif" border=0 alt="' . $lang_plugin_easyrss['alt_rss_feed'] . '"></a>'; $html .= "{$rss_ico}\n"; $html .= '<img src="images/spacer.gif" border=0 width=12 height=17>'; } if ($CONFIG['plugin_easyrss_showgoogle']) { $html .= '<img src="images/spacer.gif" border=0 width=12 height=17>'; $goog_ico = '<a href="http://fusion.google.com/add?feedurl='; $goog_ico .= 'http%3A//' . $feed; $goog_ico .= '"><img src="http://buttons.googlesyndication.com/fusion/add.gif" width="104" height="17" border="0" alt="' . $lang_plugin_easyrss['alt_google'] . '"></a>'; $html .= "{$goog_ico}\n"; $html .= '<img src="images/spacer.gif" border=0 width=12 height=17>'; } if ($CONFIG['plugin_easyrss_showyahoo']) { $html .= '<img src="images/spacer.gif" border=0 width=12 height=17>'; $name = ""; if (is_numeric($album)) { $name = get_album_name($album); $name = $CONFIG[gallery_name] . " - " . $name['title']; } else { if (isset($cat) && $cat > 0) { if ($cat < 10000) { $name = easyrss_get_cat_name($cat); $name = $CONFIG[gallery_name] . " - " . $name['name']; } else { $name = $CONFIG[gallery_name] . " - " . get_username($cat - 10000); } } else { $name = $CONFIG[gallery_name]; } } $yahoo_ico = '<a href="http://us.rd.yahoo.com/my/atm/'; $yahoo_ico .= $CONFIG[gallery_name] . '/'; $yahoo_ico .= $name; $yahoo_ico .= '/*http://add.my.yahoo.com/rss?url=http%3A//'; $yahoo_ico .= $feed; $yahoo_ico .= '"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif" width="91" height="17" border="0" alt="' . $lang_plugin_easyrss['alt_yahoo'] . '"></a>'; $html .= "{$yahoo_ico}\n"; $html .= '<img src="images/spacer.gif" border=0 width=12 height=17>'; } $html .= "</center>\n"; } return $html; }