".@$_GET['text']."
"; $search=trim(ereg_replace(" +"," ",$search)); $search=str_replace("span"," ",$search); $search=str_replace("quot"," ",$search); $search=str_replace("'"," ",$search); $search=str_replace('"'," ",$search); $search=str_replace('-'," ",$search); $search=str_replace('zip'," ",$search); $search=str_replace('Значение слова',' ',$search); $search=str_replace('значение слова',' ',$search); $search=str_replace('понятие',' ',$search); $search=str_replace('Понятие',' ',$search); if (trim($search)=="") $search=$defsearch; $page=preg_replace("/[\D]+/","",@$_GET['page']); if (empty($page)) $page=0; if($page<1) $page=0; if (empty($_GET['fk'])) $fksource=0; else $fksource=$_GET['fk']; connect_db(); #значение слов if(!empty($search)) { proc_select("getWordValue"); proc_setparam("@text_query",$search); $result=proc_exec(); $wrdcount=0; if($row=mssql_fetch_array($result)) { $word_value= trim($row['word_value']); $fraza_value=$row['fraza_value']; $wg1=$row['wg1']; $wg2=$row['wg2']; $wg3=$row['wg3']; $wg4=$row['wg4']; $wg5=$row['wg5']; $wg6=$row['wg6']; $wg7=$row['wg7']; $wgh1=$row['wgh1']; $wgh2=$row['wgh2']; $wgh3=$row['wgh3']; $wgh4=$row['wgh4']; $wgh5=$row['wgh5']; $wgh6=$row['wgh6']; $wgh7=$row['wgh7']; $word1=$row['word1']; $word2=$row['word2']; $word3=$row['word3']; $word4=$row['word4']; $word5=$row['word5']; $word6=$row['word6']; $word7=$row['word7']; $word1_value= substr( $row['word1_value'],0,1200); $word2_value=$row['word2_value']; $word3_value=$row['word3_value']; $word4_value=$row['word4_value']; $word5_value=$row['word5_value']; $wg=$row['wg']; if ($wg1>0) $wrdcount=$wrdcount+1; if ($wg2>0) $wrdcount=$wrdcount+1; if ($wg3>0) $wrdcount=$wrdcount+1; if ($wg4>0) $wrdcount=$wrdcount+1; if ($wg5>0) $wrdcount=$wrdcount+1; if ($wg6>0) $wrdcount=$wrdcount+1; if ($wg7>0) $wrdcount=$wrdcount+1; $vlsource=@$row['vlsource']; $shortvalue=@$row['shortvalue']; $vlfraza =@$row['vlfraza']; $fnd=@$row['fnd']; // print "@wg=".$wg.",@text_query='".$search."',@wg1=".$wg1; print ",@wg2=".$wg2; print ",@wg3=".$wg3; print ",@wg4=".$wg4; print ",@wg5=".$wg5."
"; print ",@wg6=".$wg6; print ",@wg7=".$wg7; print ", @wrdcount=".$wrdcount; print " ,@fksource=".$fksource."
"; // print ",@word1='".$word1; print "',@word2='".$word2; // print "',@word3='".$word3; print "',@word4='".$word4; // print "',@word5='".$word5; print "',@word_value='".$word_value; // print "',@word7='".$word7."'"; $i=1; } } if(!isset($shortvalue)) $shortvalue=''; if(!isset($vlsource)) $vlsource =''; if (!isset($wg)) $wg=0; if(!isset($word_value)) $word_value=$defword; if(!isset($fraza_value)) $fraza_value=$deffraza; if(!empty($search)) { if ($wrdcount>1) $vr="Сочинение на тему: "; else $vr="Сочинение: "; $title=$vr.$search." - источник: «".$vlsource."» "." - банк сочинеий на www.surbor.ru"; $meta_description="Результаты поиска: - ".$vr.$search." - источник: «".$vlsource."», проект: «бесплатные рефераты для всех www.surbor.com» ".$vlsource; $meta_keywords=$search; } else { $title="БЕСПЛАТНЫЙ БАНК СОЧИНЕНИЙ - Справочники, энциклопедии, словари - проект www.surbor.ru"; $meta_description="Справочники, энциклопедии, словари - проект БЕСПЛАТНЫЙ БАНК СОЧИНЕНИЙ Доступная информация от www.surbor.ru"; $meta_keywords="Справочники, энциклопедии, словари - проект Доступная информация от www.surbor.ru"; } ?> 1) $words_str.="|".$row_w[0]; } $r++; } $words_str=substr($words_str,1); ?> '>
- результаты поиска ".$vlsource ."; "; ?> ".$row['vlsource']."; "; echo ""; } ?>    
Расширенный поиск

