| Most Wanted | 
| END; /* 
		[random Block C] x
		
 | 
"; ######## ### RETURN ########## return 1; }; # function _GenerateMostWanted(){ function GenerateBlockB( $KewordArray ){ global $NoDoubleEntries; /* - Am Anfang zufällig entscheiden, ob
 oder  
		      
		
			
				$Back    
				$Next
			
		
		    
 oder 
 (zufällig 1/3 Chance)
	global $NoDoubleEntries;
	
	$rand				= rand(0,2);
	$KeywordDelimiter	= array("p","
","
");
	$KeywordTrenner		= $KeywordDelimiter[$rand];
	
	# $CurrentKeyWord	= $KewordArray[$KeyWordArrayCurrent];
	$CurrentKeyWord		= GetNextValidEntry( $NoDoubleEntries, $KewordArray, 0 );
	if ( $rand == 0 ){
	
		if ( strlen($CurrentKeyWord) > 4 ){
			return "<" . $KeywordTrenner . ">" . $CurrentKeyWord . "" . $KeywordTrenner . ">";
		}; # if ( strlen($CurrentKeyWord) > 3 ){
		# return "($KeywordTrenner) <" . $KeywordTrenner . ">" . $CurrentKeyWord . "" . $KeywordTrenner . ">";
	} else {
		if ( strlen($CurrentKeyWord) > 4 ){
			return "$CurrentKeyWord $KeywordTrenner ";
			# return "($KeywordTrenner) $CurrentKeyWord $KeywordTrenner";
		}; # if ( strlen($CurrentKeyWord) > 3 ){
	}; # if ( $rand == 0 ){
}; # function GenerateBlockC(){
function GetNextValidEntry( $NoDoubleEntries, $KeyWordArray, $X ){
	# holen nächsten eintrag, auf auf jeden fall nicht den gleichen, der schon verwendet wurde
	global $NoDoubleEntries;
	
	for ($i=$X; $i<=count($KeyWordArray); $i++ ) {
		$entry = $KeyWordArray[$i];
		
		if ( in_array($entry, $NoDoubleEntries) ) {
			
			$X++;
			$string = trim(GetNextValidEntry( $NoDoubleEntries, $KeyWordArray, $X ));
			$string = str_replace("Â", "", $string); # ƒÃ‚Â¥
			$string = str_replace("ƒ", "", $string); # ƒÃ‚Â¥
			$string = str_replace("Ã", "", $string); # ƒÃ‚Â¥
			$string = str_replace("¥", "", $string); # ƒÃ‚Â¥
			$string = str_replace(",", "", $string); # ƒÃ‚Â¥
			
			return $string;
		} else {
			array_push($NoDoubleEntries, $entry );
			$string = trim($entry);
			$string = str_replace("Â", "", $string); # ƒÃ‚Â¥
			$string = str_replace("ƒ", "", $string); # ƒÃ‚Â¥
			$string = str_replace("Ã", "", $string); # ƒÃ‚Â¥
			$string = str_replace("¥", "", $string); # ƒÃ‚Â¥
			$string = str_replace(",", "", $string); # ƒÃ‚Â¥
			return $string;
			 
		}; # if ( in_array($entry, $NoDoubleEntries) ) {
	}; # for ($i=$X; $i<=count($KeyWordArray); $i++ ) {
}; # function GetNextValidEntry( $NoDoubleEntries, $KeyWordArray, $X ){
function random($NotAllowedArray, $from, $to){	# Array, From, To
	# hole ein zufallselement herraus, dieses eleement darf jedoch bis jetzt noch nicht verwendet
	# worden sein $NotAllowedArray und hole zufallszahlen von X bis Y
	$rand = rand($from, $to);
	$good = 1;
	foreach ( $NotAllowedArray as $var ){
		if ( $rand == $var ){
			$good .= 0;
		}; # if ( $rand == $var ){
	}; # foreach ( $NotAllowedArray as $var ){
	if ( $good != 1 ) {
		return random($NotAllowedArray, $from, $to);
	} else {
		return $rand;
	}; #if ( $good != 1 ) {
}; # function random($NotAllowedArray, $from, $to){	# Array, From, To
function one( $KewordArray, $KeywordTrenner ){
	
	global $NoDoubleEntries;
	$rand_strong		= rand(0,5) + 1;	# 1-6   		x 	strong				Link	
	$RArray				= array();
	for ( $i=1; $i<=($rand_strong+1); $i++ ){
		$CurrentKeyWord		= GetNextValidEntry( $NoDoubleEntries, $KewordArray, 0 );
		$CurrentKeyWordDesc	= $CurrentKeyWord;
		$CurrentKeyWord		= trim_spaces23( $CurrentKeyWord );
		#$ReturnString		= "$KeywordTrenner " . "" . "$CurrentKeyWord" . "";
		
		if ( strlen($CurrentKeyWord) > 4 ){
			$ReturnString		= "" . "$CurrentKeyWordDesc" . " $KeywordTrenner";
		}; # if ( strlen($CurrentKeyWord) > 3 ){
		array_push($RArray, $ReturnString);
		$ReturnString		= "";
	}; # for ( $i=1; $i<=($rand_strong+1); $i++ ){
	return $RArray;
}; # function one( $KewordArray, $KeywordTrenner ){
function two( $KewordArray, $KeywordTrenner ){
	
	global $NoDoubleEntries;
	$rand_bold			= rand(1,7) + 1;	# 2-8 			x 	bold				Link	
	$RArray				= array();
	for ( $i=1; $i<=($rand_bold+1); $i++ ){
		$CurrentKeyWord		= GetNextValidEntry( $NoDoubleEntries, $KewordArray, 0 );
		$CurrentKeyWordDesc	= $CurrentKeyWord;
		$CurrentKeyWord		= trim_spaces23( $CurrentKeyWord );
		if ( strlen($CurrentKeyWord) > 4 ){
			$ReturnString		= "" . "$CurrentKeyWordDesc" . " $KeywordTrenner";
		}; # if ( strlen($CurrentKeyWord) > 3 ){
		# $ReturnString		= "$KeywordTrenner " . "" . "$CurrentKeyWordDesc" . "";
		array_push($RArray, $ReturnString);
		$ReturnString		= "";
	}; # for ( $i=1; $i<=($rand_strong+1); $i++ ){
	return $RArray;
}; # function two( $KewordArray, $KeywordTrenner ){
 function three( $KewordArray, $KeywordTrenner ){
	
	global $NoDoubleEntries;
	$rand_italic		= rand(0,5) + 1;	# 1-6			x	italic				Link			
	$RArray				= array();
	for ( $i=1; $i<=($rand_italic+1); $i++ ){
		$CurrentKeyWord		= GetNextValidEntry( $NoDoubleEntries, $KewordArray, 0 );
		$CurrentKeyWordDesc	= $CurrentKeyWord;
		$CurrentKeyWord		= trim_spaces23( $CurrentKeyWord );
		if ( strlen($CurrentKeyWord) > 4 ){
			$ReturnString		= "" . "$CurrentKeyWordDesc" . " $KeywordTrenner";
		}; # if ( strlen($CurrentKeyWord) > 3 ){
		#$ReturnString		= "$KeywordTrenner " . "" . "$CurrentKeyWordDesc" . "";
		array_push($RArray, $ReturnString);
		$ReturnString		= "";
	}; # for ( $i=1; $i<=($rand_strong+1); $i++ ){
	return $RArray;
}; # function three( $KewordArray, $KeywordTrenner ){
function four( $KewordArray, $KeywordTrenner ){
	
	global $NoDoubleEntries;
	$rand_oLink			= rand(2,9) + 1;	# 3-10 			x 	ohne Formatierung	Link					
	$RArray				= array();
	for ( $i=1; $i<=($rand_oLink+1); $i++ ){
		$CurrentKeyWord		= GetNextValidEntry( $NoDoubleEntries, $KewordArray, 0 );
		$CurrentKeyWordDesc	= $CurrentKeyWord;
		$CurrentKeyWord		= trim_spaces23( $CurrentKeyWord );
		if ( strlen($CurrentKeyWord) > 4 ){
			$ReturnString		= "$CurrentKeyWordDesc $KeywordTrenner";
		}; # if ( strlen($CurrentKeyWord) > 3 ){
		#$ReturnString		= "$KeywordTrenner " . "$CurrentKeyWord";
		array_push($RArray, $ReturnString);
		$ReturnString		= "";
	}; # for ( $i=1; $i<=($rand_strong+1); $i++ ){
	return $RArray;
}; # function four( $KewordArray, $KeywordTrenner ){
function five( $KewordArray, $KeywordTrenner ){
	
	global $NoDoubleEntries;
	$rand_oText			= rand(9,29) + 1;	# 10-30			x	ohne Formatierung	Text				
	$RArray				= array();
	for ( $i=1; $i<=($rand_oText+1); $i++ ){
		$CurrentKeyWord		= GetNextValidEntry( $NoDoubleEntries, $KewordArray, 0 );
		if ( strlen($CurrentKeyWord) > 4 ){
			$ReturnString		= "$CurrentKeyWord $KeywordTrenner";
		}; # if ( strlen($CurrentKeyWord) > 3 ){
		#$ReturnString		= "$KeywordTrenner $CurrentKeyWord";
		array_push($RArray, $ReturnString);
		$ReturnString		= "";
	}; # for ( $i=1; $i<=($rand_strong+1); $i++ ){
	return $RArray;
}; # function five( $KewordArray, $KeywordTrenner ){
function pfeileBack( $Date ){
	# aktuelles datum zusammensetzen
	$d = date("d");	
	$m = date("m");	
	$y = date("Y");	
	$StartDate				= "01.01.2007";
	$EndDate				= "$d.$m.$y";
	list($day,$mon,$year)	= explode("-", $Date );
	$mon_digit				= TransferMonthNameToDigit( $mon, "de" );
	
	$CurrentDate			= "$day.$mon_digit.$year";
	list($d1,$m1,$y1)		= explode(".", $StartDate );
	$StartDate				= "$y1.$m1.$d1";
	list($d2,$m2,$y2)		= explode(".", $EndDate );
	$EndDate				= "$y2.$m2.$d2";
	list($d3,$m3,$y3)		= explode(".", $CurrentDate );
	$CurrentDate			= "$y3.$m3.$d3";
	$StartDate				= str_replace(".","",$StartDate);
	$EndDate				= str_replace(".","",$EndDate);
	$CurrentDate			= str_replace(".","",$CurrentDate);
	# echo "Cur: $CurrentDate | Start: $StartDate | End: $EndDate
";
	if ( $CurrentDate <= $StartDate ){	 # wenn aktuelles Datum kleiner gleich dem minimalen datum ist
				
		#return "0:: $CurrentDate > $StartDate";
		return 0;
	} elseif ( $CurrentDate > $StartDate ){	# wenn aktuelles datum größer/akuteller als das minimale datum ist
		#return "1:: $CurrentDate > $StartDate";
		return 1;
	}; # if ( $CurrentDate <= $StartDate ){
}; # function pfeileBack( $Date ){
function pfeileNext( $Date ){
	# aktuelles datum zusammensetzen
	$d = date("d");	
	$m = date("m");	
	$y = date("Y");	
	$StartDate				= "01.01.2007";
	$EndDate				= "$d.$m.$y";
	list($day,$mon,$year)	= explode("-", $Date );
	$mon_digit				= TransferMonthNameToDigit( $mon, "de" );
	
	$CurrentDate			= "$day.$mon_digit.$year";
	list($d1,$m1,$y1)		= explode(".", $StartDate );
	$StartDate				= "$y1.$m1.$d1";
	list($d2,$m2,$y2)		= explode(".", $EndDate );
	$EndDate				= "$y2.$m2.$d2";
	list($d3,$m3,$y3)		= explode(".", $CurrentDate );
	$CurrentDate			= "$y3.$m3.$d3";
	$StartDate				= str_replace(".","",$StartDate);
	$EndDate				= str_replace(".","",$EndDate);
	$CurrentDate			= str_replace(".","",$CurrentDate);
	# echo "Cur: $CurrentDate | Start: $StartDate | End: $EndDate
";
	if ( $CurrentDate <= $StartDate || $CurrentDate > $EndDate ){ # wenn aktuelles Datum kleiner gleich dem minimalen datum ist ODER aktuelle datum größer als das enddatum ist
				
		#return "0:: $CurrentDate > $StartDate";
		return 0;
	} elseif ( $CurrentDate < $EndDate ){	# wenn aktuelles datum kleiner/gleich als das enddatum ist
		#return "1:: $CurrentDate > $StartDate";
		return 1;
	}; # if ( $CurrentDate <= $StartDate ){
}; # function pfeileNext( $Date ){
function JahrBack( $Date ){
	list($day,$mon,$year)	= explode("-", $Date );
	$mon_digit				= TransferMonthNameToDigit( $mon, "de" );
	
	$CurrentDate			= $day.$mon_digit;
	$EndDate				= "3112";
	if ( $mon_digit == "01" && $day == "01" ){
		
		if ( $EndDate > $CurrentDate ) {
			return 1;
		} else {
			return 0;
		};
	} else {
		return 0;
	};# if ( $mon_digit == "01" && $day == "01" ){
}; # function JahrBack( $Date ){
function JahrNext( $Date ){
	list($day,$mon,$year)	= explode("-", $Date );
	$mon_digit				= TransferMonthNameToDigit( $mon, "de" );
	
	$CurrentDate			= $day.$mon_digit;
	$EndDate				= "0101";
	#echo "$CurrentDate > $EndDate";
	if ( $mon_digit == "12" && $day == "31" ){
		
		if ( $CurrentDate > $EndDate ) {
			return 1;
		} else {
			
			return 0;
		};
	} else {
		
		return 0;
	}; # if ( $mon_digit == "12" && $day == "31" ){
}; # function JahrNext( $Date ){
function _GenerateNewsOverviewNews( $Date, $limit ){
	# http://www.zoozle.net/torrent-rapidshare-download-deutsch/13-februar-2008.html
	$TitleDate	= ucfirst(str_replace("-", " ", $Date));
	$DayBefore	= TransferGetMonthYearLong( GetLetterDateForNewsLinkFromDateMinus( $Date, '1') ,'de' );
	$NextDay	= TransferGetMonthYearLong( GetLetterDateForNewsLinkFromDatePlus( $Date, '1') ,'de' );
	
	
	# echo "BACK: " . pfeileBack( $Date );
	# echo "NEXT: " . pfeileNext( $Date );
	# echo "$Date   " .JahrBack( $Date );
	# echo "$Date   " .JahrNext( $Date );
	if ( JahrBack( $Date ) == 1 ) {
		list($d,$m,$y) = explode("-", $DayBefore );
		$y -= 1;
		$DayBefore = "$d-$m-$y";
	};
	if ( JahrNext( $Date ) == 1 ) {
		list($d,$m,$y) = explode("-", $NextDay );
		$y += 1;
		$NextDay = "$d-$m-$y";
	};
	$Back = " <<<     ";
	$Next = " >>> ";
	if ( pfeileBack( $Date ) == 0 ) {
		$Back = "";
	};
	if ( pfeileNext( $Date ) == 0 ) {
		$Next = "";
	};
	
	echo <<
	  $TitleDate
	  
	 
			
	
			 	 
			eMule 
				  
				Rapidshare 
				  
				Torrent 
			
				 
		
					
						0-9 
						A-G 
						H-Z 
					
			 
			  
			
					
						0-9 
						A 
						B 
						C 
						D 
						E 
						F-G 
						H-J 
						 
			
			
						K-L 
						M 
						N-O 
						P-R 
						S 
						T 
						U-Z 
					
			  
				
					
						
							0-9 
							A 
							B 
							C 
							D 
							E 
							F-G 
							H-J 
							   
			 
							K-L 
							M 
							N-O 
							P-R 
							S 
							T 
							U-Z 
						
					
				 
		
übersetzen / translate / traduire
END; return 1; }; # function GenerateTopSearchField( $Date ){ function _GenerateHtmlHeaderNews( $Date ){ header("Content-type: text/html"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: public"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: use-cache"); $table = TORRENT_NEWS; $SqlDate = ConvertNormalDateToSQLDate($Date, 'de'); $NewsDeTitleKeyword = "SELECT DISTINCT `DESC` FROM `$table` WHERE `DATE` = \"$SqlDate\" AND `CATG` = 'de' ORDER BY `DESC` DESC LIMIT 5,1"; $MySqlResults = doSQLQueryZoozle( $NewsDeTitleKeyword ); $sql_results = mysql_fetch_array($MySqlResults); $TitleKeyWord = $sql_results["DESC"]; $tmp = ucfirst(str_replace("-", ".", $Date)); $TitleDate = ucfirst(str_replace("-", " ", $Date)); $MetaKeysExtra = ""; if ( pfeileBack( $tmp ) == 0 ) { $MetaKeysExtra = ""; }; echo <<