include("config.php"); error_reporting(0); // for debugging $mk501=$PrimaryKeyword; if(strlen($mk501)<3){print "<"."h"."1>Er"."ror".": Inv" . "alid Pri" . "mary ke" . "yword" . " Entered"; exit;} $QID="";$pi57=$_GET['pg'];$pi57=trim($pi57); if(substr_count($pi57, "-videos")>0){$pi57p=str_replace("-videos", "", $pi57); if(substr_count($pi57p, "_")>0){list($pi57p,$pi57o)=split("_", $pi57p, 2);} else {$pi57o="vu2fv";} $pi57=$pi57p;$pi57s="YES";} if(substr_count($pi57, "_")>0){list($mPageID,$QID)=split("_", $pi57, 2);$pi57=$mPageID;} $pi57w=$_GET['search']; if($pi57 =="" && strlen(trim($pi57w))>3 ){$pi57=$pi57w;$pi57=str_replace(" ", "-", $pi57);} if($pi57 ==""){$pi57=$mk501;$pi57=str_replace(" ", "-", $pi57);$pi57h=file("keywords.txt");$jdgrt33=str_replace("\n", ",", $pi57h);$jdgrt33=implode(",", $jdgrt33);} else{$pi57h=file("keywords.txt");} $pi57u=$pi57 . ".html";$pi57a=$pi57 . "-videos" . ".html";$Keyword=str_replace("-", " ", $pi57);$Keyword=trim(strtolower($Keyword));$PageTitle=str_replace("[KEYWORD]", $Keyword, $PageTitle);$PageTitle=ucwords(strtolower($PageTitle));$Description=ucfirst(str_replace("[KEYWORD]", $Keyword, $Description));$MetaKeywords=strtolower(str_replace("[KEYWORD]", $Keyword, $MetaKeywords));$q457="";$pi57x=0; if($NumberOfLinks>50){$NumberOfLinks=50;} shuffle($pi57h); foreach ($pi57h as $pi57l_num => $pi57l) {$pi57l=str_replace("\n", "", $pi57l);$pi57l=str_replace("\r", "", $pi57l);$q557=ucwords(strtolower($pi57l));$ThisLinkURL=str_replace(" ", "-", $pi57l) . ".html"; if(strlen($pi57l)>2){$q457=$q457 . "
  • $q557
  • \n";$pi57x=$pi57x +1;} if($pi57x == $NumberOfLinks && $pi57 !="sitemap"){break;}} if($LinkStyle == "dot"){$q457="\n\n\n\n";} if($LinkStyle == "square"){$q457="\n\n\n\n";} if($LinkStyle == "circle"){$q457="\n\n\n\n";} if($LinkStyle != "circle" && $LinkStyle != "square" && $LinkStyle != "dot"){$q457=str_replace("
  • ", "

    ", $q457);$q457=str_replace("

  • ", "

    ", $q457);} $pi55=str_replace(" ", "+", $PageTitle);$BookmarkURL=str_replace("http://", "", $ThisWebsite);$pi54="\"Bookmark"; if($pi57 =="sitemap"){$PageTitle="$mk501 Sitemap";$PageTitle=ucwords($PageTitle);$Description="Sitemap";$pi57u=$mk501 . ".html";$pi57u=str_replace(" ", "-", $pi57u);$pi57a=str_replace(" ", "-", $mk501) . "-videos" . ".html";$pi55=str_replace(" ", "+", $PageTitle);$pi54="\"Bookmark";$Keyword=$mk501;$pi57d="
    \n

    [HTML Sitemap]    [XML Sitemap]    [RSS Feed]



    \n\n" . $q457;$pi57f="";$q457="";} if($pi57 =="termsofuse"){$PageTitle="$mk501 Website - Terms of Use";$PageTitle=ucwords($PageTitle);$Description="Terms of Use";$Keyword=$mk501;$pi57u=$mk501 . ".html";$pi57u=str_replace(" ", "-", $pi57u);$pi57a=str_replace(" ", "-", $mk501) . "-videos" . ".html";$pi55=str_replace(" ", "+", $PageTitle);$pi54="\"Bookmark";$TOUFile=file_get_contents('termsofuse.txt');$pi57d=$TOUFile;$pi57f="";} if($pi57 =="privacypolicy"){$PageTitle="$mk501 Website - Privacy Policy";$PageTitle=ucwords($PageTitle);$Description="Privacy Policy";$Keyword=$mk501;$pi57u=$mk501 . ".html";$pi57u=str_replace(" ", "-", $pi57u);$pi57a=str_replace(" ", "-", $mk501) . "-videos" . ".html";$pi55=str_replace(" ", "+", $PageTitle);$pi54="\"Bookmark";$PPFile=file_get_contents('privacypolicy.txt');$pi57d=$PPFile;$pi57f="";} if($pi57 =="contact"){$PageTitle="$mk501 Website - Contact";$PageTitle=ucwords($PageTitle);$Description="Contact us";$Keyword=$mk501;$q657=ucwords($Keyword);$pi57u=$mk501 . ".html";$pi57u=str_replace(" ", "-", $pi57u);$pi55=str_replace(" ", "+", $PageTitle);$pi54="\"Bookmark";$pi57a=str_replace(" ", "-", $Keyword) . "-videos" . ".html";$PPFile=file_get_contents('contact.txt');$pi57d=$PPFile;$pi57f="";} if($pi57s == "YES"){$PageTitle="$Keyword Videos";$PageTitle=ucwords(strtolower($PageTitle));$Description="Videos related to $Keyword";$pi55=str_replace(" ", "+", $PageTitle);$pi54="\"Bookmark";$VideoKey=str_replace("-", "+", $pi57p);$FUrl="http://gdata.youtube.com/feeds/api/videos?vq=$VideoKey&orderby=relevance&start-index=1&max-results=30";$pihd=implode('',file($FUrl));$pihd=strstr($pihd, "5){$ThisVideo="
    \n\n
    \n\n";$pi57x=2;} else{$ThisVideo="";} foreach ($feed_list as $pi57l_num => $item) {$pi57n=strstr($item, "');$pi57n=str_replace($pi58, "", $pi57n);$pi57n=str_replace("", "", $pi57n);$pi57c=strstr($item, "');$pi57c=str_replace($pi58, "", $pi57c);$pi57c=str_replace("", "", $pi57c);$pi57m=strstr($item, "");$pi57m=str_replace($pi58, "", $pi57m);$pi57m=str_replace("') == FALSE && substr($pi57m,0,7) == "http://" && substr($mimage,0,7) == "http://" && strlen($pi57c)>50) {$pi57n=preg_replace("/[^a-zA-Z0-9 .,'%$&?]/", " ", $pi57n);$pi57n=ucwords(strtolower($pi57n));$pi57c=str_replace("http://", "", $pi57c);$pi57c=str_replace("www.", "", $pi57c);$pi57c=preg_replace("/[^a-zA-Z0-9 .,'%$&?]/", " ", $pi57c);$pi57c=ucfirst(strtolower($pi57c));$pi57m= str_replace("http://www.youtube.com/watch?v=", "$pi57-videos_", $pi57m);$pi57m=$pi57m . ".html"; if(strlen($pi57c)>300){$pi57c=substr($pi57c,0,300) . "...";} if(substr_count($pi57m, $pi57o)>0){$ThisVideo=$ThisVideo . "
    \n
    \n\n \n \n \n
    \n $pi57n

    $pi57c\n

    \n
    \n
    \n
    \n";} else{$pi51=$pi51 . "
    \n
    \n\n \n \n \n
    \n \"$pi57n\"$pi57n

    $pi57c\n

    \n
    \n
    \n
    \n";} $pi57x=$pi57x+1;}} $pi57d=$ThisVideo . $pi51;$pi57f="";} $keyword2Search=trim($Keyword);$keyword2Search=str_replace(" ", "+", $keyword2Search); if($pi57 !="sitemap" && $QID == "" && $pi57 !="termsofuse" && $pi57 !="privacypolicy" && $pi57 !="contact" && $pi57s != "YES"){if ($CustomContent == "text" || $CustomContent == "html"){$filename=strtolower(trim($Keyword));$filename=str_replace(" ", "-", $Keyword) . ".txt"; if(file_exists($filename)) {$UserContent=file_get_contents($filename); if($CustomContent == "text"){$UserContent=str_replace("\n", "
    ", $UserContent);} } else {$UserContent="";}} $FUrl="http://answers.yahoo.com/rss/searchq?p=$keyword2Search&pn=&ps=3&tab=0&scope=subject&mc=$YAcat&mc=&asktime=";$pihd=implode('',file($FUrl));$pihd=strstr($pihd, "");$pihd=str_replace("\n", "", $pihd);$pihd=str_replace("\r", "", $pihd);$pihd=str_replace("|", " ", $pihd);$pihd=str_replace("", "\n", $pihd);$pihd=str_replace("", "", $pihd);$pihd=str_replace("", "", $pihd);$pihd=str_replace("", "|", $pihd);$pihd=str_replace("", "|", $pihd);$pihd=str_replace("", "|", $pihd);$pihd=str_replace("", "", $pihd);$pihd=str_replace("Open Question:", "", $pihd);$pihd=str_replace("Resolved Question:", "", $pihd);$pihd=str_replace("Voting Question:", "", $pihd);$pihd=str_replace(" ", " ", $pihd);$pi57j=explode('', $pihd);$feed_list=array();$key=0; foreach($pi57j as $item) {$feed_list[$key]=$item;$key=$key +1;} $pi57x=0;$AllItems=""; shuffle($feed_list);$pi57x=1;$YAcontent="";$pi57d="";$pi57f="";$q157="";$pi57e="";$pi57y="";$pi59=1;$qi57=1; foreach ($feed_list as $pi57l_num => $pi57l) {list($pi57n,$pi57m,$mcrap,$pi57c)=split("\|", $pi57l, 4);$pi57n=ucfirst(trim($pi57n));$pi57m=trim($pi57m);$pi57c=trim($pi57c); if(substr_count($pi57n, $Keyword)>0 || substr_count($pi57c, $Keyword)>0 || substr_count($pi57n, $mk501)>0 || substr_count($pi57c, $mk501)>0){$takeit="y"; }else{$takeit="n";} if(substr_count($Keyword, " ") == 1){list($pi57v,$pi57b)=split(" ", $Keyword, 2); if(substr_count($pi57n, $pi57v)>0 && substr_count($pi57n, $pi57b)>0){$takeit="y";}} if(substr_count($Keyword, " ")>1){list($pi57v,$pi57b,$mthirdword)=split(" ", $Keyword, 3); if(substr_count($pi57n, $pi57v)>0 || substr_count($pi57n, $pi57b)>0 || substr_count($pi57n, $mthirdword)>0 ){$takeit="y";}} $pi57c=str_replace("http://", "", $pi57c);$pi57c=str_replace("www.", "", $pi57c);$pi57c=preg_replace("/[^a-zA-Z0-9 .,'%$&?]/", " ", $pi57c);$pi57c=str_replace("& 039 ", "'", $pi57c);$pi57c=str_replace("QQ", " QQ", $pi57c);$pi57c=str_replace("%", " %", $pi57c); if($pi59<15 && $pi57x<101 && strlen($pi57l)>20 && substr_count($pi57m, "http://")>0 && $takeit == "y"){$pi57m=strstr($pi57m, "?qid=");$pi57m=str_replace("?qid=", "", $pi57m);$pi57m=str_replace(" ", "-", $Keyword) . "_" . $pi57m . ".html"; if(substr_count($pi57n, $Keyword)>0){$q157=$q157 . "$pi57n
    \n$pi57c

    \n";$pi59=$pi59 +1; if($pi59 == 3){$pi57d=$q157;$q157="";}} else {if (strlen($pi57c)>25 && $pi59<12){$pi57e=$pi57e . "$pi57n
    \n$pi57c

    \n";$pi59=$pi59 +1;} else{if ($qi57<7){$pi57y=$pi57y . "$pi57n \n$pi57c

    \n";} $qi57=$qi57 +1;}} $pi57x=$pi57x +1;}} if($pi59>10){$YAcontent=$q157 . $pi57e; }else{$YAcontent=$q157 . $pi57e . $pi57y;} $pi57f=$YAcontent;} if($pi57 !="sitemap" && $QID != ""){if (strlen($YaApiID)<7){$YaApiID="YsKthIjV34GfeTqu2JB3h2e9PmYp6XhOWIuZphY5sUjXHfP0rQfKTfCU8ADQ30FhLg--";} $YAurl= "http://answers.yahooapis.com/AnswersService/V1/getQuestion?appid=$YaApiID&question_id=$QID";$XmlFileContent=file_get_contents($YAurl);$pi3fhd="";$pi57q=strstr($XmlFileContent, "");$pi58=stristr($pi57q, "");$pi57q=str_replace($pi58, "", $pi57q);$pi52=strstr($XmlFileContent, "");$pi58=stristr($pi52, "");$pi52=str_replace($pi58, "", $pi52);$pi52=str_replace("", "", $pi52);$pi57r=strstr($pi57q, "");$pi58=stristr($pi57r, "");$pi57r=str_replace($pi58, "", $pi57r);$pi57r=str_replace("", "", $pi57r);$pi57r=str_replace("\n", " ", $pi57r);$pi57r=str_replace("\r", " ", $pi57r);$pi57r=ucfirst(strtolower(str_replace(" ", " ", $pi57r))); if(strlen($pi57r)<10){header("Location: index.php"); exit;} $q757=strstr($pi57q, "");$pi58=stristr($q757, "");$q757=str_replace($pi58, "", $q757);$q757=str_replace("", "", $q757);$q757=str_replace("\n", " ", $q757);$q757=str_replace("\r", " ", $q757);$q757=ucfirst(str_replace(" ", " ", $q757));$UserNick=strstr($pi57q, "");$pi58=stristr($UserNick, "");$UserNick=str_replace($pi58, "", $UserNick);$UserNick=str_replace("", "", $UserNick);$pi57i=strstr($pi57q, "");$pi58=stristr($pi57i, "");$pi57i=str_replace($pi58, "", $pi57i);$pi57i=str_replace("", "", $pi57i);$QtnDate=strstr($pi57q, "");$pi58=stristr($QtnDate, "");$QtnDate=str_replace($pi58, "", $QtnDate);$QtnDate=str_replace("", "", $QtnDate);$pi56=strstr($pi57q, "");$pi58=stristr($pi56, "");$pi56=str_replace($pi58, "", $pi56);$pi56=str_replace("", "", $pi56);$pi56=str_replace("\n", " ", $pi56);$pi56=str_replace("\r", " ", $pi56);$pi56=ucfirst(trim(str_replace(" ", " ", $pi56)));$piqq57=strstr($pi57q, "");$pi58=stristr($piqq57, "");$piqq57=str_replace($pi58, "", $piqq57);$piqq57=str_replace("", "", $piqq57);$q757=str_replace("/", "/ ", $q757);$q757=str_replace(",", ", ", $q757);$q757=str_replace(", ", ", ", $q757);$q757=str_replace("-", "- ", $q757);$q757=str_replace("&", " &", $q757);$q757=str_replace(" '", "'", $q757);$q757=str_replace("'", "'", $q757);$q757=str_replace("QQ", " QQ", $q757);$q757=str_replace("%", " %", $q757);$pi3fhd=$pi3fhd . "
    \n";$pi3fhd=$pi3fhd . "\n";$pi3fhd=$pi3fhd . " \n \n";$pi3fhd=$pi3fhd . " \n";$pi3fhd=$pi3fhd . " \n";$pi3fhd=$pi3fhd . "
    \n \"$pi57r\"\n

    Question: $pi57r

    \n";$pi3fhd=$pi3fhd . "

    (Posted by: $UserNick on $QtnDate)

    \n

    $q757

    \n
    \n";$pi3fhd=$pi3fhd . "
    \n";$pi52=str_replace("\n", " ", $pi52);$pi52=str_replace("\r", " ", $pi52);$pi52=str_replace(" ", " ", $pi52);$pi52=str_replace(" ", " ", $pi52);$pi57j=explode('', $pi52);$pi57g=array();$key=0; foreach($pi57j as $item) {$pi57g[$key]=$item;$key=$key +1;} $pi53="";$pioh6d="";$mCounter=1; foreach ($pi57g as $pi57l_num => $pi57l) {$ThisLine=$pi57l;$pi57z=strstr($ThisLine, "");$pi58=stristr($pi57z, "");$pi57z=str_replace($pi58, "", $pi57z);$pi57z=str_replace("", "", $pi57z);$pi57z=str_replace("\n", " ", $pi57z);$pi57z=str_replace("\r", " ", $pi57z);$pi57z=ucfirst(trim(str_replace(" ", " ", $pi57z)));$pv4f5hd=strstr($ThisLine, "");$pi58=stristr($pv4f5hd, "");$pv4f5hd=str_replace($pi58, "", $pv4f5hd);$pv4f5hd=str_replace("", "", $pv4f5hd);$pv4f5hd=trim(str_replace(" ", " ", $pv4f5hd));$mDate=strstr($ThisLine, "");$pi58=stristr($mDate, "");$mDate=str_replace($pi58, "", $mDate);$mDate=str_replace("", "", $mDate);$mDate=trim(str_replace(" ", ", ", $mDate));$pi57z=str_replace("http://", "", $pi57z);$pi57z=str_replace("www.", "", $pi57z);$pi57z=str_replace("/", "/ ", $pi57z);$pi57z=str_replace("+", "+ ", $pi57z);$pi57z=str_replace("&", " &", $pi57z);$pi57z=str_replace("=", "= ", $pi57z);$pi57z=str_replace(" '", "'", $pi57z);$pi57z=str_replace("'", "'", $pi57z); if(strlen($pi57z)>20 && strlen($mDate)>10 && $mCounter<21 ){if ($pv4f5hd == $piqq57 && substr_count($pi57z, (substr($pi56,0,10)))>0){$pi53=$pi53 . "
    \n";$pi53=$pi53 . " \n";$pi53=$pi53 . " \n \n";$pi53=$pi53 . " \n
    \n";$pi53=$pi53 . "

    Posted by: $pv4f5hd on $mDate

    \n";$pi53=$pi53 . "

    $pi57z

    \n

      

    \n";$pi53=$pi53 . "
    \n";} else{$pioh6d=$pioh6d . "
    \n";$pioh6d=$pioh6d . " \n";$pioh6d=$pioh6d . " \n \n";$pioh6d=$pioh6d . " \n
    \n";$pioh6d=$pioh6d . "

    Posted by: $pv4f5hd on $mDate

    \n";$pioh6d=$pioh6d . "

    $pi57z

    \n

      

    \n";$pioh6d=$pioh6d . "
    \n";} $mCounter=$mCounter+1;}} $Ymsg="

    Powered by Yahoo! Answers®

    \n";$pioh6d="Answers:

    \n" . $pi53 . "\n" . $pioh6d . $Ymsg . "\n
    Back to Previous page

    ";$pi57d=$pi3fhd;$pi57f=$pioh6d;} $SearchFormData="
    \n \n \n
    ";$pilh3d="http://rss.api.ebay.com/ws/rssapi?FeedName=SearchResults&siteId=0&language=en-US&output=RSS20&catref=C5&sacqy=&sacur=0&from=R6&saobfmts=exsif&dfsp=32&afepn=$CampaginID&sacqyop=ge&saslc=0&floc=1&sabfmts=0&saprclo=&saprchi=&saaff=afepn&ftrv=1&ftrt=1&fcl=3&frpp=70&customid=$CustomID&nojspr=y&satitle=$keyword2Search&afmp=&sacat=-1&saslop=1&fss=0&saatc=1";$pihd=implode('',file($pilh3d));$pihd=strstr($pihd, "");$pihd=str_replace("\n", "", $pihd);$pihd=str_replace("|", " ", $pihd);$pihd=str_replace("", "\n", $pihd);$pihd=str_replace("<![CDATA[", "", $pihd);$pihd=str_replace("]]>", "|", $pihd);$pihd=str_replace("", "|", $pihd);$pihd=str_replace("", "|", $pihd);$pihd=str_replace(" ", " ", $pihd);$pi57j=explode('', $pihd);$feed_list=array();$key=0; foreach($pi57j as $item) {$feed_list[$key]=$item;$key=$key +1;} $pi57x=0;$AllItems=""; shuffle($feed_list);$pij2hd="";$p0ihqd="";$ImgCount=0;$EbaySVB="\n";$pioh0d="
    \n \n \n
    \n"; foreach ($feed_list as $pi57l_num => $pi57l) {if ($pi57x<25 && strlen($pi57l)>3 ){list($pi57n,$pi57m,$pi57c,$mcrap)=split("\|", $pi57l, 4);$pi57n=ucwords(strtolower($pi57n));$ALTtitle=trim(ereg_replace("[^A-Za-z1234567890 ]", "", $pi57n));$pi57n=str_replace("\n", "", $pi57n);$pi57c=str_replace("Bid now", "", $pi57c);$pi57c=str_replace("Add to watch list", "", $pi57c);$pi57c=str_replace("Buy it now", "", $pi57c);$pi57c=str_replace("\"$ALTtitle\"\n\n\n";$ImgCount=$ImgCount +1;} if($ImgCount >= 2 && $ImgCount<9 && substr_count($pi57n, " ")>2){$pi57c=str_replace("
    ", "", $pi57c);$pi58=stristr($pi57c, '');$pi57c=str_replace($pi58, "", $pi57c);$pi57c=str_replace("");$pi58=stristr($q257, '');$q257=str_replace($pi58, "", $q257);$q257=str_replace("", "", $q257);$EbaySVB=$EbaySVB . "
    $pi57c\n
    $q257\n
    \n\n\n\n";$ImgCount=$ImgCount +1;} $pi57x=$pi57x + 1;} $p0ihqd=$p0ihqd . "," . $thistitle . ",";}} $EbaySVB=$EbaySVB . "\n
    ", "", $pi57c);$pi57n=trim(ereg_replace("[^A-Za-z1234567890 ]", " ", $pi57n));$pi57n=substr($pi57n,0,35) . "..";$pi58=stristr($pi57c, '');$pi57c=str_replace($pi58, "", $pi57c);$pi57c=str_replace("");$pi58=stristr($q257, '');$q257=str_replace($pi58, "", $q257);$q257=str_replace("", "", $q257);$pioh0d=$pioh0d . "
    $pi57c";$pioh0d=$pioh0d . "

    $pi57n

    \n

    $q257

    \n

    ";$pioh0d=$pioh0d . "

    \n\n\n\n";$q657=ucwords($Keyword);$pi57t=file_get_contents('template.htm');$pi57t=str_replace("%%TITLE%%", $PageTitle, $pi57t);$pi57t=str_replace("%%KEYWORD%%", $Keyword, $pi57t);$pi57t=str_replace("%%PROPERKEYWORD%%", $q657, $pi57t);$pi57t=str_replace("%%LOGOIMAGE%%", $LogoImage, $pi57t);$pi57t=str_replace("%%HOMEPAGEURL%%", "index.php", $pi57t);$pi57t=str_replace("%%URL%%", $pi57u, $pi57t);$pi57t=str_replace("%%VIDEOURL%%", $pi57a, $pi57t);$pi57t=str_replace("%%YACONTENT1%%", $pi57d, $pi57t);$pi57t=str_replace("%%YACONTENT2%%", $pi57f, $pi57t);$pi57t=str_replace("%%DESCRIPTION%%", $Description, $pi57t);$pi57t=str_replace("%%METAKEYWORDS%%", $MetaKeywords, $pi57t);$pi57t=str_replace("%%LINKS%%", $q457, $pi57t);$pi57t=str_replace("%%SITEMAPURL%%", "sitemap.html", $pi57t);$pi57t=str_replace("%%BOOKMARK%%", $pi54, $pi57t);$pi57t=str_replace("%%SEARCHBOX%%", $SearchFormData, $pi57t);$pi57t=str_replace("%%ADSENSEID%%", $AdsenseID, $pi57t);$pi57t=str_replace("%%ADSENSECHANNEL%%", $AdsenseChannel, $pi57t);$pi57t=str_replace("%%AMAZONID%%", $AmazonID, $pi57t);$pi57t=str_replace("%%AMAZONCAT%%", $AmazonCat, $pi57t);$pi57t=str_replace("%%AMAZONKEY%%", $AmazonKey, $pi57t);$pi57t=str_replace("%%COMPANY%%", $Company, $pi57t);$pi57t=str_replace("%%EBAY-SVB%%", $EbaySVB, $pi57t);$pi57t=str_replace("%%EBAY-LVB%%", $pioh0d, $pi57t);$pi57t=str_replace("%%USERCONTENT%%", $UserContent, $pi57t); if($pi57 =="sitemap"){$q357="
    \n
    Use CWB - build your own website today
    \n\n";$pi57t=str_replace("", $q357, $pi57t);} print $pi57t; exit; ?>