Russian TYPO3 community Форум больше не используется. Присоединяйтесь к каналу #community-ru в Slack for TYPO3 community  

Вернуться   Russian TYPO3 community > Обсуждение общих технических вопросов > Общие вопросы

 
 
Опции темы Опции просмотра
Старый 02.11.2008, 21:48   #4
Boris
Продвинутый
 
Регистрация: 15.02.2005
Сообщений: 50
По умолчанию

Посмотрел function checkResume в class.tx_indexedsearch.php,
так там в лоб сравниваются $GLOBALS['TSFE']->gr_list с gr_list из TAB 'index_grlist':

gr_list='.$GLOBALS['TYPO3_DB']->fullQuoteStr($GLOBALS['TSFE']->gr_list) ...

PHP код:
if (strcmp($row['gr_list'],$GLOBALS['TSFE']->gr_list)) {
     
// Selecting for the grlist records belonging to the phash-row where the current users gr_list exists. If it is found it is proof that this user has direct access to the phash-rows content although he did not himself initiate the indexing...
    
$res $GLOBALS['TYPO3_DB']->exec_SELECTquery('phash''index_grlist''phash='.intval($row['phash']).' AND gr_list='.$GLOBALS['TYPO3_DB']->fullQuoteStr($GLOBALS['TSFE']->gr_list'index_grlist'));
    if (
$GLOBALS['TYPO3_DB']->sql_num_rows($res)) {
     
//t3lib_div::debug('Checking on it ...'.$row['item_title'].'/'.$row['phash'].' - YES ('.$GLOBALS['TSFE']->gr_list.")",1);
     
return TRUE;
    } else {
     
//t3lib_div::debug('Checking on it ...'.$row['item_title'].'/'.$row['phash']." - NOPE",1);
     
return FALSE;
    }
   } else {
     
//t3lib_div::debug('Resume can be shown, because the document was in fact indexed by this combination of groups!'.$GLOBALS['TSFE']->gr_list.' - '.$row['item_title'].'/'.$row['phash'],1);
    
return TRUE;
   } 
Boris вне форума   Ответить с цитированием
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB code is Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход

Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Site Crawler Baltazarr Общие вопросы 38 22.04.2008 10:32
_cli_crawler in CRAWLER Aratak Общие вопросы 4 02.08.2007 01:19
Indexed_search + crawler + custom plugin (:) Общие вопросы 7 01.12.2006 13:03


Часовой пояс GMT +4, время: 04:25.


Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Перевод: zCarot

Хостинг и техническая поддержка: TYPO3 Лаборатория