rendered paste body****Original BTIT****
<td><input type="submit" value="<?php echo SEARCH; ?>"></td>
</tr>
</table>
</form>
</p>
<TABLE width="100%" >
<TR>
<?php
/* Rewrite, part 1: encode "WHERE" statement only. */
// echo "Totale torrents trovati: $count";
// selezione categoria
if ($category[0]>0) {
$where .= " AND category IN (".implode(",",$category).")"; // . $_GET["category"];
$addparam.="&category=".implode(";",$category); // . $_GET["category"];
}
global $pagertop, $pagerbottom, $query_select;
// Search
if (isset($_GET["search"])) {
$testocercato = trim($_GET["search"]);
$testocercato = explode(" ",$testocercato);
if ($_GET["search"]!="")
$search = "search=" . implode("+",$testocercato);
for ($k=0; $k < count($testocercato); $k++) {
$query_select .= " namemap.filename LIKE '%" . mysql_escape_string($testocercato[$k]) . "%'";
if ($k<count($testocercato)-1)
$query_select .= " AND ";
}
$where .= " AND " . $query_select;
}
// FINE RICERCA