getCurrentAlias(); $canonical_url = 'http://' . $oSite_Alias->name . $link; return $canonical_url; } /** * getIndexationValue() - вычисляет значение для meta robots на основании активности лампочки индексации в свойствах структуры * * @param mixed $structure_id * @return */ function getIndexationValue($structure_id = CURRENT_STRUCTURE_ID) { $structure_id = to_int($structure_id); $aStructure = Core_Entity::factory('Site')->Structures->find($structure_id); if ($aStructure->indexing == 1) { // разрешаем роботам индексировать контент $meta_val = 'index, follow'; } else { // запрещаем роботам индексировать контент $meta_val = 'noindex, nofollow'; } return $meta_val; } /** * getExpiresValue() - вычисялет значение для meta expires на основании активности лампочки индексации в свойствах структуры, * для предотвращения кеширования неинедксируемых страниц * * @param mixed $structure_id * @param integer $expires_plus * @return */ function getExpiresValue($structure_id = CURRENT_STRUCTURE_ID, $expires_plus = 60) { $structure_id = to_int($structure_id); $expires_plus = to_int($expires_plus); $aStructure = Core_Entity::factory('Site')->Structures->find($structure_id); if ($aStructure->indexing == 1) { // разрешаем роботам индексировать контент $expires_header = date("r", time() + $expires_plus); } else { // запрещаем роботам индексировать контент $expires_header = date("r", time() - 600); } return $expires_header; } /** * sendCacheHeader() - запрещаем кешировать контент на основании активности лампочки индексации в свойствах структуры, * для предотвращения кеширования неинедксируемых страниц * * @param mixed $structure_id * @return void */ function sendCacheHeader($structure_id = CURRENT_STRUCTURE_ID) { $structure_id = to_int($structure_id); $aStructure = Core_Entity::factory('Site')->Structures->find($structure_id); if ($aStructure->indexing == 0) { // запрещаем кешировать контент header("Cache-Control: no-store, no-cache, must-revalidate, proxy-revalidate", true); } } function ShowDoc($doc_id) { $doc_id = to_int($doc_id); if (!(is503error()) && $doc_id && Core::moduleIsActive('document')) { Core_Entity::factory('document', $doc_id)->Document_Versions->getCurrent()->execute(); } } function is503error($site_id = CURRENT_SITE) { return false; //заглушка совместимости /* $site_id = to_int($site_id); $current_structure_id = CURRENT_STRUCTURE_ID; $site = &singleton('site'); $siteRow = $site->GetSite($site_id); $e503sid = $siteRow['site_is_close']; if ($current_structure_id == $e503sid) return true; else return false; */ }Предупреждение: Cannot modify header information - headers already sent by (output started at /var/www/strigo.ru/public_html/modules/common_functions_6.php:1) РІ файле /var/www/strigo.ru/public_html/modules/core/command/controller/sitemap.php (строка 42)Предупреждение: Cannot modify header information - headers already sent by (output started at /var/www/strigo.ru/public_html/modules/common_functions_6.php:1) РІ файле /var/www/strigo.ru/public_html/modules/core/command/controller/sitemap.php (строка 43)Предупреждение: Cannot modify header information - headers already sent by (output started at /var/www/strigo.ru/public_html/modules/common_functions_6.php:1) РІ файле /var/www/strigo.ru/public_html/modules/core/command/controller/sitemap.php (строка 44) http://xn--10-8kcp5e.xn--p1ai/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/20th_century_music/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/classicism/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/early_music_and_the_baroque_era/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/romanticism/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/early_music_and_the_baroque_era/boethius_guido_d_arezzo_formation_and_development_of_polyphonic_schools/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/early_music_and_the_baroque_era/music_of_ancient_greece_the_beginning_of_the_gregorian_chant/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/classicism/134/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/early_music_and_the_baroque_era/music_of_ancient_greece_the_beginning_of_the_gregorian_chant/music_of_ancient_greece/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/early_music_and_the_baroque_era/boethius_guido_d_arezzo_formation_and_development_of_polyphonic_schools/boethius/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/early_music_and_the_baroque_era/boethius_guido_d_arezzo_formation_and_development_of_polyphonic_schools/guido_d_arezzo/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/early_music_and_the_baroque_era/music_of_ancient_greece_the_beginning_of_the_gregorian_chant/early_church_monody/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/early_music_and_the_baroque_era/music_of_ancient_greece_the_beginning_of_the_gregorian_chant/exercises/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/early_music_and_the_baroque_era/boethius_guido_d_arezzo_formation_and_development_of_polyphonic_schools/the_origin_of_polyphony_and_polyphony_of_the_middle_ages/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/tag/1%D0%A1/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/authors/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/403/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/404/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/503/ daily 0.5 http://xn--10-8kcp5e.xn--p1ai/sitemap/ daily 0.5 https://xn--10-8kcp5e.xn--p1ai/site.webmanifest/ daily 0.5