Les plus demandés |
END; list($mday,$mon,$year) = explode('-', $date); #echo "$mday,$mon,$year"; $monthdigit = TransferMonthNameToDigit( $mon, 'fr' ); $newstring = substr($monthdigit, 0, 1); $aft = substr($monthdigit, 1, 2); #echo "monthdigit=$monthdigit "; if ( $newstring == 0 ){ $mon = $aft; } else { $mon = $monthdigit; }; #$mday -= 2; # bei den news werden die keywords vom vortrag genommen #$lastmon = $mon - 1; 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 = "/srv/server/keywordmanager"; $KeyWordManagerTopLink = "$KeywordManager/$mon.$year/$mday.$mon.$year-news/top600.txt"; $count = count(file($KeyWordManagerTopLink)); if ( $count <= 0 ){ $mday--; }; $KeyWordManagerTopLink = "$KeywordManager/$mon.$year/$mday.$mon.$year-news/top600.txt"; $KewordArray = file($KeyWordManagerTopLink); # $H1Keyword = GetNextValidEntry( $NoDoubleEntries, $KewordArray, 0 ); # $H2Keyword = GetNextValidEntry( $NoDoubleEntries, $KewordArray, 0 ); $rand_css = rand(0,14) + 1; echo "
|
"; return 1; /* $KeywordManager = "/srv/server/keywordmanager"; $KeyWordManagerTopLink = "$KeywordManager/$mon.$year/$mday.$mon.$year-news/topH1"; $KeyWordManagerTopStrong = "$KeywordManager/$mon.$year/$mday.$mon.$year-news/topH2"; $KeyWordManagerTopBold = "$KeywordManager/$mon.$year/$mday.$mon.$year-news/topH3"; $KeyWordManagerTopLi = "$KeywordManager/$mon.$year/$mday.$mon.$year-news/topLi"; global $NoDoubleEntries; for( $i=1; $i<=8; $i++ ){ $H1KeywordsArray = array(); $H1KeywordsArray = file("$KeyWordManagerTopLink-$i.txt"); # $H1Keyword = $H1KeywordsArray[0]; $H1Keyword = GetNextValidEntry( $NoDoubleEntries, $H1KeywordsArray, 0 ); if ( strlen($H1Keyword) > 1 ) { echo "
";
$KeywordsArray = array();
$KeywordsArray = file("$KeyWordManagerTopStrong-$i.txt");
# $H2Keyword = $KeywordsArray[0];
$H2Keyword = GetNextValidEntry( $NoDoubleEntries, $KeywordsArray, 0 );
if ( strlen($H2Keyword) > 1 ) {
echo "$H2Keyword
";
}; # if ( strlen($H1Keyword) > 1 ) {
$KeywordsArray = array();
$KeywordsArray = file("$KeyWordManagerTopBold-$i.txt");
$KeywordsArray2 = array();
$KeywordsArray2 = file("$KeyWordManagerTopLi-$i.txt");
for ( $m=1; $m<=7; $m++ ) { # 3 mal den block schreiben
# $KEYW = $KeywordsArray[$m-1];
$KEYW = GetNextValidEntry( $NoDoubleEntries, $KeywordsArray, $m-1 );
if ( strlen($KEYW) > 1 ){
echo "$KEYW
";
}; # if ( strlen($KEYW) > 1 ){
for ( $x=(11*$m)-10; $x<=(11*$m); $x++ ) {
# $KEYW1 = $KeywordsArray2[$x];
$KEYW1 = GetNextValidEntry( $NoDoubleEntries, $KeywordsArray2, $x );
if ( strlen($KEYW1) > 1 ){
echo "
"; }; # for( $i=1; $i<=8; $i++ ){ echo "
"; $NoDoubleEntries = array(); return 1; */ }; # function _GenerateMostWanted(){ function GetNextValidEntry( $NoDoubleEntries, $KeyWordArray, $X ){ global $NoDoubleEntries; for ($i=$X; $i<=count($KeyWordArray); $i++ ) { $entry = trim($KeyWordArray[$i]); if ( in_array($entry, $NoDoubleEntries) ) { $X++; # return GetNextValidEntry( $NoDoubleEntries, $KeyWordArray, $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 ); # return $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 _GenerateNewsOverviewNews( $Date, $limit ){ $TitleDate = ucfirst(str_replace("-", " ", $Date)); $Date = TransferGetMonthYearLong($Date, 'fr'); $DayBefore = GetLetterDateForNewsLinkFromDateMinusEN( $Date, '1'); # works !! $NextDay = GetLetterDateForNewsLinkFromDatePlusEN($Date, '1'); $Day = date("d"); $Day2 = date("j"); list($Nday,,) = explode('-',$NextDay); $list = explode('-', $Date ); # date= 12-märz-2006 --- Date vom gewünschten, parameter übergebenen $Date $listC = explode('-', TransferGetMonthYear( GetMonthYear(0), 'fr' ) ); # date= 12-märz-2006 --- Date vom aktuellen tag $Month = $list[1]; # wanted date $Year = $list[2]; $MonthC = $listC[0]; # current date $YearC = $listC[1]; # if ( ($Nday > $Day || $Nday > $Day2 ) && $Year == $YearC && strcasecmp( $Month , $MonthC) == 0 ){ # next pfeil liegt in zukunft # # } else{ $Next = " >>> "; # }; echo <<
Nouvelles eMule $TitleDate | Nouvelles BitTorrent $TitleDate |
0-9 A-D E-K L-N O-S T-Z | 0-9 A-D E-K L-N O-S T-Z |
<<< $Next
END; return 1; }; # function _GenerateNewsOverview(){ function _GenerateTopSearchFieldNews( $Date, $limit ){ # Algorithmus zum erstellen der Translate Links von english -> deutsch $RequestUrl = "http://www.zoozle.biz" . $_SERVER["REQUEST_URI"]; $list = explode('/', $RequestUrl); $MonthYear = array_pop($list); # hole letztes element: januar-2006.html $list = explode(',', $MonthYear); $TransferedMonthYear = TransferGetMonthYearLong($list[0], 'fr'); # aus january-2006.html -> januar-2006.html $TransferedMonthYearDE = TransferGetMonthYearLong($list[0], 'de'); $TransferedMonthYearEN = TransferGetMonthYearLong($list[0], 'en'); $TransferdURIDE = "http://www.zoozle.net/emule-bittorrent-news-deutsch/$TransferedMonthYearDE"; $TransferdURIEN = "http://www.zoozle.org/emule-bittorrent-news-english/$TransferedMonthYearEN"; /* if ( eregi("([0-9]{1,2})-([a-z]{3,16})-([0-9]{2,4})", $TransferedMonthYear) ){ if ( strlen($list[1]) == 3 && strlen($list[2]) > 4) { $TransferdURI = "http://www.zoozle.net/emule-bittorrent-news-deutsch/$TransferedMonthYear,$list[1],$list[2]"; } else { $TransferdURI = "http://www.zoozle.net/emule-bittorrent-news-deutsch/$TransferedMonthYear"; }; } else { $TransferdURI = "http://www.zoozle.biz/"; }; */ $table = TORRENT_NEWS; $SqlDate = ConvertNormalDateToSQLDate($Date, 'fr'); $NewsEnImg1Keyword = "SELECT DISTINCT `DESC` FROM `$table` WHERE `DATE` = \"$SqlDate\" AND `CATG` = 'fr' ORDER BY `DESC` DESC LIMIT 5,1"; $MySqlResults1 = doSQLQueryZoozle( $NewsEnImg1Keyword ); $sql_results1 = mysql_fetch_array($MySqlResults1); $ImgKeyWord1 = $sql_results1["DESC"]; echo <<
traduire/übersetzen/translate
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"); $TitleDate = ucfirst(str_replace("-", " ", $Date)); $table = TORRENT_NEWS; $SqlDate = ConvertNormalDateToSQLDate($Date, 'fr'); $NewsEnTitleKeyword = "SELECT DISTINCT `DESC` FROM `$table` WHERE `DATE` = \"$SqlDate\" AND `CATG` = 'fr' ORDER BY `DESC` DESC LIMIT 5,1"; $MySqlResults = doSQLQueryKeywords( $NewsEnTitleKeyword ); $sql_results = mysql_fetch_array($MySqlResults); $TitleKeyWord = $sql_results["DESC"]; echo <<