<%@page import="java.util.*,com.somaloft.util.SoMaLofTUtils,com.adult.*"%><% String domain = "tube4gay.com";//request.getParameter("domain"); //String domain = "nextbigtube.com";//request.getParameter("domain"); //String domain = "m4mflix.com";//request.getParameter("domain"); String tag = ""; //request.getParameter("tag"); int displayOption = T9XAdultGalleryFlash.DISPLAY_OPTION_RANDOM; boolean showPopupPlayer = false; String collectionId = null; String videoId = null; int videoNumber = -1; String displayTitle = ""; String metaDescription = ""; String folderNames[] = T9XAdultGalleryFlash.folderNames; //String folderNames[] = {"home/", "new/", "collections/", "videos/", "live/", "dating/"}; String displayURL = "sex-porn-tube-"; String requestURL = request.getRequestURL().toString(); ArrayList alRows = new ArrayList(); Hashtable htRows = new Hashtable(); int numberOfRowsPerPage = 5; int numberOfColumnsPerRow = 4; int numberOfImagesPerPage = numberOfRowsPerPage * numberOfColumnsPerRow; int startRow = 0; int pageOffset = 0; int galleryType = T9XAdultGalleryFlash.TYPE_STRAIGHT; int videoType = T9XAdultGalleryFlash.VIDEO_TUBE; if (!request.getServerName().equals("localhost")) { domain = request.getServerName().replace("www.", "").toLowerCase(); } if (domain.contains("gay") || domain.contains("m4m")) { galleryType = T9XAdultGalleryFlash.TYPE_GAY; } try { startRow = Integer.parseInt(request.getParameter("pgid")) - pageOffset; } catch (Exception e) { startRow = 0; } if (request.getParameter("dopt") != null) { try { displayOption = Integer.parseInt(request.getParameter("dopt")); } catch (Exception e) { } } else { displayOption = 0; } switch (displayOption) { case T9XAdultGalleryFlash.DISPLAY_OPTION_RANDOM: displayTitle = galleryType != T9XAdultGalleryFlash.TYPE_GAY ? "Porn Tube " : "Gay Tube "; displayTitle += "Movies YouTube style|" + domain.replace(".com", "").toUpperCase() + (startRow == 0 ? " Home Page" : " Page:" + ((startRow / numberOfImagesPerPage) + 1)); metaDescription = (galleryType == T9XAdultGalleryFlash.TYPE_GAY ? "Gay" : "XXX") + " Tube with thousands of Porn Video clips updated several times daily. Hardcore, solo, group sex, orgy, anal, muscle, fetish, asain ebony, latin and other types of videos." + (startRow == 0 ? "" : " Current Page:" + ((startRow / numberOfImagesPerPage) + 1)); // out.println("Sex Porn Tube XXX Porn Movies on " + domain.replace(".com", "").toUpperCase() + " - " + displayTitle + (startRow==0?"":" Page:" + ((startRow / numberOfImagesPerPage) + 1)) + ""); break; case T9XAdultGalleryFlash.DISPLAY_OPTION_LASTADDED: displayTitle = galleryType != T9XAdultGalleryFlash.TYPE_GAY ? "New Sex Porn Tube " : "New Gay Tube Porn "; displayTitle += " on " + domain.replace(".com", "").toUpperCase() + "|Free Porn " + (startRow == 0 ? "" : "-Page:" + ((startRow / numberOfImagesPerPage) + 1)); metaDescription = (galleryType == T9XAdultGalleryFlash.TYPE_GAY ? "Gay" : "XXX") + " Porn Movies ordered by Date. " + (startRow == 0 ? "" : "Currently showing Page " + ((startRow / numberOfImagesPerPage) + 1) + "."); break; case T9XAdultGalleryFlash.DISPLAY_OPTION_COLLECTION: collectionId = request.getParameter("collid"); if (collectionId != null && !collectionId.equals("_sort")) { metaDescription = displayTitle = collectionId.replace('-', ' ').toUpperCase(); } displayTitle += galleryType != T9XAdultGalleryFlash.TYPE_GAY ? " Sex Porn Tube " : " Gay Tube Porn "; displayTitle += "Movie Collection on " + domain.replace(".com", "").toUpperCase() + " free " + (startRow == 0 ? "" : "-Page:" + ((startRow / numberOfImagesPerPage) + 1)); metaDescription = (galleryType == T9XAdultGalleryFlash.TYPE_GAY ? "Gay" : "XXX") + " Porn Movie Collection from " + metaDescription + (startRow == 0 ? "" : " Currently showing Page " + ((startRow / numberOfImagesPerPage) + 1) + "."); break; case T9XAdultGalleryFlash.DISPLAY_OPTION_LIVE: displayTitle += galleryType != T9XAdultGalleryFlash.TYPE_GAY ? " Sex Porn Tube Live Shows by Hot and Sexy Ladies" : " Gay Tube Porn Live Shows by Hot and Sexy Men"; displayTitle += " on " + domain.replace(".com", "").toUpperCase(); metaDescription = "Hot and Sexy" + (galleryType == T9XAdultGalleryFlash.TYPE_GAY ? "Gay" : "XXX") + " performers strip for you and perform live acts for your pleasure."; break; case T9XAdultGalleryFlash.DISPLAY_OPTION_VIDEO_PAGE: videoId = request.getParameter("vidid"); if (videoId != null) { try { if (videoId.indexOf("-") != -1) { videoNumber = Integer.parseInt(videoId.substring(0, videoId.indexOf("-"))); } } catch (NumberFormatException nfe) { } displayTitle = videoId.replace('-', ' ').replace('_', ':').toUpperCase(); metaDescription = displayTitle.replace(".HTML", ""); displayTitle = displayTitle.replace(new Integer(videoNumber).toString(), ""); displayTitle += galleryType != T9XAdultGalleryFlash.TYPE_GAY ? "-Sex Porn Tube Movie" : "-Gay Tube Movie"; metaDescription = (galleryType == T9XAdultGalleryFlash.TYPE_GAY ? " Gay" : " XXX") + " Porn Movie " + metaDescription + "."; } break; } if (request.getParameter("player") != null) { if (request.getParameter("player").equals("pop")) { showPopupPlayer = true; response.addCookie(new Cookie("player", "pop")); } else { showPopupPlayer = false; Cookie cookie = new Cookie("player", "pop"); cookie.setMaxAge(0); response.addCookie(cookie); } } T9XAdultGalleryFlash adultGalleryFlash = T9XAdultGalleryFlash.getInstance(galleryType, domain); if (displayOption == T9XAdultGalleryFlash.DISPLAY_OPTION_VIDEO_PAGE) { if (T9XAdultGalleryFlash.getInstance(galleryType).getAdultGalleryRow(galleryType, videoNumber) == null) { //response.setStatus(response.SC_MOVED_PERMANENTLY); if (SoMaLofTUtils.getLocation().equals(SoMaLofTUtils.LOCATION_REMOTE)) { //String redirectURL = if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { response.sendRedirect("http://tube4gay.com/xxxtra/" + videoId + ".html"); } else { response.sendRedirect("http://nextbigtube.com/xxxtra/" + videoId + ".html"); } return; } } } if (request.getParameter("action") != null) { if (request.getParameter("action").equalsIgnoreCase("update")) { if (request.getParameter("shuffle").equalsIgnoreCase("true")) { out.println("
Starting... Update Cache & Shuffled"); out.println(adultGalleryFlash.updateCachesAndShuffle(galleryType)); out.println("
Updated Cache & Shuffled"); return; } else { out.println("
Starting ... Update Cache No Shuffle"); out.println(adultGalleryFlash.updateCaches(galleryType)); out.println("
Updated Cache No Shuffle"); return; } } else if (request.getParameter("action").equalsIgnoreCase("sitemap")) { out.println(adultGalleryFlash.getSiteMap(domain, "xxxtra", galleryType)); if (request.getParameter("wget") != null) { if (request.getParameter("wget").equalsIgnoreCase("true")) { out.println("wget->" + adultGalleryFlash.getSiteMapWget(domain, "xxxtra", galleryType)); } } return; } else if (request.getParameter("action").equalsIgnoreCase("videositemap")) { out.println(adultGalleryFlash.getVideoSiteMap(domain, galleryType)); return; } else if (request.getParameter("action").equalsIgnoreCase("videositemapfeed") || request.getParameter("action").equalsIgnoreCase("mrssfeed")) { if (request.getParameter("sitename") != null) { out.println(adultGalleryFlash.getMRSS(domain, request.getParameter("sitename"), galleryType)); } else { out.println(adultGalleryFlash.getMRSS(domain, null, galleryType)); } return; } else if (request.getParameter("action").equalsIgnoreCase("collectionssitemap")) { out.println(adultGalleryFlash.getCollectionSiteMap(domain, galleryType)); return; } else if (request.getParameter("action").equalsIgnoreCase("refresh")) { adultGalleryFlash.refreshInstance(galleryType); adultGalleryFlash.getInstance(galleryType); out.println("Refreshed"); return; } else if (request.getParameter("action").equalsIgnoreCase("rssfeed")) { if (request.getParameter("sitename") != null) { out.println(adultGalleryFlash.getRSS(domain, request.getParameter("sitename"), galleryType)); } else { out.println(adultGalleryFlash.getRSS(domain, null, galleryType)); } return; } } if (request.getParameter("vidtype") != null) { try { videoType = Integer.parseInt(request.getParameter("vidtype")); } catch (Exception e) { } } %> <% // Start page display code out.println(""); out.println(""); if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { //out.println(""); //System.out.println(""); out.println(""); out.println(""); displayURL = "gay-tube-"; } else { //out.println(""); out.println(""); out.println(""); displayURL = "sex-porn-tube-"; } out.println("" + displayTitle + ""); out.println(""); %> <% String siteid, initialDelay; if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { initialDelay = "0100"; siteid = "22"; } else { initialDelay = "5000"; siteid = "21"; } out.println("
"); out.println(""); out.println(""); out.println("
"); %>
<% //out.println("
"); out.println("
"); //out.println("
"); // if (domain.toLowerCase().indexOf("gay") >= 0) { // galleryType = AdultGalleryFlash.TYPE_GAY; // } else { // galleryType = AdultGalleryFlash.TYPE_STRAIGHT; // } //out.println("
"); out.println("

