Go to the source code of this file.
Functions | |
| if (count($aryMaxHits) > 1) | |
| If (trim($aryComment[0]) == "Soundex Applied") | |
| fncDebug ("strResultsClean", $strResultsClean, 3) | |
| if (substr($strResultsClean,0,3) == "err") | |
| while (substr($aryResults[$i],0,1) != "#" && substr($aryResults[$i],0,3) != "err" && $aryResults[$i] != "" && $aryResults[$i] != "." && $i <= $intPageOffset + $intPageOffsetCorrect + $intMaxHits) | |
| if (count($aryMetaList) > 0) | |
| fncDebug ("Current File", $strCurrentFile, 4) | |
| reset ($aryMetaList) | |
| while ($aryMetaList[$p]) | |
| If ($intNumHits > 0) | |
| If ($intNumHits > $intMaxHits) | |
| If ($intTimeComplete < 1) | |
| fncPrintFooter ("<P>Search completed in $intTimeComplete.") | |
Variables | |
| <?PHP$intTimeBegan=timeunset($debug);requiresearch.inc");?> <!DOCTYPEHTMLPUBLIC"-< HTMLlang="en-us"> <?PHP?> < HEAD> <TITLE> Simple Web Search for | quot ) |
| </TITLE> <METAhttp-equivContent-Type"content="texthtml;charset=iso-8859-1"> < METAname="robots"contentindex,nofollow"> <METAnamedescription"content="SimpleWebSearch!"> < LINKhref="<?phpprint$strStyleName?> | rel |
| intMaxHitsOffset = $intPageOffset + $intMaxHits | |
| echo Displaying intPageOffsetOne through intPageHitsThru of intNumHits results <BR> n | n |
| i = $intPageOffset + $intPageOffsetCorrect | |
| endwhile | |
| intResultBytes = trim($aryResultLine[2]) | |
| j | |
| p = 0 | |
| print t t<SPAN style=\"FontSize: 75%; Font-Weight:900;\"> | Score |
| print t t<SPAN style=\"FontSize: 75%; Font-Weight:900;\"> | Size |
| intTimeComplete = time() - $intTimeBegan | |
|
|
Definition at line 342 of file search.php3. Referenced by If(), and intMaxHitsOffset(). 00342 {$intTimeComplete = "less than 1 second";}
|
|
|
Definition at line 287 of file search.php3. 00287 {
00288 print "<TABLE>\n<TR>\n";
00289 If ($intMaxHits < $intMaxHitsOffset){
00290 print "\t<TD>\n";
00291 $intPrevVal = $intMaxHitsOffset - (2 * $intMaxHits);
00292 print "\t<FORM action=\"$strSelf\" method=\"POST\" name=\"frmPrev\">\n";
00293 print "\t\t<INPUT type=\"HIDDEN\" name=\"do\" value=\"now\">\n";
00294 /*
00295 ** Bug Fix JB: Parenthesis July 13, 1999
00296 ** print "\t\t<INPUT type=\"HIDDEN\" name=\"words\" value=\"". stripslashes($words) ."\">\n";
00297 */
00298 print "\t\t<INPUT type=\"HIDDEN\" name=\"words\" value=\"".stripslashes(str_replace('"','',$words)) ."\">\n";
00299 print "\t\t<INPUT type=\"HIDDEN\" name=\"strSearchSiteKey\" value=\"" . stripslashes($strSearchSiteKey) . "\">\n";
00300 print "\t\t<INPUT type=\"HIDDEN\" name=\"intMaxHits\" value=\"$intMaxHits\">\n";
00301 print "\t\t<INPUT type=\"HIDDEN\" name=\"intPageOffset\" value=\"$intPrevVal\">\n";
00302 // Print out Search delimiters to hidden fields.
00303 reset ($arySearchDelimiter);
00304 while (list($key,$val) = each($arySearchDelimiter)) {
00305 if (strstr($strLimit,$val)){print "\t\t<INPUT type=\"HIDDEN\" name=\"aryLimits[]\" value=\"$val\">\n";};
00306 };
00307 print "\t\t<INPUT type=\"SUBMIT\" name=\"prev$intMaxHits\" value=\"<< Previous $intMaxHits\">\n";
00308 print "\t</FORM>\n";
00309 print "\t</TD>\n";
00310 };
00311
00312 If ($intNumHits > $intMaxHitsOffset){
00313 if ( ( $intNumHits - $intPageHitsThru ) < $intMaxHits ) {
00314 $intNextVal = ( $intNumHits - $intPageHitsThru );
00315 } else {
00316 $intNextVal = $intMaxHits ;
00317 }
00318 print "\t<TD>\n";
00319 print "\t<FORM action=\"$strSelf\" method=\"POST\" name=\"frmNext\">\n";
00320 print "\t\t<INPUT type=\"HIDDEN\" name=\"do\" value=\"now\">\n";
00321 /*
00322 ** Bug Fix JB: Parenthesis July 13, 1999
00323 ** print "\t\t<INPUT type=\"HIDDEN\" name=\"words\" value=\"". stripslashes($words) ."\">\n";
00324 */
00325 print "\t\t<INPUT type=\"HIDDEN\" name=\"words\" value=\"".stripslashes(str_replace('"','',$words)) ."\">\n";
00326 print "\t\t<INPUT type=\"HIDDEN\" name=\"strSearchSiteKey\" value=\"" . stripslashes($strSearchSiteKey) . "\">\n";
00327 print "\t\t<INPUT type=\"HIDDEN\" name=\"intMaxHits\" value=\"$intMaxHits\">\n";
00328 print "\t\t<INPUT type=\"HIDDEN\" name=\"intPageOffset\" value=\"$intMaxHitsOffset\">\n";
00329 // Print out Search delimiters to hidden fields.
00330 reset ($arySearchDelimiter);
00331 while (list($key,$val) = each($arySearchDelimiter)) {
00332 if (strstr($strLimit,$val)){print "\t\t<INPUT type=\"HIDDEN\" name=\"aryLimits[]\" value=\"$val\">\n";};
00333 };
00334 print "\t\t<INPUT type=\"SUBMIT\" name=\"next$intNextVal\" value=\"Next $intNextVal >>\">\n";
00335 print "\t</FORM>\n";
00336 print "\t</TD>\n";
00337 };
00338 print "\t</TR>\n</TABLE>\n";
00339 }
|
|
|
Definition at line 284 of file search.php3. 00284 {print "</DL>\n";}
|
|
|
Definition at line 184 of file search.php3. 00184 {
00185 if (trim($aryComment[1]) == "1"){
00186 print"<dl><dt>Note:<dd>Resulting matches are sound-alikes according to <a href=\"http://www.nara.gov/genealogy/coding.html\">US Census SoundEx codes</a>.</dl>";
00187 };
00188 }
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 253 of file search.php3. 00253 {
00254 unset($aryMetaTags);
00255 $strCurrentFile = $strSiteRootDir.$strResultURL ;
00256 if (file_exists($strCurrentFile) && $intGetFileData > 0) {
00257 // Get the META tags from the file
00258 $aryMetaTags = get_meta_tags($strCurrentFile);
00259 // Get the modification date stored in the file system
00260 $strResultModDate = gmdate("\M\o\d\i\f\i\e\d \a\\t H:i:s, \o\\n M d, Y \G\M\T", filemtime($strCurrentFile));
00261 // $aryMetaTags = get_meta_tags("/www/share/apache/htdocs/test/test.html");
00262 }
00263 }
|
|
|
Definition at line 203 of file search.php3. 00203 {
00204 print "<H3>No match for your search!</H3>\n";
00205 print "<P>\n\t<STRONG>User:</STRONG> Please try adjusting the search criteria and/or changing the words.\n</P>";
00206 }
|
|
|
Definition at line 50 of file search.php3. 00050 {
00051 echo "<select name=\"intMaxHits\">\n";
00052 $m = 0;
00053 while($aryMaxHits[$m]) {
00054 if ($intMaxHits == $aryMaxHits[$m]) { echo "\t<option selected>$intMaxHits\n"; }
00055 else { echo "\t<option>$aryMaxHits[$m]\n"; }
00056 $m++ ;
00057 };
00058 echo "</select>\n";
00059 }
|
|
|
Referenced by If(), and intMaxHitsOffset(). |
|
|
Definition at line 275 of file search.php3. 00275 {
00276 list ($strMetaName, $strLineHeading) = explode("|",$aryMetaList[$p]);
00277 if ($aryMetaTags["$strMetaName"]){print "\t\t$strLineHeading".$aryMetaTags["$strMetaName"]."<BR>\n";}
00278 $p++;
00279 }
|
|
|
Definition at line 213 of file search.php3. 00213 :
00214
00215 $strResultsClean = $aryResults[$i];
00216 // if (substr($strResultsClean,0,1) != "#" && substr($strResultsClean,0,3) != "err"){
00217 // if (!ereg("^#.*",$strResultsClean) && !ereg("^e.*",$strResultsClean) && $i >= $intPageOffset){
00218
00219 //$strResultsClean String Format:
00220 // <RANK> <URL> "<TITLE>" <SIZE>
00221
00222 // Array exploded on Double-Quote ("):
00223 // [RANK URL :0][TITLE:1][ SIZE:2]
00224 /* Take note of evil whitespace in the array values,
00225 ** which must be trimmed later.*/
00226 $aryResultLine = explode("\"", $strResultsClean);
00227
00228 $j=0;
00229 while($aryResultLine[$j]):
00230 // Find the position, from begin, of the first space, then:
00231 // Rank is everything from begin to the first space trimming whitespace.
00232 $intResultRank = trim(substr($aryResultLine[0], 0, strpos($aryResultLine[0]," ")));
00233
00234 /* URL everything following first space trimming whitespace.
00235 ** Assuming file is under the DOCUMENT_ROOT directory somewhere.
00236 ** If not, the file may not be found via HTTP... However,
00237 ** if the indexer is configured correctly this is a
00238 ** waste of time. Too easy of a mistake to ignore, though. */
00239 // $strResultURL = trim(strstr($aryResultLine[0]," "));
00240
00241 $strResultURL = ereg_replace($strSiteRootDir, "", trim(strstr($aryResultLine[0]," ")));
00242
00243
00244 // The rest is a piece of cake...
00245 if(trim($aryResultLine[1])){
00246 $strResultTitle = trim($aryResultLine[1]);
00247 }else {
|
|
|
Definition at line 280 of file search.php3. |
|
|
Definition at line 280 of file search.php3. |
|
|
Definition at line 282 of file search.php3. |
|
|
Definition at line 281 of file search.php3. |
|
|
Definition at line 64 of file search.php3. |
|
|
Definition at line 250 of file search.php3. |
|
|
Definition at line 341 of file search.php3. |
|
|
Definition at line 267 of file search.php3. |
|
|
Definition at line 280 of file search.php3. |
|
|
Definition at line 274 of file search.php3. |
|
|
Definition at line 11 of file search.php3. |
|
|
Definition at line 16 of file search.php3. |
1.2.1 written by Dimitri van Heesch,
© 1997-2000