Курсовая работа: Разработка сайта. Система поиска по сайту
null,
" "
);
$term_paper ['strings'] =$term_paper_array_navigation;
while (list ($number,$string) =each ($term_paper ['strings'] ['result_strings']))
{
$term_paper ['other'] ['num'] =$term_paper ['strings'] ['count_all_strings'] - $term_paper ['strings'] ['start_string'] - $number;
list ($term_paper ['other'] ['link'],$term_paper ['other'] ['title'],$term_paper ['other'] ['document']) =split (" ",$string,3);
$term_paper ['other'] ['document'] =substr ($term_paper ['other'] ['document'],0,$term_paper ['other'] ['MaxChars']);
$term_paper ['other'] ['document'] =trim (preg_replace ("/". $query. "/i","<b>\\0</b>",$term_paper ['other'] ['document'])).". ";
ParseTemplate ($term_paper ['templates'] ['result']);
flush ();
}
}
$term_paper ['other'] ['query'] =htmlspecialchars ($UserQuery);
$term_paper ['other'] ['docs'] = (empty ($found))?"ноль": $found;
$term_paper ['other'] ['time'] =round (term_paper_time () - $FirstTime,3);
ParseTemplate ($term_paper ['templates'] ['stat']);
if (! empty ($found))
ParseTemplate ($term_paper ['templates'] ['navigation']);
ParseTemplate ($term_paper ['templates'] ['bottom']);
}
}
else
{
$LoadingBody=null;
$OpenLoadingFile=fopen ($term_paper ['dir'] ['templates']. chr (47). $term_paper ['template'] ['parse']. chr (47). $term_paper ['templates'] ['loading'],'r');
$LoadingBody=fread ($OpenLoadingFile,filesize ($term_paper ['dir'] ['templates']. chr (47). $term_paper ['template'] ['parse']. chr (47). $term_paper ['templates'] ['loading']));
fclose ($OpenLoadingFile);