"); if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { out.println(" \"Gay"); //out.println("
Gay Tube Video Collections"); } else { if (domain.equals("hawttube.com")) { out.println(" \"Hawt"); } else { out.println(" \"Porn"); } } out.println("

"); out.println("
"); if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { //out.println("\"Fleshlight"); //out.println(""); // System.out.println(Calendar.getInstance().get(Calendar.SECOND)); String linkText = "Watch Straight Guys having Gay Sex with a $1 Trial"; if (Calendar.getInstance().get(Calendar.SECOND) < 3) { out.println(""); } else if (Calendar.getInstance().get(Calendar.SECOND) < 7) { out.println(""); linkText = "$1 trial for 5 sites including Broke Straight Guys"; } else if (Calendar.getInstance().get(Calendar.SECOND) < 10) { linkText = "Think Straight Guys won't have Gay Sex? Think again"; out.println(""); } else if (Calendar.getInstance().get(Calendar.SECOND) < 13) { out.println(""); linkText = "$1 trial for 5 sites including Broke Straight Guys"; } else if (Calendar.getInstance().get(Calendar.SECOND) < 17) { out.println(""); } else if (Calendar.getInstance().get(Calendar.SECOND) < 20) { linkText = "Every Straight Guy has a Price. Your Trial Price $1"; out.println(""); } else if (Calendar.getInstance().get(Calendar.SECOND) < 24) { out.println(""); } else if (Calendar.getInstance().get(Calendar.SECOND) < 27) { linkText = "Every Straight Guy has a Price. Your Trial Price $1"; out.println(""); } else if (Calendar.getInstance().get(Calendar.SECOND) < 30) { out.println(""); linkText = "$1 trial for 5 sites including Broke Straight Guys"; } else if (Calendar.getInstance().get(Calendar.SECOND) < 33) { out.println(""); } else if (Calendar.getInstance().get(Calendar.SECOND) < 38) { out.println(""); linkText = "Every Straight Guy has a Price. Your Trial Price $1"; } else if (Calendar.getInstance().get(Calendar.SECOND) < 41) { linkText = "Think Straight Guys won't have Gay Sex? Think again"; out.println(""); } else if (Calendar.getInstance().get(Calendar.SECOND) < 45) { out.println(""); } else if (Calendar.getInstance().get(Calendar.SECOND) < 48) { out.println(""); linkText = "Every Straight Guy has a Price. Your Trial Price $1"; } else if (Calendar.getInstance().get(Calendar.SECOND) < 54) { linkText = "$1 trial for 5 sites including Broke Straight Guys"; out.println(""); } else if (Calendar.getInstance().get(Calendar.SECOND) < 57) { out.println(""); } else { out.println(""); linkText = "$1 trial for 5 sites including Broke Straight Guys"; } out.println("
" + linkText + "

