>>> results for $SearchQuery in $MainCat english <<<
"; $WarezAdDescription = "Download Movies,Games,MP3 with 5500 KB/s!"; if ( ( $_SESSION['ISTHISACACHE'] == 1 ) && ( isset($_SESSION['CACHETIMESTAMP']) ) ) { $CacheCreateDate = date("Y/m/d H:i:s", $_SESSION['CACHETIMESTAMP']); $CacheString = "

 

Cached results from $CacheCreateDate - found nothing? - try live search"; }; # if ( $_SESSION['ISTHISACACHE'] == 1 ) { echo <<   100 MBit High Speed Downloads Hot! $WarezAdDescription

  eMule Mods download                  download the high speed eMule!

$CacheString END; /* #$SqlQuery = "SELECT * FROM `ads`WHERE MATCH(`desc`) AGAINST(\"$SearchQuery\") LIMIT 4;"; $SqlQuery = "SELECT * FROM `ads` WHERE MATCH(`desc`) AGAINST(\"$SearchQuery\") OR `desc` LIKE '%$SearchQuery%' LIMIT 2;"; $MySqlArray = doSQLQueryAds( $SqlQuery ); $count = 0; if ( $MySqlArray ) { while( $sql_results = mysql_fetch_array($MySqlArray)) { $link = $sql_results["link"]; $desc = $sql_results["desc"]; $ResultString .= "$desc - "; $count++; } } if ( $count > 0 ) { echo "Cheap OEM Software: "; echo $ResultString; echo "more
"; }; */ return 1; }; # function GenerateTopPartnerLinks(){ function ShowPartner(){ $SearchQuery = $_SESSION['SEARCH']; $SubTitleDesc = $_SESSION['SEARCH']; /* $url = 'http://search.usenext.de/search/searchfilegroup_ext?search=' . str_replace(" ", "+", $SearchQuery); $handle = fopen($url, "r"); $results = fread($handle, 1550); $count = 0; $AdditionalAds = ""; $AdditionalCont = "

Related:

