Pug1Off

Media

Gallery

<% if request.querystring("album") <> "" then photos = getphotos(request.querystring("album")) Set photos1 = JSON.parse(photos) ' parse to get the headings for each photo in photos1.data.keys() ' loop photos picsource = photos1.data.get(photo).source %>
<% next else albums = getalbums() Set data1 = JSON.parse(albums) ' parse to get the headings for each album in data1.data.keys() ' loop albums albumcoverphoto = "" albumname = "" on error resume next albumid = data1.data.get(album).id albumname = data1.data.get(album).name albumcreated = data1.data.get(album).created_time albumcoverphoto = data1.data.get(album).cover_photo photos = getphotos(albumid) Set photos1 = JSON.parse(photos) ' parse to get the headings albumcover = photos1.data.get(0).source if albumcoverphoto <> "" and albumname <> "Untitled Album" and albumname <> "Profile Pictures" and albumname <> "Cover Photos" and albumname <> "Timeline Photos" then %>

<%=albumname%>
<% end if next end if %>