\\0",$shortvalue); echo " Наиболее релевантная работа: ".$vlfraza."
".$shortvalue."....
читать статью: ".$vlfraza." " ; } else { if ($word1_value!='') { $word1_value=substr($word1_value,0,400); $word1_value=preg_replace("/[\w]*($words_str)[\w]*/i","\\0",$word1_value); echo "

".$word1_value."... ".$word1."..."; } if ($word2_value!='') { $word2_value=substr($word2_value,0,400); $word2_value=preg_replace("/[\w]*($words_str)[\w]*/i","\\0",$word2_value); echo "

".$word2_value."... ".$word2."..."; } } ?>

"; // exit; proc_select("SmartSearch"); proc_setparam("@wg1",$wg1); proc_setparam("@wg2",$wg2); proc_setparam("@wg3",$wg3); proc_setparam("@wg4",$wg4); proc_setparam("@wg5",$wg5); proc_setparam("@wg6",$wg6); proc_setparam("@wg7",$wg7); proc_setparam("@text_query", $search); proc_setparam("@wg", $wg); proc_setparam("@max",100); proc_setparam("@size",4); proc_setparam("@cachetable",0); proc_setparam("@wrdcount",$wrdcount); proc_setparam("@page",$page); proc_setparam("@fksource",$fksource); $nm=0; $result=proc_exec(); while ($row=mssql_fetch_array($result)) { echo "

"; echo " ".$row['vlsource']." - работа: "; echo ""; ?> ".$row['vlfraza']." "; echo ""; if ($row['mode']==1) echo " Нестрогое соответствие
"; else echo "
"; // echo ""; //echo "Ограничить поиск понятия: «".$search."»  справочником:".$row["; // echo " >>
"; $ref_text=$row['cache']; $ref_text=preg_replace("/[\w]*($words_str)[\w]*/i","\\0",$ref_text); echo $ref_text."
"; if ($nm==1) { $length=strlen($row['fullvalue']); $dm=$row['vlfraza']; $dm = substr($dm,0,1)."."; $stEnd=strpos($row['fullvalue'],$row['cache'])+ strlen($row['cache']); $ofstart= round(($length - strlen($row['cache']))/2); $ofstart=abs($ofstart); if ($ofstart>$length) $ofstart=$length; $ofs=strpos($row['fullvalue']," ", $ofstart); $ofs=strpos($row['fullvalue']," ", $ofstart); if (!($ofs)) $ofs=0; if ($ofs\\0",$rtext)."
"; echo $rtext; } if ($nm==2) { $length=strlen($row['fullvalue']); $dm=$row['vlfraza']; $dm = substr($dm,0,1)."."; $stEnd=strpos($row['fullvalue'],$row['cache'])+ strlen($row['cache']); $ofstart= round(($length - strlen($row['cache']))/2); $ofstart=abs($ofstart); if ($ofstart>$length) $ofstart=$length; $ofs=strpos($row['fullvalue']," ", $ofstart); $ofs=strpos($row['fullvalue']," ", $ofstart); if (!($ofs)) $ofs=0; if ($ofs\\0",$rtext)."
"; echo $rtext; } if ($nm==3) { $length=strlen($row['fullvalue']); $dm=$row['vlfraza']; $dm = substr($dm,0,1)."."; $stEnd=strpos($row['fullvalue'],$row['cache'])+ strlen($row['cache']); $ofstart= abs(round(($length - strlen($row['cache']))/2)); $ofstart=abs($ofstart); if ($ofstart>$length) $ofstart=$length; $ofs=strpos($row['fullvalue']," ", $ofstart); if (!($ofs)) $ofs=0; if ($ofs\\0",$rtext)."
"; echo $rtext; } flush(); $allcount=$row['allcount']; echo ""; $nm=$nm+1; echo "  "; ?> Версия для чтения  ≡  Найденные слова "; ?>  ≡  Версия для печати "; ?>  ≡  Скачать сочинение "; ?>

Новые сочинения
  • Новые запросы
  • Всего найденно: «»
    Страницы: "; $i=$block*10; if($block>0) print " << предыдущие "; while($i<($block*10)+10 and $i*10<@$allcount) { if($i==$page) { $st1=""; $st2=""; $st="style='font-weight: 600; color:#CC0000'"; } else { $st1=""; $st2=""; $st=""; } print $st1."".($i+1).$st2." "; $i++; } flush(); if(($block+1)*100<@$allcount) print "следующие >>"; } ?>

    Альтернативный поиск значений слов: =1) { ?> : =2) { ?> : =3) { ?> : =4) { ?> : =5) { ?> :