Собрание[an error occurred while processing this directive] :: Поиск по сайту[an error occurred while processing this directive] :: версия для печати[an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive]

«Собрание»

https://www.sobranie.org/search.shtml

 
100Mb $site_size = 1; # Path to index database files $HASH = "db/0_hash"; $HASHWORDS = "db/0_hashwords"; $FINFO = "db/0_finfo"; $SITEWORDS = "db/0_sitewords"; $WORD_IND = "db/0_word_ind"; #=================================================================== # # These variables are used by spider # #=================================================================== # Starting URL (used by spider) $start_url = array( "http://sobranie.org/", ); # Spider will index only files from these servers $allow_url = array( "http://sobranie.org", ); #=================================================================== # # All other variables are optional. Script should work fine # with default settings. # These variables controls the indexing process. # #=================================================================== # File extensions to index # Add "NONE" if you want to index files without extensions $file_ext = "shtml"; # List of directories, which should not be indexed $no_index_dir = "images cgi-bin ssi search en forum mail"; # List of files, which should not be indexed $no_index_files = 'robots.txt links_ad.shtml'; #minimum word length to index $min_length = 3; # Index or not numbers (set $numbers = "" if you don't want to index numbers) # You may add here other non-letter characters, which you want to index $numbers = '0-9'; # Parts of documents, which should not be indexed # Uncomment and edit, if you want to use this feature $use_selective_indexing = "YES"; $no_index_strings = array( "" => "", "" => "", ); # Cut default filenames from URL ("YES" or "NO") $cut_default_filenames = "YES"; $default_filenames = "index.htm index.shtml default.htm"; # Convert URL to lower case ("YES" or "NO") $url_to_lower_case = 'NO'; # Indexing scheme # Whole word - 1 # Beginning of the word - 2 # Every substring - 3 $INDEXING_SCHEME = 2; # Translate escape chars (like È or ÿ) ("YES" or "NO") $use_esc = "NO"; # Index META tags ("YES" or "NO") $use_META = "YES"; # List of stopwords ("YES" or "NO") $use_stop_words = "NO"; $stop_words = "and any are but can had has have her here him his how its not our out per she some than that the their them then there these they was were what you"; #=================================================================== # # These variables controls the script output. # #=================================================================== # Number of results per page $res_num = 10; # Define length of page description in output # and use META description ("YES") or first "n" characters of page ("NO") $descr_size = 256; $use_META_descr = "YES"; #=================================================================== # # --- end of configuration --- # # Please do not edit below this line unless you know what you do # #=================================================================== if ($site_size == 1) { $HASHSIZE = 20001; } elseif ($site_size == 3) { $HASHSIZE = 100001; } elseif ($site_size == 4) { $HASHSIZE = 300001; } else { $HASHSIZE = 50001; } #=================================================================== function prepare_string($str) { $str = preg_replace ("/^\s+|\s+$/", "", $str); $str = preg_replace ("/\s+/", "|", $str); $str = preg_replace ("/\./", "\\\.", $str); $str = "(".$str.")"; return $str; } if (preg_match("/NONE/",$file_ext) ) { $file_ext = preg_replace ("/NONE/", "", $file_ext); $file_ext = prepare_string($file_ext); $file_ext = '(\.'.$file_ext.'|/[^.]+|/)($|\?)'; } else { $file_ext = prepare_string($file_ext); $file_ext = '(\.'.$file_ext.'|/)($|\?)'; } $no_index_dir = prepare_string($no_index_dir); $no_index_files = prepare_string($no_index_files); $default_filenames = prepare_string($default_filenames); $default_filenames = '/'.$default_filenames.'$'; #=================================================================== $stop_words = preg_replace("/\s+/s"," ",$stop_words); $pos = 0; do { $new_pos = strpos($stop_words," ",$pos); if ($new_pos === FALSE) { $word = substr($stop_words,$pos); $stop_words_array[$word] = 1; break; }; $word = substr($stop_words,$pos,$new_pos-$pos); $stop_words_array[$word] = 1; $pos = $new_pos+1; } while (1>0); #=================================================================== $html_esc = array( "À" => chr(192), "Á" => chr(193), "Â" => chr(194), "Ã" => chr(195), "Ä" => chr(196), "Å" => chr(197), "Æ" => chr(198), "Ç" => chr(199), "È" => chr(200), "É" => chr(201), "&Eirc;" => chr(202), "Ë" => chr(203), "Ì" => chr(204), "Í" => chr(205), "Î" => chr(206), "Ï" => chr(207), "Ð" => chr(208), "Ñ" => chr(209), "Ò" => chr(210), "Ó" => chr(211), "Ô" => chr(212), "Õ" => chr(213), "Ö" => chr(214), "×" => chr(215), "Ø" => chr(216), "Ù" => chr(217), "Ú" => chr(218), "Û" => chr(219), "Ü" => chr(220), "Ý" => chr(221), "Þ" => chr(222), "ß" => chr(223), "à" => chr(224), "á" => chr(225), "â" => chr(226), "ã" => chr(227), "ä" => chr(228), "å" => chr(229), "æ" => chr(230), "ç" => chr(231), "è" => chr(232), "é" => chr(233), "ê" => chr(234), "ë" => chr(235), "ì" => chr(236), "í" => chr(237), "î" => chr(238), "ï" => chr(239), "ð" => chr(240), "ñ" => chr(241), "ò" => chr(242), "ó" => chr(243), "ô" => chr(244), "õ" => chr(245), "ö" => chr(246), "÷" => chr(247), "ø" => chr(248), "ù" => chr(249), "ú" => chr(250), "û" => chr(251), "ü" => chr(252), "ý" => chr(253), "þ" => chr(254), "ÿ" => chr(255), " " => " ", "&" => " ", ""e;" => " ", ); #===================================================================== # # Function esc2char($str) # Last modified: 16.04.2004 18:22 # #===================================================================== function esc2char($str) { global $html_esc; $esc = $str[0]; $char = ""; if (preg_match ("/&[a-zA-Z]*;/", $esc)) { if (isset ($html_esc[$esc])) { $char = $html_esc[$esc]; } else { $char = " "; } } elseif (preg_match ("/&#([0-9]*);/", $esc, $matches)) { $char = chr($matches[1]); } elseif (preg_match ("/&#x([0-9a-fA-F]*);/", $esc, $matches)) { $char = chr(hexdec($matches[1])); } return $char; } #===================================================================== ?>> 24; }; $h &= ~$g; } return $h; } #===================================================================== # # Function getmicrotime() # Last modified: 16.04.2004 17:54 # #===================================================================== function getmicrotime(){ list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } #===================================================================== # # Function get_META_info($html) # Last modified: 05.04.2005 16:34 # #===================================================================== function get_META_info($html) { preg_match("/<\s*[Mm][Ee][Tt][Aa]\s*[Nn][Aa][Mm][Ee]=\"?[Kk][Ee][Yy][Ww][Oo][Rr][Dd][Ss]\"?\s*[Cc][Oo][Nn][Tt][Ee][Nn][Tt]=\"?([^\"]*)\"?\s*>/s",$html,$matches); $res[0] = @$matches[1]; preg_match("/<\s*[Mm][Ee][Tt][Aa]\s*[Nn][Aa][Mm][Ee]=\"?[Dd][Ee][Ss][Cc][Rr][Ii][Pp][Tt][Ii][Oo][Nn]\"?\s*[Cc][Oo][Nn][Tt][Ee][Nn][Tt]=\"?([^\"]*)\"?\s*>/s",$html,$matches); $res[1] = @$matches[1]; return $res; } #===================================================================== # # Function index_file($html_text,$url) # Last modified: 15.07.2004 11:35 # #===================================================================== function index_file($html_text,$url) { global $cfn, $kbcount, $descr_size, $min_length, $stop_words_array, $use_esc; global $use_selective_indexing, $no_index_strings; global $use_META, $use_META_descr; global $fp_FINFO; global $words; global $numbers; $cfn++; $size = strlen($html_text); $kbcount += intval($size/1024); print "$cfn -> $url; totalsize -> $kbcount kb
\n"; # Delete parts of document, which should not be indexed if ($use_selective_indexing == "YES") { foreach ($no_index_strings as $k => $v) { $html_text = preg_replace("/$k.*?$v/s"," ",$html_text); } } $title = ""; if (preg_match("/\s*(.*?)\s*<\/title>/is",$html_text,$matches)) { $title = $matches[1]; } $title = preg_replace("/\s+/"," ",$title); $keywords = ""; $description = ""; if ($use_META == "YES") { $res = get_META_info($html_text); $keywords = $res[0]; $description = $res[1]; } $html_text = preg_replace("/<title>\s*(.*?)\s*<\/title>/is"," ",$html_text); $html_text = preg_replace("/<!--.*?-->/s"," ",$html_text); $html_text = preg_replace("/<[Ss][Cc][Rr][Ii][Pp][Tt].*?<\/[Ss][Cc][Rr][Ii][Pp][Tt]>/s"," ",$html_text); $html_text = preg_replace("/<[Ss][Tt][Yy][Ll][Ee].*?<\/[Ss][Tt][Yy][Ll][Ee]>/s"," ",$html_text); $html_text = preg_replace("/<[^>]*>/s"," ",$html_text); if ($use_esc == "YES") { $html_text = preg_replace_callback("/&[a-zA-Z0-9#]*?;/", 'esc2char', $html_text); } if (($use_META_descr == "YES") & ($description != "")) { $descript = substr($description,0,$descr_size); } else { $html_text = preg_replace("/\s+/s"," ",$html_text); $descript = substr($html_text,0,$descr_size); } $html_text = $html_text." ".$keywords." ".$description." ".$title; $html_text = preg_replace("/[^a-zA-Zа-яА-Я$numbers -]/"," ",$html_text); $html_text = preg_replace("/\s+/s"," ",$html_text); $html_text = strtolower($html_text); $words_temp = array(); $pos = 0; do { $new_pos = strpos($html_text," ",$pos); if ($new_pos === FALSE) { $word = substr($html_text,$pos); $words_temp[$word] = 1; break; }; $word = substr($html_text,$pos,$new_pos-$pos); $words_temp[$word] = 1; $pos = $new_pos+1; } while (1>0); $title = preg_replace("/:+/",":",$title); $descript = preg_replace("/:+/",":",$descript); if ($title == "") { $title = "No title"; } $pos = ftell($fp_FINFO); $pos = pack("N",$pos); fwrite($fp_FINFO, "$url::$size::$title::$descript\x0A"); foreach($words_temp as $word => $val) { if (strlen($word) < $min_length) { continue; } if (array_key_exists($word,$stop_words_array)) { continue; } @$words[$word] .= $pos; } unset($words_temp); unset($words_temp2); } #===================================================================== # # Function build_hash() # Last modified: 16.04.2004 17:54 # #===================================================================== function build_hash() { global $words; global $HASHSIZE, $INDEXING_SCHEME, $HASH, $HASHWORDS; for ($i=0; $i<$HASHSIZE; $i++) {$hash_array[$i] = "";}; foreach($words as $word=>$value) { if ($INDEXING_SCHEME == 3) { $subbound = strlen($word)-3; } else { $subbound = 1; } if (strlen($word)==3) {$subbound = 1;} $substring_length = 4; if ($INDEXING_SCHEME == 1) { $substring_length = strlen($word); } for ($i=0; $i<$subbound; $i++){ $hash_value = abs(hash1(substr($word,$i,$substring_length)) % $HASHSIZE); $hash_array[$hash_value] .= $value; }; } $fp_HASH = fopen ("$HASH", "wb") or die("Can't open index file!"); $fp_HASHWORDS = fopen ("$HASHWORDS", "wb") or die("Can't open index file!"); $zzz = pack("N", 0); fwrite($fp_HASHWORDS, $zzz); $pos_hashwords = ftell($fp_HASHWORDS); $to_print_hash = ""; $to_print_hashwords = ""; for ($i=0; $i<$HASHSIZE; $i++){ if ($hash_array[$i] == "") {$to_print_hash .= $zzz;}; if ($hash_array[$i] != "") { $to_print_hash .= pack("N",$pos_hashwords + strlen($to_print_hashwords)); $to_print_hashwords .= pack("N", strlen($hash_array[$i])/8).$hash_array[$i]; }; if (strlen($to_print_hashwords) > 64000) { fwrite($fp_HASH,$to_print_hash); fwrite($fp_HASHWORDS,$to_print_hashwords); $to_print_hash = ""; $to_print_hashwords = ""; $pos_hashwords = ftell($fp_HASHWORDS); } }; # for $i fwrite($fp_HASH,$to_print_hash); fwrite($fp_HASHWORDS,$to_print_hashwords); fclose($fp_HASH); fclose($fp_HASHWORDS); } #===================================================================== ?><br /> <b>Fatal error</b>: Uncaught Error: Call to undefined function getmicrotime() in /var/www/p681921/data/www/sobranie.org/search/search.php:24 Stack trace: #0 {main} thrown in <b>/var/www/p681921/data/www/sobranie.org/search/search.php</b> on line <b>24</b><br /> </td></tr> <!-- Низ --><!-- Nosearch start 2 --></table></td><td width=130><table width=100% cellpadding="6" cellspacing="0"><tr><td><table width=100% border=0 cellpadding=0 cellspacing=0> <tr><td class=menu0 align=center><a class=menu0 href="/subscribe.shtml" title="возможные варианты подписки">Рассылки</a></td></tr> <tr><td><!-- <TABLE width=100% CELLSPACING=0 CELLPADDING=0> <TR><form TARGET=_blank ACTION="http://subscribe.ru/member/quick" METHOD="GET" name="formname"><TD class=form_field1 ALIGN=CENTER><INPUT TYPE=hidden NAME=action VALUE=quick><INPUT TYPE=hidden NAME=grp VALUE="religion.sobranie"><input type=hidden name=list_id value=""><input type=hidden name=list_id_src value=""><input type=hidden name=theme value="">Информация об обновлениях «Собрания» на<BR><INPUT TYPE=text NAME=email SIZE=13 MAXLENGTH=100 VALUE="ваш e-mail" style="font-size: 9pt" onfocus="this.form.email.value='';" onblur="if(this.form.email.value=='') this.form.email.value='ваш e-mail'"><INPUT TYPE=submit VALUE="OK" style="font-size: 9pt"></td></FORM></tr><tr><td class=form_field1 align=left><center>через сервис</center><input onclick="formname.action='http://subscribe.ru/member/quick'; formname.method='GET'; formname.action.value='quick'; formname.grp.value='religion.sobranie'; formname.list_id.value=''; formname.list_id_src.value=''; formname.theme.value='';" type="radio" value="Subscribe.ru" checked><a href="http://subscribe.ru/">Subscribe.Ru</a><br> <input onclick="formname.action='http://content.mail.ru/cgi-bin/subscribe.cgi'; formname.method='POST'; formname.action.value=''; formname.grp.value=''; formname.list_id.value='10303'; formname.list_id_src.value='10303'; formname.theme.value='content_new';" type="radio" value="Mail.ru"><a href="http://content.mail.ru">Content.Mail.Ru</a></td></tr></TABLE> --></td></tr> <tr><td><img src="/images/blank.gif" width=1 height=10></td></tr> <tr><td align=center><a href=<? $quote = file("100x100.htm"); srand((double)microtime()*1000000); echo $quote[rand(0,count($quote)-1)]; ?> border=0 WIDTH=100 HEIGHT=100 vspace=0 hspace=0></a></td></tr> <tr><td><img src="/images/blank.gif" width=1 height=10></td></tr> <tr><td align=center><a href=<? $quote = file("100x100.htm"); srand((double)microtime()*1000000); echo $quote[rand(0,count($quote)-1)]; ?> border=0 WIDTH=100 HEIGHT=100 vspace=0 hspace=0></a></td></tr> <tr><td><img src="/images/blank.gif" width=1 height=7></td></tr> <tr><td><table bgcolor=eeeeee><tr><td> <script type="text/javascript" src="/orphus.js"></script> <a href="http://orphus.ru" id="orphus" target="_blank"><img alt="Система Orphus" width="125" height="115" src="/images/orphus.gif" border="0" /></a> </td></tr> </table></td></tr> <tr><td><img src="/images/blank.gif" width=1 height=7></td></tr> <tr><td class=menu0 align=center><a class=menu0 href="/forum/" title="обсуждаемые темы форума">На форуме:</a></td></tr> <tr><td> <table bgcolor=EBD9C4 cellpadding=0 cellspacing=0 border=0> <tr><td align=center> <iframe id="forum" src="/forum/ftop.htm" width="130" height="150" frameborder="0" scrolling="no"></iframe> </td></tr> </table> </td></tr> <tr><td><img src="/images/blank.gif" width=1 height=15></td></tr> </table></td></tr> </table></td></tr></table><HR NOSHADE SIZE="1"><center><a href=/>На главную</a> :: <a href=/divisions/mission/ title="миссионерство в Православии">Миссия</a> :: <a href=/divisions/creative/ title="рок-культура, кино, театр и Церковь">Творчество</a> :: <a href=/divisions/theology/ title="догматы Православия в современной жизни">Мысль</a> :: <a href=/divisions/look/ title="православный взгляд на жизнь">Взгляд</a> :: <a href=/divisions/family/ title="любовь, брак, он и она">Семья</a> :: <a href=/divisions/lives/ title="жизнь замечательных людей">Судьбы</a> :: <a href=/divisions/literature/ title="литературная страница: проза">Проза жизни</a> :: <a href=/divisions/poetry/ title="литературная страница: поэзия">Поэзия души</a><br><a href=/archives/ title="все статьи 'Собрания'">Архив журнала</a> :: <a href=/archives/7/ title="статьи из восьмого номера (осень 2006)">№ 8</a> :: <a href=/archives/0/ title="статьи не вошедшие в печатную версию 'Собрания'">Неизданное</a> :: <a href=/about/ title="кто делает 'Собрание'">Редакция</a> :: <a href=/about/authors.shtml title="наши авторы">Авторы</a> :: <a href=/about/charity.shtml title="кто нам помогает">Благотворители</a> :: <a href=/forum/ title="Форум журнала">Форум</a> :: <a href=/gost.shtml title="Гостевая книга">Гостевая</a> :: <a href=/contact.shtml title="Контактная информация">Обратная связь</a> :: <a href=/links.shtml title="ссылки на другие православные ресурсы">Ссылки</a> :: <a href=/en/ title="English version">English</a></center><!-- Nosearch end 2 --><table border=0 cellpadding=0 cellspacing=1 bgcolor=black width=100%><tr bgcolor=9999FF><td align=center width=30%><table border=0 cellspacing=0 cellpadding=5><tr valign=top><td><b>Главный редактор:</b></td><td> <script language="JavaScript" type="text/JavaScript"><!-- function sendm(mid) { top.location='m'+'a'+'il'+'to:'+mid+'@'+'sobranie.org'; }//--> </script> <a onmouseover="status='mailto: напсать письмо'; return true;" onmouseout="status=''; return true;" href="javascript:sendm('glavred')" title="mailto: написать письмо">протоиерей Сергий Титов</a></td></tr><tr valign=top><td><b>Зам. главного редактора:</b></td><td><a onmouseover="status='mailto: напсать письмо'; return true;" onmouseout="status=''; return true;" href="javascript:sendm('mark')" title="mailto: написать письмо">Марк Шишкин</a></td></tr><tr valign=top><td><b>Веб-мастер:</b></td><td><a onmouseover="status='mailto: напсать письмо'; return true;" onmouseout="status=''; return true;" href="javascript:sendm('webmaster')" title="mailto: написать письмо">Алексей Юдин</a></td></tr></table></td><td align=center width=40%> <b>© 2002–2026 «Собрание»</b><br>При перепечатке материалов указание авторства и ссылка на <a href=http://www.sobranie.org/>www.sobranie.org</a> обязательна</td><td align=center width=30% bgcolor=9999FF><table border=0 cellspacing=0 cellpadding=5><tr><td> </td><td><b>Адрес редакции:</b><br>420111, г. Казань, ул. Мусы Джалиля, д. 21 (с пометкой: „для журнала «Собрание»“)<br><a onmouseover="status='mailto: напсать письмо'; return true;" onmouseout="status=''; return true;" href="javascript:sendm('info')" title="mailto: написать письмо">info@sobranie.org</a></td></tr></table></td></tr></table> <table border=0 cellpadding=0 cellspacing=0 bgcolor=9999FF width=100%><tr><td width=100% align=center><!-- Top100 (Kraken) Counter --> <script> (function (w, d, c) { (w[c] = w[c] || []).push(function() { var options = { project: 353371, }; try { w.top100Counter = new top100(options); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//st.top100.ru/top100/top100.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(window, document, "_top100q"); </script> <noscript> <img src="//counter.rambler.ru/top100.cnt?pid=353371" alt="Топ-100" /> </noscript> <!-- END Top100 (Kraken) Counter --><script type="text/javascript"> var _tmr = window._tmr || (window._tmr = []); _tmr.push({id: "329650", type: "pageView", start: (new Date()).getTime()}); (function (d, w, id) { if (d.getElementById(id)) return; var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id; ts.src = "https://top-fwz1.mail.ru/js/code.js"; var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);}; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "topmailru-code"); </script><noscript><div> <img src="https://top-fwz1.mail.ru/counter?id=329650;js=na" style="border:0;position:absolute;left:-9999px;" alt="Top.Mail.Ru" /> </div></noscript> <script type="text/javascript"> document.write('<a href="//www.liveinternet.ru/click" '+ 'target="_blank"><img src="//counter.yadro.ru/hit?t41.11;r'+ escape(document.referrer)+((typeof(screen)=='undefined')?'': ';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth? screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+ ';h'+escape(document.title.substring(0,150))+';'+Math.random()+ '" alt="" title="LiveInternet" '+ 'border="0" width="31" height="31"><\/a>') </script> </td></tr> </table></BODY></HTML>