Type |
Date |
Name |
Seeder |
Leecher |
Freshness |
END;
if ( count($ResultsArray) <= 0 ){
$sorry = "Sorry, we didn't find any matching documents!
";
$tableheader = "";
};
echo <<
$tableheader
END;
$affilatelink = AFFILATELINK;
for ( $ArrayCount=0; $ArrayCount<=count($ResultsArray) - 1; $ArrayCount++ ) {
// array_push($ResultArray, "$DESC#####$DATE#####$ID#####$CATG#####$LINK#####$TORRENT######$LEECHER#####$SEEDER#####$HASH\n");
list( $description, $date, $id, $catg,$link,$torrent,$leecher,$seeder,$hash ) = explode('#####', $ResultsArray[$ArrayCount] );
$url_desc = strtolower(title_plus($description));
$my_url = selfURL();
$health = getBalkenColor();
trim($id);
//$rageurl = "http://www.torrentrage.com/$id/download/$url_desc".".html";
// |
$rageurl = "http://www.torrentrage.com/download.php?f=$url_desc&id=$id";
$trans = array("ä" => "ä", "Ä" => "Ä", "ü" => "ü",
"Ü" => "Ü", "ö" => "ö", "Ö" => "Ö", "ß" => "ß");
$description = strtr($description, $trans);
$text_to_highlight = highlight_this($description, $SearchQuery); // functions.inc.php
//echo "DESC:= $description // SEARCH: $SearchQuery // HIGH: $text_to_highlight
";
echo <<
$catg |
$date |
|
$seeder |
$leecher |
 |
END;
array_push($DublicatArray, $description );
}; // for ( $ArrayCount=0; $ArrayCount<=count($ResultsArray) - 1; $ArrayCount++ ) {
echo "
";
}; // function ShowResults( $ResultsArray, $SearchQuery, $Page ){
# show the navigation buttons
function ShowNaviButtons( $SearchQuery, $Page, $ResultCount ){
$CurrentPage = $Page;
$PageNext = $CurrentPage + 1;
$PageBack = $CurrentPage - 1;
$WellFormatedSearch = title_plus(strtolower($SearchQuery));
if ( $PageBack <= -1 ) {
$PageBack = 0;
};
$vor = "http://www.torrentrage.com/search.php?s=$WellFormatedSearch&p=$PageNext";
$zurck = "http://www.torrentrage.com/search.php?s=$WellFormatedSearch&p=$PageBack";
$maxresults = MAXRESULTS;
//$SqlQuery = doQueryForAllResultCount($SearchQuery);
//$MySqlArray = doSQLQueryTR( $SqlQuery );
//$sql_results = mysql_fetch_array($MySqlArray);
//$SqlCount = $sql_results["COUNT"];
//$ResultsUpTo = floor($SqlCount / $maxresults );
/*
if ( $ResultsUpTo <= SHOWHOWMANYRESULTBUTTONS && $ResultsUpTo > 0 ){
$IGoTo = $ResultsUpTo;
} elseif ($ResultsUpTo > SHOWHOWMANYRESULTBUTTONS ) {
$IGoTo = SHOWHOWMANYRESULTBUTTONS;
};
*/
echo <<