<?php function search($query, $min, $orderby, $show) { include(\"modules/$module_name/d_config.php\"); include(\"header.php\"); $orderby = convertorderbyin($orderby); } else { $orderby = \"title ASC\"; } if ($show!=\"\") { $downloadsresults = $show; } else { $show=$downloadsresults; } $query = check_html($query, nohtml); $result = sql_query(\"SELECT lid, cid, title, url, date, hits, downloadratingsummary, totalvotes,
otalcomments, filesize, version, homepage FROM \".$prefix.\"_edonkey_edonkey WHERE title LIKE '%$query%' OR description LIKE '%$query%' ORDER BY $orderby LIMIT $min,$downloadsresults\", $dbi); $fullcountresult = sql_query(\"SELECT lid, title, description, date, hits, downloadratingsummary, totalvote , totalcomments FROM \".$prefix.\"_edonkey_edonkey WHERE title LIKE '%$query%' OR description LIKE '%$query%' \", $dbi); $totalselecteddownloads = sql_num_rows($fullcountresult, $dbi); $nrows = sql_num_rows($result, $dbi); $lid = intval($lid); $cid = intval(trim($cid)); $hits = intval($hits); $totalvotes = intval($totalvotes); $totalcomments = intval($totalcomments); $x=0; $the_query = stripslashes($query); $the_query = str_replace(\"'\", \"'\", $the_query); menu(1); echo \"<br>\"; OpenTable(); if ($query != \"\") { if ($nrows>0) { echo \"<font class=\"option\\">\"._SEARCHRESULTS4.\": <b>$the_query</b></font><br><br>\" .\"<table width=\"100%\\" bgcolor=\"$bgcolor2\"><tr><td><font class=\"option\"><b>\"._USUBCATEGORIES.\"</b></font></td></tr></table>\"; $result2 = sql_query(\"SELECT cid, title FROM \".$prefix.\"_edonkey_categories WHERE title LIKE '%$query%' ORDER BY title DESC\", $dbi); while(list($cid, $stitle) = sql_fetch_row($result2, $dbi)) { $res = sql_query(\"SELECT * FROM \".$prefix.\"_edonkey_edonkey WHERE cid='$cid'\", $dbi); $numrows = sql_num_rows($res, $dbi); $result3 = sql_query(\"SELECT cid,title,parentid FROM \".$prefix.\"_edonkey_categories WHERE cid='$cid'\", $dbi); list($cid3,$title3,$parentid3) = sql_fetch_row($result3, $dbi); if ($parentid3>0) $title3 = getparent($parentid3,$title3); $title3 = ereg_replace($query, \"<b>$query</b>\", $title3); echo \"<strong><big>·</big></strong> <a href=\"modules.php?op=modload&name=Edonkey&d_op=viewdownload&cid=$cid\\">$title3</a> ($numrows)<br>\"; } echo \"<br><table width=\"100%\\" bgcolor=\"$bgcolor2\"><tr><td><font class=\"option\"><b>\"._UDOWNLOADS.\"</b></font></td></tr></table>\"; $orderbyTrans = convertorderbytrans($orderby); echo \"<center><font class=\"content\\">\"._SORTDOWNLOADSBY.\": \" .\"\"._TITLE.\" (<a href=\"modules.php?name=Edonkey&d_op=search&query=$the_query&orderby=titleA\\">A</a><a href=\"modules.php?name=Edonkey&d_op=search&query=$the_query&orderby=titleD\">D</a>) \" .\"\"._DATE.\" (<a href=\"modules.php?name=Edonkey&d_op=search&query=$the_query&orderby=dateA\\">A</a><a href=\"modules.php?name=Edonkey&d_op=search&query=$the_query&orderby=dateD\">D</a>) \" .\"\"._RATING.\" (<a href=\"modules.php?name=Edonkey&d_op=search&query=$the_query&orderby=ratingA\\">A</a><a href=\"modules.php?name=Edonkey&d_op=search&query=$the_query&orderby=ratingD\">D</a>) \" .\"\"._POPULARITY.\" (<a href=\"modules.php?name=Edonkey&d_op=search&query=$the_query&orderby=hitsA\\">A</a><a href=\"modules.php?name=Edonkey&d_op=search&query=$the_query&orderby=hitsD\">D</a>)\" .\"<br>\"._RESSORTED.\": $orderbyTrans</center><br><br><br>\"; while(list($lid, $cid, $title, $url, $description, $time, $hits, $downloadratingsummar
y, $totalvotes, $totalcomments, $filesize, $version, $homepage) = sql_fetch_row($result, $dbi)) { $lid = intval($lid); $cid = intval(trim($cid)); $hits = intval($hits); $totalvotes = intval($totalvotes); $totalcomments = intval($totalcomments); $downloadratingsummary = number_format($downloadratingsummary, $mainvotedecimal); $title = stripslashes($title); $description = stripslashes($description); $transfertitle = str_replace (\" \", \"_\", $title); $title = ereg_replace($query, \"<b>$query</b>\", $title); global $prefix, $dbi, $admin; if (is_admin($admin)) { echo \"<a href=\"admin.php?op=EdonkeyModDownload&lid=$lid\\"><img src=\"images/edonkey/esel.gif\" border=\"0\" alt=\"\"._EDIT.\"\"></a> \"; } else { echo \"<img src=\"images/edonkey/esel.gif\\" border=\"0\" alt=\"\"> \"; } ?>
Jako ¿e jestem pocz±tkuj±cym phpowiczem nie wiem który fragment jest odpowiedzialny za samo wysy³anie zapytania, chodzi mi o to aby wyszukiwarka nie szuka³a w description! Je¶li kto¶ wie o co mi chodzi niech napisze który to fragment!