$MonthName $year Torrent Updates
More Pages of Torrent Downloads
END; $SqlQuery = doQueryForAllResultCountNewDirectory($DateNew); $MySqlArray = doSQLQuery( $SqlQuery ); $sql_results = mysql_fetch_array($MySqlArray); $SqlCount = $sql_results["COUNT"]; $ResultsUpTo = floor($SqlCount / MAXRESULTSDIRECTORY ); if ( $ResultsUpTo <= SHOWHOWMANYRESULTBUTTONS && $ResultsUpTo > 0 ){ $IGoTo = $ResultsUpTo; } elseif ($ResultsUpTo > SHOWHOWMANYRESULTBUTTONS ) { $IGoTo = SHOWHOWMANYRESULTBUTTONS; }; $show_pages = ""; for ( $i=1;$i<=$IGoTo - 1;$i++){ if ( $i == $Page ){ $show_pages .= " $i "; } else { $show_pages .= " $i "; }; }; // for ( $i=1;$i<=$IGoTo;$i++){ // tag zurück $tmp = $RealDay; $myaa = $tmp - 1; // tag vor $tmp = $RealDay; $myaaa = $tmp + 1; $DateNewMinus = "$year-$myb-$myaa"; $DateNewPlus = "$year-$myb-$myaaa"; //echo "DATE: $Date // PLUS: $DateNewPlus // Minus: $DateNewMinus // myaazurück: $myaa /// myaaavor: $myaaa"; if ( $myaa > 0 ) { echo "
"; } else { echo "
"; }; echo <<
Torrents of the Day $day of $MonthName $year
END; for ( $ArrayCount=0; $ArrayCount<=count($ResultsArray) - 1; $ArrayCount++ ) { list( $description, $detaillink, $picturelink, $directlink, $length, $tags, $categorys, $rating, $md5hash, $offline, $sortpriority, $date ) = explode('#####', $ResultsArray[$ArrayCount] ); trim($description); $desc = strtolower(title_plus($description)); $desc = substr_replace($desc, "", strrpos($desc, "\\"), 1); // http://www.torrentrage.com/torrent/80+s+disco+legend+v.html $descurl = $desc.".html"; //echo "DESCORG: $description"; //echo "DESCBEAUTY: $desc
"; echo "$description
"; }; // for ( $ArrayCount=0; $ArrayCount<=count($ResultsArray) - 1; $ArrayCount++ ) { $currentmonate = mktime(0, 0, 0, date("m"), date("j"), date("Y")); $einsbackmonate = mktime(0, 0, 0, date("m")-1, date("j"), date("Y")); $zweibackmonate = mktime(0, 0, 0, date("m")-2, date("j"), date("Y")); $eins = date("m-Y", $currentmonate); $zwei = date("m-Y", $einsbackmonate); $drei = date("m-Y", $zweibackmonate); echo "
Torrent Download Calendar - Month:
$MonthName $year / $MonthNameZwei $year / $MonthNameZwei $year"; echo "