0) { if ($data_version != "1.0") { printf ("", $data_version); } if ($qrystatus ["prevurl"][0]) { // Modify slightly for the 'local' page: printf ("[ Prev ]", $PHP_SELF, strchr ($qrystatus ["prevurl"], "?")); } printf (" Results %d - %d of %s ", $qrystatus ["head"], $qrystatus ["tail"], $qrystatus ["count"]); if ($qrystatus ["nexturl"][0]) { // Modify slightly for the 'local' page: printf ("[ Next ]", $PHP_SELF, strchr ($qrystatus ["nexturl"], "?")); } echo "

"; // Here we are going to loop over all the items in the $recs array and // output as necessary. for ($x = 0; $x < $recctr; $x++) { if (strlen ($recs [$x] ["title"]) > 64) { $ShowTitle = sprintf ("%-.61s...", $recs [$x] ["title"]); } else $ShowTitle = $recs [$x] ["title"]; if (strlen ($recs [$x] ["descr"]) > 192) { $ShowDescr = sprintf ("%-.189s...", $recs [$x] ["descr"]); } else $ShowDescr = $recs [$x] ["descr"]; $DisplayURL = $recs [$x] ["dispurl"]; if (!$ShowTitle) $ShowTitle = $DisplayURL; // Optionally, one might remove the "http://r.searchhippo.com/r?u=" piece // from the URL *displayed* Please keep the redirect there for the actual // hyperlink, because we use this information in determining which // sites are clicked on the most which one of the variables in our // ranking mechanism. // Outputting some HTML below /*******************************************************/ printf ("%d. %s
", $x + $qrystatus ["head"], htmlspecialchars ($recs [$x] ["url"], ENT_NOQUOTES), $ShowTitle); if (strlen ($ShowDescr) > 0) { printf ("%s
", $ShowDescr); } printf ("%s
\n", $DisplayURL); printf("


\n"); /*******************************************************/ } printf (""); } else { printf ("
Sorry, no results available for \"%s\"
\n", $q); } } // You *MUST* leave SearchHippo attribution! echo '
Powered by: SearchHippo.com
'; ?>