"); //out.println("\"Broke
"); //out.println("Hot New Site from the producers of Broke Straight Boys
"); //System.out.println(adultGalleryFlash.getBannerLinkcode(tag, galleryType)); //System.out.println(adultGalleryFlash.getBannerLinkcode(tag, galleryType)); } else { // out.println("\"Fucked"); out.println("\"Twisty's"); //out.println(""); } out.println("
"); out.println("
"); if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { String flirt4FreeCode = ""; String aweCode = "" + "" + "" + "" + ""; if (Calendar.getInstance().get(Calendar.MILLISECOND) < 100) { out.println(aweCode); } else { out.println(flirt4FreeCode); } out.println("
"); %>
<% if (Math.random() <= 0.25) { out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/bao/", "http://tube4gay.com/images/banners/x-250/gay-porn-tube-bel-ami-online2.jpg", "Tube 4 Gay Belami Online", 200, -1)); } else if (Math.random() <= 0.5) { out.println(SoMaLofTUtils.getBannerCode("http://gunzblazing.com/hit.php?w=100515&s=36&p=1&c=&t=0&cs=&tool=7", "http://tube4gay.com/images/banners/x-250/gay-porn-boynapped-2.gif", "Tube 4 Gay Boynapped", 200, -1)); } else if (Math.random() <= 0.75) { out.println(SoMaLofTUtils.getBannerCode("http://gunzblazing.com/hit.php?w=100515&s=36&p=1&c=&t=0&cs=&tool=7", "http://tube4gay.com/images/banners/x-250/gay-porn-boynapped.gif", "Tube 4 Gay Boynapped", 200, -1)); } else { out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/bao/", "http://tube4gay.com/images/banners/x-250/gay-sex-tube-bel-ami-online.gif", "Tube 4 Gay Belami Online", 200, -1)); } // out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/bao/", "http://tube4gay.com/images/banners/x-250/gay-sex-tube-bel-ami-online.jpg", "Tube 4 Gay Belami Online", 195, -1)); out.println("
"); %>
<% if (Math.random() <= 0.5) { out.println(SoMaLofTUtils.getBannerCode("http://secure.itsgonnahurt.com/track/MTAyLjEuMS4xLjAuMC4wLjAuMA", "http://hazecash.com/view_banner.php?name=igh-300x300-05.gif&filename=293_name.gif&type=gif&download=1", "Tube 4 Gay It's Gonna Hurt", 200, -1)); } else { out.println(SoMaLofTUtils.getBannerCode("http://secure.hazehim.com/track/MTAyLjEuMi4zLjAuMC4wLjAuMA", "http://hazecash.com/view_banner.php?name=hm-300x300-04.gif&filename=358_name.gif&type=gif&download=1", "Tube 4 Gay Haze Him", 200, -1)); } out.println("
"); out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/cbp/", "http://tube4gay.com/images/banners/x-250/gay-sex-tube-college-boy-physicals1.jpg", "Tube 4 Gay College Boy Physicals", 195, -1)); out.println("
"); %>
<% //
//out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/fm-tv/", "http://tube4gay.com/images/banners/x-250/gay-porn-tube-fratmen-tv.jpg", "Tube 4 Gay Fratmen", 200, -1)); //out.println("
"); out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/bsb/", "http://tube4gay.com/images/banners/x-250/gay-sex-tube-broke-straight-boys.jpg", "Tube 4 Gay Broke Straight Boys", 200, -1)); out.println("
"); %>
<% if (Math.random() <= 0.33) { out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/ylj/", "http://tube4gay.com/images/banners/x-250/gay-sex-tube-you-love-jack1.jpg", "Tube 4 Gay You Love Jack", 200, -1)); } else if (Math.random() <= 0.67) { out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/el/", "http://tube4gay.com/images/banners/x-250/gay-porn-english-lads.gif", "Englis Lads Gay Tube", 200, -1)); } else { out.println(SoMaLofTUtils.getBannerCode("http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=931956-0000&PA=1444322", "http://tube4gay.com/images/banners/x-250/gay-tube-uk-naked-men.jpg", "UK Naked Men Gay Tube", 200, -1)); } out.println("
"); %>
<% if (Math.random() <= 0.33) { out.println(SoMaLofTUtils.getBannerCode("http://hotjocksnicecocks.suite703.com/track/NzU2OS41LjMuMy4xLjAuMC4wLjA", "http://tube4gay.com/images/banners/x-250/gay-porn-hot-jocks-nice-cocks.jpg", "Hot Jocks Nice Cocks Gay Tube", 200, -1)); } else if (Math.random() <= 0.67) { out.println(SoMaLofTUtils.getBannerCode("http://menhardatwork.suite703.com/track/NzU2OS41LjIuMi4xLjAuMC4wLjA", "http://tube4gay.com/images/banners/x-250/gay-porn-men-hard-at-work.jpg", "Men Hard At Work Gay Tube", 200, -1)); } else { out.println(SoMaLofTUtils.getBannerCode("http://mybrothershotfriend.suite703.com/track/NzU2OS41LjQuNC4xLjAuMC4wLjA", "http://tube4gay.com/images/banners/x-250/gay-porn-my-brothers-hot-friend.jpg", "My Brother's Hot Friend Gay Tube", 200, -1)); } out.println("
"); %>
<% //out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/rb", "http://tube4gay.com/images/banners/x-250/gay-sex-tube-randy-blue1.jpg", "Tube 4 Gay Randy Blue", 200, -1)); //out.println("
"); if (Math.random() <= 0.5) { out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/tfwc/", "http://tube4gay.com/images/banners/x-250/gay-sex-tube-twinks-filled-with-cum1.gif", "Tube 4 Gay Twinks Filled with Cum", 200, -1)); } else { out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/cima", "http://tube4gay.com/images/banners/x-250/gay-sex-tube-cum-into-my-ass1.jpg", "Cum Into My Ass", 200, -1)); } //out.println("
"); //out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/bc/", "http://tube4gay.com/images/banners/x-250/blue-cig.jpg", "Blue Cig", 200, -1)); out.println("
"); %>
<% } else { String flirt4FreeCode = ""; String aweCode = ""; if (Calendar.getInstance().get(Calendar.MILLISECOND) < 0) { out.println(aweCode); } else { out.println(flirt4FreeCode); } out.println("
"); %>
<% if (Math.random() <= 0.5) { out.println(""); } else { out.println(""); } out.println("
"); %>
<% if (Math.random() <= 0.4) { out.println(""); } else if (Math.random() <= 0.6) { out.println(""); } else if (Math.random() <= 0.8) { out.println(""); } else { out.println(""); } out.println("
"); %>
<% if (Math.random() <= 0.5) { out.println(""); } else { out.println(""); } out.println("
"); %>
<% out.println(""); out.println("
"); out.println("\"\""); out.println("
"); //out.println(""); //out.println("
"); // out.println(SoMaLofTUtils.getBannerCode("http://tube4gay.com/bc/", "http://tube4gay.com/images/banners/x-250/blue-cig.jpg", "Blue Cig", 200, -1)); } out.println("
"); //out.println("
"); out.print("
"); out.println("
"); if (displayOption == T9XAdultGalleryFlash.DISPLAY_OPTION_RANDOM || displayOption == T9XAdultGalleryFlash.DISPLAY_OPTION_LASTADDED || displayOption == T9XAdultGalleryFlash.DISPLAY_OPTION_COLLECTION) { ArrayList alCollectionNames = new ArrayList(); alCollectionNames.addAll(adultGalleryFlash.getCollectionNames()); if (displayOption == T9XAdultGalleryFlash.DISPLAY_OPTION_COLLECTION && (collectionId == null || collectionId.equals("_sort"))) { if (collectionId != null) { Collections.sort(alCollectionNames); } //collectionId = SoMaLofTUtils.getURLString((String) alCollectionNames.get(0)); String sortLink = ""; if (SoMaLofTUtils.getLocation().equals(SoMaLofTUtils.LOCATION_LOCAL)) { sortLink = "index.jsp?dopt=" + T9XAdultGalleryFlash.DISPLAY_OPTION_COLLECTION + "&collid=_sort"; } else { sortLink = "/" + folderNames[T9XAdultGalleryFlash.DISPLAY_OPTION_COLLECTION] + "_sort/"; } %>
<% for (int i = 0; i < alCollectionNames.size(); i++) { if (i % 4 == 0) { %> <% } int collectionSize = adultGalleryFlash.getCollectionSize(SoMaLofTUtils.getURLString(((String) alCollectionNames.get(i)).trim())); %> <% //out.println(""); if (i % 4 == 3) { %> <% } } %> <% } else { adultGalleryFlash.getAdultGalleryCacheTube(galleryType, alRows, htRows, displayOption, collectionId); out.println("
Video Collections from major Adult Studios
<% if (collectionId == null) { %> Click here to view list in alphabetical order. <% } %>
"); if (displayOption == T9XAdultGalleryFlash.DISPLAY_OPTION_COLLECTION) { String collectionName = adultGalleryFlash.getCollectionName(collectionId); numberOfColumnsPerRow -= 1; numberOfImagesPerPage = numberOfRowsPerPage * numberOfColumnsPerRow; out.println(""); out.println("
"); out.println("
"); out.println(collectionName + " (" + adultGalleryFlash.getCollectionSize(collectionId) + ")"); if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { out.println("
"); } else { out.println("
"); } out.println("
"); out.println("
"); for (int i = 0; i < alCollectionNames.size(); i++) { if (!alCollectionNames.get(i).equals(collectionName)) { int collectionSize = adultGalleryFlash.getCollectionSize(SoMaLofTUtils.getURLString(((String) alCollectionNames.get(i)).trim())); out.println(" " + alCollectionNames.get(i) + "(" + collectionSize + ")" + " 
"); // if (SoMaLofTUtils.getLocation().equals(SoMaLofTUtils.LOCATION_LOCAL)) { // out.println(" " + alCollectionNames.get(i) + "(" + collectionSize + ")" + " 
"); // out.println(" " + alCollectionNames.get(i) + "(" + collectionSize + ")" + " 
"); // } else {//http://tube4gay.com/new/gay-tube-0.html // out.println(" " + alCollectionNames.get(i) + "(" + collectionSize + ")" + " 
"); // out.println(" " + alCollectionNames.get(i) + "(" + collectionSize + ")" + " 
"); //out.println(" " + "" + (i + 1) + ""); // } } } } out.println("
"); out.println("
"); for (int i = 0; i < numberOfRowsPerPage; i++) { out.println(" "); for (int j = 0; j < numberOfColumnsPerRow; j++) { out.println(" "); } out.println(" "); } out.println("
"); int currentImage = startRow + i * numberOfColumnsPerRow + j; if (currentImage < alRows.size()) { T9XAdultGalleryRow adultGalleryRow = (T9XAdultGalleryRow) htRows.get(alRows.get(currentImage)); String title = adultGalleryRow.getName(); String websiteName = adultGalleryRow.getWebsiteName(); if (adultGalleryRow.getSceneId() > 0) { title += " Scene " + adultGalleryRow.getSceneId(); } if (adultGalleryRow.getPartId() > 0) { title += " Part " + adultGalleryRow.getPartId(); } String imageURL = adultGalleryRow.getImageURL(0); String strInnerHTML = SoMaLofTUtils.escapeSingleQuoteWithBackSlash(adultGalleryRow.getEmbedCode()); String linkCode = adultGalleryRow.getLinkCode(); String textCode = adultGalleryRow.getTextCode(); //String bannerLinkcode = adultGalleryFlash.getBannerLinkcode(adultGalleryRow.getDomain(), galleryType, T9XAdultGalleryFlash.VIDEO_TUBE); String bannerCode = adultGalleryRow.getBannerCode(); String description = adultGalleryRow.getDescription() == null ? "" : adultGalleryRow.getDescription(); description = ""; if (description.contains(".")) { description = description.substring(0, description.indexOf('.')) + "."; } int playerWidth = adultGalleryRow.getPlayerWidth(); int playerHeight = adultGalleryRow.getPlayerHeight(); String minutes = new Integer(adultGalleryRow.getDuration() / 60).toString(); String seconds = new Integer(adultGalleryRow.getDuration() % 60).toString(); if (adultGalleryRow.getDuration() / 60 == 00 && adultGalleryRow.getDuration() % 60 == 0) { minutes = "_"; seconds = "__"; } else if (adultGalleryRow.getDuration() % 60 < 10) { seconds = "0" + seconds; } String days = ""; if (adultGalleryRow.getDaysLive() == 0) { days = "Today"; } else if (adultGalleryRow.getDaysLive() == 1) { days = "Yesterday"; } else if (adultGalleryRow.getDaysLive() < 99) { days = adultGalleryRow.getDaysLive() + " days ago"; } else { days = "Over 100 days"; } ///out.println(""); //if ( adultGalleryRow.getFeatured() > 0 && displayOption == 0 ) { // out.println("
"); //} else { out.println("
"); out.println("
"); //} if (displayOption == 0 && adultGalleryRow.getFeatured() > 0) { out.println("*Featured*"); } if (adultGalleryRow.getComment() != null && adultGalleryRow.getComment().length() > 0) { out.println("" + adultGalleryRow.getComment() + ""); } out.println(title); if (displayOption == T9XAdultGalleryFlash.DISPLAY_OPTION_COLLECTION) { out.println(":: " + websiteName + ""); } else { out.println(":: " + websiteName + ""); } String urlString = title; if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { if (domain.contains("tubeforgay")) { title = title + " on Tube For Gay"; } else if (domain.contains("gaypb")) { title = title + " on Gay Porn Blog"; } else if (domain.contains("gaytube.la")) { title = title + " on Gay Tube"; } else { //title = "" + title; title = title + " on Tube4Gay.com"; } } else { if (domain.contains("sextube.la")) { title = title + " on Sex Porn Tube"; } else { title = title + " on XXX Porn Tube"; } } out.println("
"); out.println("
"); out.println(minutes + ":" + seconds + " min"); //out.println(SoMaLofTUtils.getDuration(adultGalleryRow.getDuration()) + " min"); if (displayOption == T9XAdultGalleryFlash.DISPLAY_OPTION_LASTADDED) { out.println("/Added " + days); } else { out.println("/ " + adultGalleryRow.getViewCount() + " Views"); } out.println("
"); // out.println("
"); if (showPopupPlayer) { out.println("
"); out.println(" \"""); if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { if (SoMaLofTUtils.getLocation().equals(SoMaLofTUtils.LOCATION_LOCAL)) { out.println(" "); } else { out.println(" "); } } else { if (SoMaLofTUtils.getLocation().equals(SoMaLofTUtils.LOCATION_LOCAL)) { out.println(" "); } else { out.println(" "); } } %>
<% out.println("
"); } else { //out.println("
"); out.println("
"); if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { out.println(" \"""); // if (SoMaLofTUtils.getLocation().equals(SoMaLofTUtils.LOCATION_LOCAL)) { // out.println(" \"""); // } else { // out.println(" \"""); // //out.println(" "); // } //System.out.println(SoMaLofTUtils.getURLString(adultGalleryRow.getWebsiteName()) + "," + adultGalleryRow.getGalleryId()); } else { out.println(" \"""); // if (SoMaLofTUtils.getLocation().equals(SoMaLofTUtils.LOCATION_LOCAL)) { // out.println(" "); // } else { // out.println(" "); // } } %>
<% //out.println("
"); } out.println("
"); } else { out.println("
"); /* out.println("
"); out.println("
"); out.println("
"); out.println("
"); out.println("
"); out.println("
"); */ out.println("
"); } out.println("
"); out.println("
"); out.println("
"); out.println("Page:"); for (int i = 0; i < Math.ceil(1.0 * alRows.size() / numberOfImagesPerPage); i++) { // String href = "index.jsp?domain=" + domain + "&vidtype=" + videoType + "&pgid=" + (i) * numberOfImagesPerPage; String href = "index.jsp?pgid=" + (i * numberOfImagesPerPage + pageOffset); if (tag != null && tag.length() > 0) { href += "&tag=" + tag; } if (displayOption != T9XAdultGalleryFlash.DISPLAY_OPTION_RANDOM) { href += "&dopt=" + displayOption; } if (collectionId != null) { href += "&collid=" + collectionId; } if (i * numberOfImagesPerPage == startRow) { out.println(" " + (i + 1) + ""); } else { if (SoMaLofTUtils.getLocation().equals(SoMaLofTUtils.LOCATION_LOCAL)) { out.println(" " + "" + (i + 1) + ""); } else { out.println(" " + "" + (i + 1) + ""); } } } // } else if ( displayOption == 2 ) { // out.println("Multi-Site access"); } } else if (displayOption == T9XAdultGalleryFlash.DISPLAY_OPTION_LIVE) { if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { %>
<% out.println("
"); } else { out.println(""); } } else if (displayOption == T9XAdultGalleryFlash.DISPLAY_OPTION_DATING) { if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { %>


<% } else { %>
<% } } else if (displayOption == T9XAdultGalleryFlash.DISPLAY_OPTION_VIDEO_PAGE) { T9XAdultGalleryRow adultGalleryRow = T9XAdultGalleryFlash.getInstance(galleryType).getAdultGalleryRow(galleryType, videoNumber); adultGalleryFlash.incrementViewCount(adultGalleryRow); //ArrayList alCollectionNames = adultGalleryFlash.getCollectionNames(); String collectionName = adultGalleryRow.getWebsiteName(); collectionId = SoMaLofTUtils.getURLString(collectionName); ArrayList alRowsCollection = new ArrayList(); adultGalleryFlash.getAdultGalleryCacheTube(galleryType, alRowsCollection, htRows, displayOption, collectionId); Collections.shuffle(alRowsCollection); out.println(""); out.println(" "); adultGalleryRow = T9XAdultGalleryFlash.getInstance(galleryType).getAdultGalleryRow(galleryType, videoNumber); out.println(" "); out.println("
"); out.println("
"); out.println(collectionName + " (" + adultGalleryFlash.getCollectionSize(SoMaLofTUtils.getURLString(collectionName)) + ")"); if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { out.println("
"); } else { out.println("
"); } // out.println(""); out.println("
"); out.println("
"); out.println("
"); out.println("See the " + collectionName + " Collection"); out.println("

"); for (int i = 0; i < alRowsCollection.size() && i < 5; i++) { adultGalleryRow = (T9XAdultGalleryRow) htRows.get(alRowsCollection.get(i)); out.println("
" + adultGalleryRow.getName() + "
"); out.println("
"); } out.println("
"); out.println("
"); out.println("
"); out.println("
" + adultGalleryRow.getName() + "
"); out.println("
" + adultGalleryRow.getBannerCode() + "
"); out.println("
" + adultGalleryRow.getTextCode() + "

"); out.println("" + adultGalleryRow.getEmbedCode() + ""); out.println("
"); out.println("Duration: " + adultGalleryRow.getDuration() + " sec. / Viewed " + adultGalleryRow.getViewCount() + " times
"); out.println("Tags: " + adultGalleryRow.getTags() + "
"); out.println("Description: " + adultGalleryRow.description + "
"); out.println("
"); out.println("
"); out.println("
"); } out.println("
"); String parmeterQueryString = request.getQueryString() == null ? null : request.getQueryString().substring(request.getQueryString().indexOf('&') + 1, request.getQueryString().length()); Visitor.getInstance().addVisitor(domain.replace("www.", ""), request.getRemoteAddr(), request.getHeader("REFERER"), displayOption, parmeterQueryString); %>
<% if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { out.println(""); } else { out.println(""); } %>
<% if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { //out.println(""); out.println(""); } else { out.println(""); } %>
Close
<% if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { out.println("* Featured Partners *
"); out.println("Bel AmiOnline"); out.println("Randy Blue"); out.println("Broke Straight Boys"); out.println("Fratmen.tv"); out.println("Straight Fraternity"); out.println("Twinks Filled With Cum"); out.println("Dirty Boy Video"); out.println("Visconti Twins"); out.println("Active Duty"); //out.println("Papi"); //out.println("Boys First Time"); out.println("Bang Bang Boys"); out.println("Frat Boy"); out.println("Hot Studs"); out.println("8Teen Boys"); out.println("Falcon XXX"); out.println("Pride Movies"); out.println("Bi Maxx"); out.println("Broke and Horny"); out.println("Guys Go Crazy"); out.println("Bait Bus"); out.println("UK Naked Men"); out.println("Cody Cummings"); out.println("His First Gay Sex"); out.println("Mason Wyler"); out.println("You Love Jack"); out.println("Cocksure Men"); out.println("Sean Cody"); out.println("College Boy Physicals"); out.println("UK Scully Lads"); out.println("Straight College Men"); out.println("English Lads"); out.println("CollegeDudes247"); out.println("See My BF"); out.println("Porn Tube Guide"); } else { out.println("Featured Partners: "); out.println("Ass Traffic"); out.println("All Internal"); out.println("Give Me Pink"); out.println("Prime Cups"); out.println("Fist Flush"); out.println("Cum for Cover"); out.println("MILF Thing"); out.println("Tamed Teens"); out.println("More Gonzo"); out.println("Pure POV"); out.println("Sapphic Erotica"); out.println("Videosz"); out.println("MILF Seeker"); out.println("Joon Mali"); out.println("BiMaxx"); out.println("Teens for Cash"); out.println("Couples Seduce Teens"); out.println("Gay Tube"); out.println("Porn Tube Guide"); } out.println("
(c) 2008 " + domain + " "); if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { if (domain.equals("tube4gay.com") || domain.equals("gaypb.com")) { out.println("SiteMap"); out.println("RSS"); out.println("Contact"); } else { out.println("SiteMap "); } } else { out.println("SiteMap "); } out.println(" 18 USC 2257 Statement"); out.println(" "); // out.println("
\"Buy/Sell
"); out.println("
"); %>
<% if (galleryType == T9XAdultGalleryFlash.TYPE_GAY) { out.println("
"); if (Calendar.getInstance().get(Calendar.MILLISECOND) < 250) { out.println("
"); } else if (Calendar.getInstance().get(Calendar.MILLISECOND) < 500) { out.println("
"); } else { out.println("
"); } out.println("
"); } %>