[!!!][BUGFIX] *_user table password field is to short
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / ext_localconf.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 t3lib_extMgm::addPItoST43($_EXTKEY);
7
8 if (t3lib_extMgm::isLoaded('extbase')) {
9 // Configure the Extbase Plugin
10 Tx_Extbase_Utility_Extension::configurePlugin(
11 $_EXTKEY, 'Pi2',
12 // array holding the controller-action-combinations that are accessible
13 array('Search' => 'form,search'),
14 // array of non-cachable controller-action-combinations (they must already be enabled above)
15 array('Search' => 'form,search')
16 );
17 }
18
19 // Attach to hooks:
20 $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'][] = 'EXT:indexed_search/class.indexer.php:tx_indexedsearch_indexer';
21 $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['headerNoCache']['tx_indexedsearch'] = 'EXT:indexed_search/hooks/class.tx_indexedsearch_tslib_fe_hook.php:&tx_indexedsearch_tslib_fe_hook->headerNoCache';
22
23 // Register with "crawler" extension:
24 $TYPO3_CONF_VARS['EXTCONF']['crawler']['procInstructions']['tx_indexedsearch_reindex'] = 'Re-indexing';
25 $TYPO3_CONF_VARS['EXTCONF']['crawler']['cli_hooks']['tx_indexedsearch_crawl'] = 'EXT:indexed_search/class.crawler.php:&tx_indexedsearch_crawler';
26
27 // Register with TCEmain:
28 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['tx_indexedsearch'] = 'EXT:indexed_search/class.crawler.php:&tx_indexedsearch_crawler';
29 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_indexedsearch'] = 'EXT:indexed_search/class.crawler.php:&tx_indexedsearch_crawler';
30
31 // Configure default document parsers:
32 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['external_parsers'] = array(
33 'pdf' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
34 'doc' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
35 'pps' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
36 'ppt' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
37 'xls' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
38 'sxc' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
39 'sxi' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
40 'sxw' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
41 'ods' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
42 'odp' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
43 'odt' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
44 'rtf' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
45 'txt' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
46 'html' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
47 'htm' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
48 'csv' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
49 'xml' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
50 'jpg' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
51 'jpeg' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
52 'tif' => 'EXT:indexed_search/class.external_parser.php:&tx_indexed_search_extparse',
53 );
54
55 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['use_tables'] = 'index_phash,index_fulltext,index_rel,index_words,index_section,index_grlist,index_stat_search,index_stat_word,index_debug,index_config';
56
57 // unserializing the configuration so we can use it here:
58 $_EXTCONF = unserialize($_EXTCONF);
59
60 // Use the advanced doubleMetaphone parser instead of the internal one (usage of metaphone parsers is generally disabled by default)
61 if (isset($_EXTCONF['enableMetaphoneSearch']) && intval($_EXTCONF['enableMetaphoneSearch'])==2) {
62 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['metaphone'] = 'EXT:indexed_search/class.doublemetaphone.php:&user_DoubleMetaPhone';
63 }
64
65
66
67
68
69 // EXAMPLE configuration of hooks:
70 /*
71 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['pi1_hooks'] = array (
72 'initialize_postProc' => 'EXT:indexed_search/example/class.pihook.php:&tx_indexedsearch_pihook',
73 'getResultRows' => 'EXT:indexed_search/example/class.pihook.php:&tx_indexedsearch_pihook',
74 'printResultRow' => 'EXT:indexed_search/example/class.pihook.php:&tx_indexedsearch_pihook',
75 'prepareResultRowTemplateData_postProc' => 'EXT:indexed_search/example/class.pihook.php:&tx_indexedsearch_pihook',
76 );
77 */
78
79 // EXAMPLE of adding fields to root line:
80 /*
81 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['addRootLineFields']['level3'] = 3;
82 */
83
84
85 // Example of crawlerhook (see also ext_tables.php!)
86 /*
87 $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['crawler']['tx_myext_example1'] = 'EXT:indexed_search/example/class.crawlerhook.php:&tx_indexedsearch_crawlerhook';
88 */
89 ?>