"; $rand = rand(6, 20); foreach ( explode("\n", $results ) as $string) { if ( $count <= 3 ) { list( $lenght, $name, $type ) = explode(',', $string); $name = trim($name); $name = str_replace("\"","", $name); $name = urlencode($name); $AdditionalAds .= "$name | "; } elseif ( $count > 3 && $count <= $rand ) { list( $lenght, $name, $type ) = explode(',', $string); $name = trim($name); $name = str_replace("\"","", $name); $AdditionalCont .= " $name
"; }; # if ( $count <= 3 ) { $count++; }; # foreach ( $ResultArray as $string) { $AdditionalCont .= "
"; if ( strlen($SubTitleDesc) > SUBTITLEADWORDLENGHT ) { # l�sche alles nach dem 200sten zeichen bei �berlangen eingaben $SubTitleDesc = substr($SubTitleDesc, 0, SUBTITLEADWORDLENGHT ); $SubTitleDesc .= "..."; }; # if ( strlen($SubTitleDesc) > SUBTITLEADWORDLENGHT ) { $SQ = urlencode($SearchQuery); $dM0 = GetMonthYear( '0' ); $eM0 = TransferGetMonthYear( $dM0, 'en' ); # time.inc.php $eM0d = ucfirst(str_replace("-", " ", $eM0)); $GetCurrentLetterDateForNewsLinkEN = TransferGetMonthYearLong( GetCurrentLetterDateForNewsLink( "0" ), 'en'); */ $RelatedLinks =<<

helpful links:

$AdditionalAds RapidShare Searches englishTorrent Searches english


END; /* # wird bei den Suchanfragen angezeigt $mon = date("n"); $lastmon = date("n") - 1; $mday = date("j"); $year = date("Y"); if ( $mday < 1) { if ( $lastmon == 2 ){ $mday = 28; $mon = $lastmon; } elseif ( $lastmon == 4 ){ $mday = 30; $mon = $lastmon; } elseif ( $lastmon == 6 ){ $mday = 30; $mon = $lastmon; } elseif ( $lastmon == 9 ){ $mday = 30; $mon = $lastmon; } elseif ( $lastmon == 11 ){ $mday = 30; $mon = $lastmon; } else { $mday = 31; $mon = $lastmon; }; }; # if ( $mday < 1) { $KeywordManager = "/home/keywordmanager"; $KeyWordManagerTopLink = "$KeywordManager/$mon.$year/$mday.$mon.$year-startpage/topLi-1.txt"; $count = count(file($KeyWordManagerTopLink)); if ( $count <= 0 ){ $mday--; }; $KeyWordManagerTopLink = "$KeywordManager/$mon.$year/$mday.$mon.$year-startpage/topLi-1.txt"; $TopKWArray = file($KeyWordManagerTopLink); $zufall = rand(1,53); $TitleTag1 = $TopKWArray[$zufall];$zufall = rand(1,53); $TitleTag2 = $TopKWArray[$zufall];$zufall = rand(1,53); $TitleTag3 = $TopKWArray[$zufall];$zufall = rand(1,53); $TitleTag4 = $TopKWArray[$zufall];$zufall = rand(1,53); $TitleTag5 = $TopKWArray[$zufall];$zufall = rand(1,53); $TitleTag6 = $TopKWArray[$zufall]; $KeywordDelimiter = array("strong","b","i","tt"); $rand = rand(0,3); $KeywordTrenner = $KeywordDelimiter[$rand]; $net = "<" . $KeywordTrenner . ">" . "$TitleTag4 Torrent Download" . ""; $org = "<" . $KeywordTrenner . ">" . "Torrent $TitleTag5 Download" . ""; $biz = "<" . $KeywordTrenner . ">" . "telecharger $TitleTag6" . ""; */ echo <<

 

Partner:

Rapidshare Torrent Download | Rapidshare Torrent Blog | eMule Mods download | Torrent Deutsch | RapidShare Deutsch |

Torrent Rapidshare Download |

 

$RelatedLinks

Latest Torrent and RapidShare Searches
END; $KeyWordStoreDir = date("n.Y"); $KeywordDate = date("j.n.Y"); $FileStorePathTO = "/home/querys/keywords/" . $KeyWordStoreDir ."/". $KeywordDate . ".torrent.en.txt"; $stringTorrent = file_backread($FileStorePathTO, 20); $arrayTorrent = explode("\n", $stringTorrent ); $FileStorePathRS = "/home/querys/keywords/" . $KeyWordStoreDir ."/". $KeywordDate . ".rapidshare.en.txt"; $stringRapidshare = file_backread($FileStorePathRS, 20); $arrayRapidshare = explode("\n", $stringRapidshare ); printTagCloud($arrayTorrent, "torrent"); printTagCloud($arrayRapidshare, "rapidshare"); echo '
'; return 1; }; # function ShowPartner(){ function title_minus( $string ){ $string = preg_replace('/\s\s+/', '+', $string); $string = preg_replace('/\++/', '+', $string); $string = ereg_replace("[ \t\n\r]+", "+", $string); $tmp = $string; $flet = substr($tmp, 0,1); # get first char $last = $tmp[strlen($tmp)-1]; # get last char if ( preg_match("/\+/", $flet ) ) { #echo "PLus sign in front\n"; $string = substr($string, 1); }; if ( preg_match("/\+/", $last ) ) { #echo "PLus sign at last\n"; $string = substr_replace($string ,"",-1); # remove last char from string }; return $string; }; # function title_minus( $string ){ function __file_backread_helper(&$haystack,$needle,$x) { $pos=0;$cnt=0; while( $cnt < $x && ($pos=strpos($haystack,$needle,$pos)) !==false ){$pos++;$cnt++;} return $pos==false ? false:substr($haystack,$pos,strlen($haystack)); } function file_backread($file,$lines,&$fsize=0){ $f=fopen($file,'r'); if(!$f)return Array(); $splits=$lines*50; if($splits>10000)$splits=10000; $fsize=filesize($file); $pos=$fsize; $buff1=Array(); $cnt=0; while($pos) { $pos=$pos-$splits; if($pos<0){ $splits+=$pos; $pos=0;} fseek($f,$pos); $buff=fread($f,$splits); if(!$buff)break; $lines -= substr_count($buff, "\n"); if($lines <= 0) { $buff1[] = __file_backread_helper($buff,"\n",abs($lines)+1); break; } $buff1[] = $buff; } # return str_replace("\r",'',implode('',array_reverse($buff1))); return implode('',array_reverse($buff1)); } function printTagCloud($tags,$category) { // $tags is the array $NoDoubleTags = array(); $min_size = 80; // min font size in % $max_size = 185; // max font size in % $pattern = "(\.com|\.net|\.de|\.to|\.+[a-z]|\s+com|\s+net|\s+de|\s+to|www)"; # match a domain // Mod begin $DESC_last = ""; $len_last = 0; // Mod end // loop through the tag array foreach ($tags as $keyword ) { // calculate font-size $size = rand($min_size, $max_size) . "%"; $colorA = rand(2, 150); $colorB = rand(2, 150); $colorC = rand(2, 150); $DESC1 = trim($keyword); $DESC = str_replace("%20", "+", $DESC1); $DESC = preg_replace('/\s\s+/', '+', $DESC1); $DESC = ereg_replace("[ \t\n\r]+", "+", $DESC1); $DESC = title_minus($DESC1); $DESC = deleteSpecialChars($DESC); # sonderzeichen entfernen if (!in_array($keyword, $NoDoubleTags)) { # dublicates filtern if ( strlen($DESC) >= 5 && strlen($DESC) <= 40 ) { # wort darf nur max 40 zeichen lang sein if( !preg_match($pattern, $DESC) ){ # domain dateien filtern if (preg_match('/^[\w+]+$/', $DESC) ) { //Mod begin $len = strlen($DESC); $len = round($len*0.5, 0); if ($len_last != 0 AND (substr(strtolower($DESC), 0, $len) == substr(strtolower($DESC_last), 0, $len) OR substr(strtolower($DESC), 0, $len_last) == substr(strtolower($DESC_last), 0, $len_last))) { continue; }; $DESC_last = $DESC; $len_last = $len; //Mod end #$keyword = str_replace("+", "",$keyword); $NumberOfWords = count(explode(" ",$keyword)); if ( $NumberOfWords >= 2 && $NumberOfWords <= 4 ) { if ( $category == "torrent" ){ echo " $keyword | "; } if ( $category == "rapidshare" ){ echo " $keyword | "; }; } else { if ( $category == "torrent" ){ echo " $keyword | "; } if ( $category == "rapidshare" ){ echo " $keyword | "; }; } # if ( $NumberOfWords >= 2 && $NumberOfWords <= 4 ) { };#if (preg_match('/^[\w+]+$/', $DESC) { }; # if( !preg_match($pattern, $DESC) ){ }; # if ( strlen($DESC) >= 5 && strlen($DESC) <= 40 ) { }; # if (!in_array($keyword, $NoDoubleTags)) { array_push($NoDoubleTags,$keyword ); }; # foreach ($tags as $keyword ) { return 1; }; #function printTagCloud($tags) { function ShowPartnerForNewsArchive(){ # wird bei den Archive Links und bei den News angezeigt # wird bei den Archive Links und bei den News angezeigt /* $mon = date("n"); $lastmon = date("n") - 1; $mday = date("j"); $year = date("Y"); if ( $mday < 1) { if ( $lastmon == 2 ){ $mday = 28; $mon = $lastmon; } elseif ( $lastmon == 4 ){ $mday = 30; $mon = $lastmon; } elseif ( $lastmon == 6 ){ $mday = 30; $mon = $lastmon; } elseif ( $lastmon == 9 ){ $mday = 30; $mon = $lastmon; } elseif ( $lastmon == 11 ){ $mday = 30; $mon = $lastmon; } else { $mday = 31; $mon = $lastmon; }; }; # if ( $mday < 1) { $KeywordManager = "/home/keywordmanager"; $KeyWordManagerTopLink = "$KeywordManager/$mon.$year/$mday.$mon.$year-news/topLi-1.txt"; $count = count(file($KeyWordManagerTopLink)); if ( $count <= 0 ){ $mday--; }; $KeyWordManagerTopLink = "$KeywordManager/$mon.$year/$mday.$mon.$year-news/topLi-1.txt"; $TopKWArray = file($KeyWordManagerTopLink); $zufall = rand(1,53); $TitleTag1 = $TopKWArray[$zufall];$zufall = rand(1,53); $TitleTag2 = $TopKWArray[$zufall];$zufall = rand(1,53); $TitleTag3 = $TopKWArray[$zufall];$zufall = rand(1,53); $TitleTag4 = $TopKWArray[$zufall];$zufall = rand(1,53); $TitleTag5 = $TopKWArray[$zufall];$zufall = rand(1,53); $TitleTag6 = $TopKWArray[$zufall]; $KeywordDelimiter = array("strong","b","i","tt"); $rand = rand(0,3); $KeywordTrenner = $KeywordDelimiter[$rand]; $net = "<" . $KeywordTrenner . ">" . "$TitleTag4 Torrent Download" . ""; $org = "<" . $KeywordTrenner . ">" . "Torrent $TitleTag5 Torrent Search" . ""; $biz = "<" . $KeywordTrenner . ">" . "telecharger $TitleTag6" . ""; */ echo <<

Partner:

Rapidshare Torrent Download | Torrent Rapidshare Download | Rapidshare Torrent News |
Torrent Deutsch | RapidShare Deutsch | eMule Mods download
END; return 1; }; # function ShowPartnerForNewsArchive(){ ?>