コード例 #1
0
 /**
  * Registers exception handler to the Sentry.
  *
  * @return void
  */
 function sentry_register()
 {
     $extConf = @unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['sentry']);
     if (is_array($extConf) && isset($extConf['sentryDSN'])) {
         // Register Raven autoloader
         $ravenPhpAutoloaderPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('sentry', 'lib/raven-php/lib/Raven/Autoloader.php');
         /** @noinspection PhpIncludeInspection */
         require_once $ravenPhpAutoloaderPath;
         Raven_Autoloader::register();
         // Set error handler
         $GLOBALS['SENTRY_CLIENT'] = new Raven_Client($extConf['sentryDSN']);
         $ravenErrorHandler = new Raven_ErrorHandler($GLOBALS['SENTRY_CLIENT']);
         $errorMask = E_ALL & ~(E_DEPRECATED | E_NOTICE | E_STRICT);
         // Register handlers in case if we do not have to report to TYPO3. Otherwise we need to register those handlers first!
         if (!$extConf['passErrorsToTypo3']) {
             $ravenErrorHandler->registerErrorHandler(FALSE, $errorMask);
             $ravenErrorHandler->registerExceptionHandler(FALSE);
         }
         // Make sure that TYPO3 does not override our handler
         \DmitryDulepov\Sentry\ErrorHandlers\SentryErrorHandler::initialize($ravenErrorHandler, $errorMask);
         \DmitryDulepov\Sentry\ErrorHandlers\SentryExceptionHandler::initialize($ravenErrorHandler);
         // TYPO3 7.0
         \DmitryDulepov\Sentry\ErrorHandlers\SentryExceptionHandlerFrontend::initialize($ravenErrorHandler);
         // Register test plugin
         if (is_array($extConf) && isset($extConf['enableTestPlugin']) && $extConf['enableTestPlugin']) {
             \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('DmitryDulepov.sentry', 'ErrorHandlerTest', array('ErrorHandlerTest' => 'index,phpWarning,phpError,phpException'), array('ErrorHandlerTest' => 'index,phpWarning,phpError,phpException'));
         }
         unset($extConf);
         // Fix TYPO3 7.0 hard-coded FE exception handler
         $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Frontend\\ContentObject\\Exception\\ProductionExceptionHandler'] = array('className' => 'DmitryDulepov\\Sentry\\ErrorHandlers\\SentryExceptionHandlerFrontend');
     }
 }
コード例 #2
0
ファイル: Bootstrap.php プロジェクト: bergwerk/bwrk_address
 /**
  *
  */
 public static function extLocalconf()
 {
     // Configure Plugins
     ExtensionUtility::configurePlugin('BERGWERK.' . self::$_extKey, 'Pi1', array('Address' => 'list'), array('Address' => 'list'));
     ExtensionUtility::configurePlugin('BERGWERK.' . self::$_extKey, 'Pi2', array('Address' => 'single'), array('Address' => 'single'));
     ExtensionUtility::configurePlugin('BERGWERK.' . self::$_extKey, 'Pi3', array('Address' => 'detail'), array('Address' => 'detail'));
     ExtensionUtility::configurePlugin('BERGWERK.' . self::$_extKey, 'Pi4', array('Address' => 'listManual'), array('Address' => 'listManual'));
 }
    $TYPO3_CONF_VARS['SC_OPTIONS']['typo3/file_edit.php']['preOutputProcessingHook'][] = 'TYPO3\\CMS\\T3editor\\Hook\\FileEditHook->preOutputProcessingHook';
    $TYPO3_CONF_VARS['SC_OPTIONS']['typo3/file_edit.php']['postOutputProcessingHook'][] = 'TYPO3\\CMS\\T3editor\\Hook\\FileEditHook->postOutputProcessingHook';
}
/**
 * Extension: t3skin
 * File: C:/xampp/htdocs/typo3_6.2.14/typo3/sysext/t3skin/ext_localconf.php
 */
$_EXTKEY = 't3skin';
$_EXTCONF = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY];
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
	RTE.default.skin = EXT:' . $_EXTKEY . '/rtehtmlarea/htmlarea.css
	RTE.default.FE.skin = EXT:' . $_EXTKEY . '/rtehtmlarea/htmlarea.css
');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preStartPageHook']['TYPO3\\CMS\\T3skin\\Hook\\StyleGenerationHook'] = 'TYPO3\\CMS\\T3skin\\Hook\\StyleGenerationHook->preStartPageHook';
/**
 * Extension: go_maps_ext
 * File: C:/xampp/htdocs/typo3_6.2.14/typo3conf/ext/go_maps_ext/ext_localconf.php
 */
$_EXTKEY = 'go_maps_ext';
$_EXTCONF = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY];
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Clickstorm.' . $_EXTKEY, 'Show', array('Map' => 'show'), array());
$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_gomapsext_domain_model_map'][0] = array('fList' => 'title,default_type', 'icon' => TRUE);
$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_gomapsext_domain_model_category'][0] = array('fList' => 'name', 'icon' => TRUE);
$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_gomapsext_domain_model_address'][0] = array('fList' => 'title, info_window_content', 'icon' => TRUE);
#
コード例 #4
0
ファイル: Plugins.php プロジェクト: phogl/autoloader
 /**
  * Run the loading process for the ext_localconf.php file
  *
  * @param Loader $loader
  * @param array  $loaderInformation
  *
  * @return NULL
  */
 public function loadExtensionConfiguration(Loader $loader, array $loaderInformation)
 {
     $prefix = $loader->getVendorName() . '.' . $loader->getExtensionKey();
     foreach ($loaderInformation as $key => $information) {
         ExtensionUtility::configurePlugin($prefix, $key, $information['cache'], $information['noCache']);
     }
 }
コード例 #5
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Woehrl.' . $_EXTKEY, 'Pi1', array('Marke' => 'list, show'), array('Marke' => 'list, show, create, update, delete', 'Category' => 'list, show, create, update, delete', 'Modehaus' => 'list, show, create, update, delete'));
コード例 #6
0
ファイル: ext_localconf.php プロジェクト: TUGNR/ds_example
<?php

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Ds.' . $_EXTKEY, 'crud', ['User' => 'register,create,login,authenticate'], ['User' => 'register,create,login']);
コード例 #7
0
ファイル: ext_localconf.php プロジェクト: portrino/sf_banners
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('DERHANSEN.' . $_EXTKEY, 'Pi1', array('Banner' => 'show,getBanners,click'), array('Banner' => 'getBanners,click'));
// Register cache 'sfbanners_cache'
if (!is_array($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['sfbanners_cache'])) {
    $TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['sfbanners_cache'] = array();
}
コード例 #8
0
<?php

defined('TYPO3_MODE') or die;
/** @noinspection PhpUndefinedVariableInspection */
$extensionConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]);
if (TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('realurl') && (!isset($extensionConfiguration['setRealurlConfigByDefault']) || $extensionConfiguration['setRealurlConfigByDefault'] == 1)) {
    /** @noinspection PhpIncludeInspection */
    require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/Realurl/realurl_conf.php';
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Evoweb.' . $_EXTKEY, 'Form', array('FeuserCreate' => 'form, preview, proxy, save, confirm, accept, decline, refuse, removeImage', 'FeuserEdit' => 'form, preview, proxy, save, confirm, accept, removeImage', 'FeuserPassword' => 'form, save'), array('FeuserCreate' => 'form, preview, proxy, save, confirm, accept, decline, refuse, removeImage', 'FeuserEdit' => 'form, preview, proxy, save, confirm, accept, removeImage', 'FeuserPassword' => 'form, save'));
$TYPO3_CONF_VARS['FE']['eID_include']['sf_register'] = 'EXT:sf_register/Classes/Api/Ajax.php';
define('SFREGISTERCACHEIDENTIFIER', 'cache_' . $_EXTKEY . '_extending');
// Register cache sf_register
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][SFREGISTERCACHEIDENTIFIER] = array('frontend' => \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class, 'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class, 'options' => array());
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter(\Evoweb\SfRegister\Property\TypeConverter\FrontendUserConverter::class);
if (TYPO3_MODE === 'FE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    /**
     * Signal slot dispatcher
     *
     * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher
     */
    $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
    $signalSlotDispatcher->connect(\Evoweb\SfRegister\Controller\FeuserController::class, 'initializeAction', \Evoweb\SfRegister\Signal\FeuserControllerSignal::class, 'initializeAction');
}
コード例 #9
0
ファイル: ext_localconf.php プロジェクト: visol/ext-votable
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$configuration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['votable']);
if (FALSE === isset($configuration['autoload_typoscript']) || TRUE === (bool) $configuration['autoload_typoscript']) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('votable', 'constants', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:votable/Configuration/TypoScript/constants.ts">');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('votable', 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:votable/Configuration/TypoScript/setup.ts">');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Visol.votable', 'Pi1', array('Vote' => 'index, add, remove'), array('Vote' => 'index, add, remove'));
if (TYPO3_MODE === 'BE') {
    if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
        $signalSlotDispatcher->connect('TYPO3\\CMS\\Extensionmanager\\Utility\\InstallUtility', 'tablesDefinitionIsBeingBuilt', \Visol\Votable\VotingRegistry::class, 'addExtensionVoteDatabaseSchemaToTablesDefinition');
    }
    $signalSlotDispatcher->connect('TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService', 'tablesDefinitionIsBeingBuilt', \Visol\Votable\VotingRegistry::class, 'addVoteDatabaseSchemaToTablesDefinition');
}
コード例 #10
0
ファイル: ext_localconf.php プロジェクト: dextar1/t3extblog
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'Blogsystem', array('Post' => 'list, tag, category, show, permalink, preview', 'Comment' => 'create, show'), array('Post' => 'permalink, preview', 'Comment' => 'create'));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'Archive', array('Post' => 'archive'), array('Post' => ''));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'Rss', array('Post' => 'rss'), array('Post' => ''));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'SubscriptionManager', array('Subscriber' => 'list, delete, error, confirm, logout'), array('Subscriber' => 'list, delete, error, confirm, logout'));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'Categories', array('Category' => 'list, show'), array('Category' => ''));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'LatestPosts', array('Post' => 'latest'), array('Post' => ''));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'LatestComments', array('Comment' => 'latest'), array('Comment' => ''));
if (TYPO3_MODE == 'BE') {
    // add BE hooks
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:t3extblog/Classes/Hooks/Tcemain.php:TYPO3\\T3extblog\\Hooks\\Tcemain';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'EXT:t3extblog/Classes/Hooks/Tcemain.php:TYPO3\\T3extblog\\Hooks\\Tcemain';
    // Install Tool Upgrade Wizard
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['t3extblog_preview'] = 'TYPO3\\T3extblog\\Updates\\PreviewUpdateWizard';
}
// add RealURL configuration
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/realurl/class.tx_realurl_autoconfgen.php']['extensionConfiguration']['t3extblog'] = 'EXT:t3extblog/Classes/Hooks/RealUrl.php:TYPO3\\T3extblog\\Hooks\\RealUrl->extensionConfiguration';
// support for dd_googlesitemap
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dd_googlesitemap']['sitemap']['t3extblog'] = 'TYPO3\\T3extblog\\Hooks\\Sitemap\\Generator->main';
// add cHash configuration
// See: http://forum.typo3.org/index.php?t=msg&th=203350
$requiredParameters = array('tx_t3extblog_blogsystem[action]', 'tx_t3extblog_blogsystem[controller]', 'tx_t3extblog_blogsystem[post]', 'tx_t3extblog_blogsystem[permalinkPost]', 'tx_t3extblog_blogsystem[previewPost]', 'tx_t3extblog_blogsystem[tag]', 'tx_t3extblog_blogsystem[category]', 'tx_t3extblog_blogsystem[@widget_0][currentPage]', 'tx_t3extblog_subscriptionmanager[subscriber]');
$GLOBALS['TYPO3_CONF_VARS']['FE']['cHashRequiredParameters'] .= ',' . implode(',', $requiredParameters);
// @todo Remove this, see: https://github.com/fnagel/t3extblog/issues/99
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['de']['EXT:t3extblog/Resources/Private/Language/locallang.xlf'][] = 'EXT:t3extblog/Resources/Private/Language/de.locallang.xlf';
コード例 #11
0
ファイル: ext_localconf.php プロジェクト: kj187/paypal
<?php

/***************************************************************
 *  Copyright notice
 *
 *  (c) 2014 AIJKO GmbH <info@aijko.de
 *
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
 *  free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  The GNU General Public License can be found at
 *  http://www.gnu.org/copyleft/gpl.html.
 *
 *  This script is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  This copyright notice MUST APPEAR in all copies of the script!
 ***************************************************************/
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Configure plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin($_EXTKEY, 'IPN', array('IpnListener' => 'receive'), array('IpnListener' => 'receive'));
コード例 #12
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Pluswerk.' . $_EXTKEY, 'Bloglisting', array('Blog' => 'list,addForm,add,show,updateForm,update,deleteConfirm,delete,rss', 'Post' => 'addForm,add,show,updateForm,update,deleteConfirm,delete,ajax', 'Json' => 'json'), array('Blog' => 'list,addForm,add,show,updateForm,update,deleteConfirm,delete,rss', 'Post' => 'addForm,add,show,updateForm,update,deleteConfirm,delete,ajax', 'Json' => 'json'));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter('Pluswerk\\Simpleblog\\Property\\TypeConverter\\UploadedFileReferenceConverter');
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
$signalSlotDispatcher->connect('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Backend', 'afterInsertObject', 'Pluswerk\\Simpleblog\\Service\\SignalService', 'handleInsertEvent');
$signalSlotDispatcher->connect('Pluswerk\\Simpleblog\\Controller\\PostController', 'beforeCommentCreation', 'Pluswerk\\Simpleblog\\Service\\SignalService', 'handleCommentInsertion');
コード例 #13
0
<?php

defined('TYPO3_MODE') or die;
// register extbase plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.CMS.IndexedSearch', 'Pi2', array('Search' => 'form,search'), array('Search' => 'form,search'));
// Attach to hooks:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'][] = \TYPO3\CMS\IndexedSearch\Indexer::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['headerNoCache']['tx_indexedsearch'] = \TYPO3\CMS\IndexedSearch\Hook\TypoScriptFrontendHook::class . '->headerNoCache';
// Register with "crawler" extension:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['procInstructions']['tx_indexedsearch_reindex'] = 'Re-indexing';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['cli_hooks']['tx_indexedsearch_crawl'] = \TYPO3\CMS\IndexedSearch\Hook\CrawlerHook::class;
// Register with TCEmain:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['tx_indexedsearch'] = \TYPO3\CMS\IndexedSearch\Hook\CrawlerHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_indexedsearch'] = \TYPO3\CMS\IndexedSearch\Hook\CrawlerHook::class;
// Configure default document parsers:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['external_parsers'] = array('pdf' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'doc' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'docx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'dotx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'pps' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'ppsx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'ppt' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'pptx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'potx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'xls' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'xlsx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'xltx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'sxc' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'sxi' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'sxw' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'ods' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'odp' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'odt' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'rtf' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'txt' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'html' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'htm' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'csv' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'xml' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'jpg' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'jpeg' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'tif' => \TYPO3\CMS\IndexedSearch\FileContentParser::class);
$GLOBALS['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';
// unserializing the configuration so we can use it here:
$_EXTCONF = unserialize($_EXTCONF);
// Use the advanced doubleMetaphone parser instead of the internal one (usage of metaphone parsers is generally disabled by default)
if (isset($_EXTCONF['enableMetaphoneSearch']) && (int) $_EXTCONF['enableMetaphoneSearch'] == 2) {
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['metaphone'] = \TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::class;
}
コード例 #14
0
<?php

defined('TYPO3_MODE') or die;
if (TYPO3_MODE === 'BE') {
    // Apply PageTSconfig
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:form/Configuration/PageTS/modWizards.ts">');
    // Add default User TS Config FORM configuration
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:form/Configuration/UserTSconfig/userTSConfig.txt">');
    // Backend view
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['mailform'] = \TYPO3\CMS\Form\Hooks\PageLayoutView\MailformPreviewRenderer::class;
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1440772316] = array('nodeName' => 'formwizard', 'priority' => 40, 'class' => \TYPO3\CMS\Form\View\Wizard\Element\FormWizardElement::class);
} else {
    // Handling of cObjects "FORM" and "FORM_INT"
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'][] = array('FORM', \TYPO3\CMS\Form\Hooks\ContentObjectHook::class);
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'][] = array('FORM_INT', \TYPO3\CMS\Form\Hooks\ContentObjectHook::class);
    // Extbase handling
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter(\TYPO3\CMS\Form\Domain\Property\TypeConverter\ArrayToValidationElementConverter::class);
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.CMS.Form', 'Form', array('Frontend' => 'show, confirmation, dispatchConfirmationButtonClick, process, afterProcess'), array('Frontend' => 'show, confirmation, dispatchConfirmationButtonClick, process, afterProcess'));
    $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
    $signalSlotDispatcher->connect(\TYPO3\CMS\Form\Domain\Builder\FormBuilder::class, 'txFormHandleIncomingValues', \TYPO3\CMS\Form\Hooks\HandleIncomingFormValues::class, 'handleIncomingFormValues');
}
コード例 #15
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('JS.' . $_EXTKEY, 'Gallery', array(), array());
コード例 #16
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (FALSE === isset($GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'])) {
    \TYPO3\CMS\Core\Utility\GeneralUtility::sysLog('FluidcontentCore requires an additional configuration file in typo3conf/AdditionalConfiguration.php - ' . 'you can have FluidcontentCore generate this file for you from the extension manager by running the FluidcontentCore update script. A dummy ' . 'has been created, but you will only be able to render content (not plugins!) until the file is created', 'fluidcontent_core', \TYPO3\CMS\Core\Utility\GeneralUtility::SYSLOG_SEVERITY_WARNING);
    $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'] = array('fluidcontentcore/Configuration/TypoScript/');
}
$GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['types'] = array('header', 'text', 'image', 'bullets', 'uploads', 'table', 'media', 'menu', 'shortcut', 'div', 'html', 'default');
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\FluidcontentCore\\Provider\\CoreContentProvider');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook']['fluidcontent_core'] = 'FluidTYPO3\\FluidcontentCore\\Hooks\\WizardItemsHookSubscriber';
// Prepare a global variants registration array indexed by CType value.
// To add your own, do fx: $GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['variants']['textpic'][] = 'myextensionkey';
$GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['variants'] = array_combine(array_values($GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['types']), array_fill(0, count($GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['types']), array()));
$types = count($GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['types']);
for ($i = 0; $i < $types; $i++) {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FluidTYPO3.FluidcontentCore', ucfirst($GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['types'][$i]), array('CoreContent' => 'render,error'), array());
}
unset($types, $i);
// Include new content elements to modWizards
if (TRUE === version_compare(TYPO3_version, '7.3', '>')) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluidcontent_core/Configuration/PageTS/modWizards.ts">');
}
コード例 #17
0
ファイル: ext_localconf.php プロジェクト: khanhdeux/typo3test
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FIXTURE.' . $_EXTKEY, 'Testplugin', array('Main' => 'list, show, new, create, edit, update, delete'), array('Main' => 'create, update, delete'));
コード例 #18
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('SKYFILLERS.' . $_EXTKEY, 'Pifilecollectiongallery', array('Gallery' => 'list'), array('Gallery' => ''));
// Use hook from http://www.derhansen.de/2014/06/typo3-how-to-prevent-empty-flexform.html
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['SKYFILLERS.' . $_EXTKEY] = 'SKYFILLERS\\SfFilecollectionGallery\\Hooks\\DataHandlerHooks';
コード例 #19
0
<?php

defined('TYPO3_MODE') or die('Access denied.');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Helhum.' . $_EXTKEY, 'PiExample', array('Example' => 'index, hello, greet'), array('Example' => 'hello, greet'));
/**
 * Register eID for example ajax action-call
 */
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ajax_example'] = 'EXT:ajax_example/Resources/Public/Scripts/Php/EidRunner.php';
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ajax_example_hello'] = 'EXT:ajax_example/Resources/Public/Scripts/Php/EidHelloWorld.php';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['typoscript_rendering']['renderClasses']['hello'] = 'Helhum\\AjaxExample\\Renderer\\HelloWorldRenderer';
コード例 #20
0
ファイル: ext_localconf.php プロジェクト: pitchart/pi_blog
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Pitchart.' . $_EXTKEY, 'Pi1', array('Post' => 'list, show, last', 'Author' => 'list, show', 'Category' => 'list, show', 'Tag' => 'list, show'), array('Post' => '', 'Author' => '', 'Category' => '', 'Tag' => '', 'Comment' => 'create'));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Pitchart.' . $_EXTKEY, 'Pi2', array('Comment' => 'create'), array('Comment' => 'create'));
コード例 #21
0
ファイル: ext_localconf.php プロジェクト: Haco/pw_teaser
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$extConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]);
$actionNotToCache = '';
if ($extConfiguration['ENABLECACHE'] == '0') {
    $actionNotToCache = 'index';
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('PwTeaserTeam.' . $_EXTKEY, 'Pi1', array('Teaser' => 'index'), array('Teaser' => $actionNotToCache));
$rootLineFields = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $TYPO3_CONF_VARS['FE']['addRootLineFields'], TRUE);
$rootLineFields[] = 'sorting';
$TYPO3_CONF_VARS['FE']['addRootLineFields'] = implode(',', $rootLineFields);
コード例 #22
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Configure frontend plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Heilmann.' . $_EXTKEY, 'Pi1', array('Magnificpopup' => 'show'), array());
// Save the IRRE content (use hook to change colPos)
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/Classes/Hooks/class.tx_jhmagnificpopup_tcemain.php:&tx_jhmagnificpopup_tcemain';
// Page TSconfig for global enabled iframe
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
	RTE.classesAnchor {
	  externalLinkInMagnificpopup {
	    class = mfp-link external-link-new-window
	    type = url
	    image >
	    titleText = LLL:EXT:jh_magnificpopup/Resources/Private/Language/locallang.xlf:pageTSconfig.externalLinkInMagnificpopup
	  }
	  internalLinkInMagnificpopup {
	    class = mfp-link internal-link-new-window
	    type = page
	    image >
	    titleText = LLL:EXT:jh_magnificpopup/Resources/Private/Language/locallang.xlf:pageTSconfig.internalLinkInMagnificpopup
	  }
	  downloadInMagnificpopup {
	    class = mfp-link download
	    type = file
	    image >
	    titleText = LLL:EXT:jh_magnificpopup/Resources/Private/Language/locallang.xlf:pageTSconfig.downloadInMagnificpopup
	  }
	}
コード例 #23
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['store_finder_coordinate'])) {
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['store_finder_coordinate'] = array('groups' => array('system'));
}
/**
 * Default PageTS
 */
/** @noinspection PhpUndefinedVariableInspection */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/PageTS/ModWizards.ts">');
/** @noinspection PhpIncludeInspection */
require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('store_finder') . 'Classes/Utility/ExtensionConfigurationUtility.php';
$configuration = \Evoweb\StoreFinder\Utility\ExtensionConfigurationUtility::getConfiguration();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
	options.saveDocNew.tx_storefinder_domain_model_location = 1
	options.saveDocNew.tx_storefinder_domain_model_category = 1
	options.saveDocNew.tx_storefinder_domain_model_attribute = 1
');
/** @noinspection PhpUndefinedVariableInspection */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Evoweb.' . $_EXTKEY, 'Map', array('Map' => 'map'), array('Map' => 'map'));
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['store_finder'] = 'EXT:store_finder/Classes/Hook/TceMainHook.php:Evoweb\\StoreFinder\\Hook\\TceMainHook';
// Add location geocodeing task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Evoweb\\StoreFinder\\Task\\GeocodeLocationsTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_be.xml:geocodeLocations.name', 'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_be.xml:geocodeLocations.description');
コード例 #24
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Visol.' . $_EXTKEY, 'Linkdirectory', array('Link' => 'list'), array('Link' => ''));
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_linkdirectory'] = 'Visol\\LinkDirectory\\Hook\\DataHandler';
コード例 #25
0
ファイル: ext_localconf.php プロジェクト: Rattazonk/formster
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Rattazonk.' . $_EXTKEY, 'Display', array('Form' => 'show'), array('Form' => 'show'));
コード例 #26
0
ファイル: ext_localconf.php プロジェクト: woehrlag/Intranet
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Woehrl.' . $_EXTKEY, 'Pi1', array('Kurs' => 'list, show'), array('Kurs' => 'create, update, delete', 'Schulungsort' => 'create, update, delete', 'Kategorie' => 'create, update, delete', 'Kompetenz' => 'create, update, delete', 'Zielgruppe' => 'create, update, delete', 'Teilnehmer' => 'create, update, delete', 'Dozent' => 'create, update, delete'));
コード例 #27
0
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/**
 * Enable caching for show action in form controller
 */
$uncachedFormActions = 'form';
if (\In2code\Powermail\Utility\ConfigurationUtility::isEnableCachingActive()) {
    $uncachedFormActions = '';
}
$uncachedFormActions .= ', create, confirmation, optinConfirm, marketing';
/**
 * Include Frontend Plugins for Powermail
 */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('In2code.' . $_EXTKEY, 'Pi1', array('Form' => 'form, create, confirmation, optinConfirm, marketing'), array('Form' => $uncachedFormActions));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('In2code.' . $_EXTKEY, 'Pi2', array('Output' => 'list, show, edit, update, export, rss, delete'), array('Output' => 'list, edit, update, export, rss, delete'));
/**
 * Hook to show PluginInfo
 */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info'][$_EXTKEY . '_pi1'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/Classes/Utility/Hook/PluginInformation.php:' . 'In2code\\Powermail\\Utility\\Hook\\PluginInformation->build';
/**
 * Hook for first fill of marker field in backend
 */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:' . $_EXTKEY . '/Classes/Utility/Hook/CreateMarker.php:In2code\\Powermail\\Utility\\Hook\\CreateMarker';
/**
 * JavaScript evaluation of TCA fields
 */
$TYPO3_CONF_VARS['SC_OPTIONS']['tce']['formevals']['\\In2code\\Powermail\\Utility\\Tca\\EvaluateEmail'] = 'EXT:powermail/Classes/Utility/Tca/EvaluateEmail.php';
/**
 * eID to get location from geo coordinates
 */
コード例 #28
0
ファイル: ext_localconf.php プロジェクト: guso15/promoshop
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Guso.' . $_EXTKEY, 'Pi1', array('Product' => 'index,list, show, new, create, edit, update, delete', 'Productcategorie' => 'list, show, new, create, edit, update, delete', 'Booking' => 'new, list, show, exit, create, edit, update, delete', 'Bookingitem' => 'list, show, new, create, edit, update, delete', 'Customer' => 'list'), array('Product' => 'index,list, show, new, create, edit, update, delete', 'Productcategorie' => 'list, show, new, create, edit, update, delete', 'Booking' => 'new, list, show, exit, create, edit, update, delete', 'Bookingitem' => 'list, show, new, create, edit, update, delete', 'Customer' => 'list'));
$TYPO3_CONF_VARS['FE']['eID_include']['availableProducts'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Resources/Public/Php/EidAvailableProducts.php';
コード例 #29
0
ファイル: ext_localconf.php プロジェクト: bednee/fluidcontent
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FluidTYPO3.Fluidcontent', 'Content', array('Content' => 'render'), array(), \TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT);
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\Fluidcontent\\Provider\\ContentProvider');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook']['fluidcontent'] = 'FluidTYPO3\\Fluidcontent\\Hooks\\WizardItemsHookSubscriber';
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['fluidcontent'])) {
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['fluidcontent'] = array('groups' => array('system'));
}
コード例 #30
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$TYPO3_CONF_VARS['SC_OPTIONS']['tce']['formevals']['tx_easygooglemap_coordinate'] = 'EXT:easy_googlemap/Configuration/TCA/class.tx_easygooglemap_coordinate.php';
$TYPO3_CONF_VARS['SC_OPTIONS']['tce']['formevals']['tx_easygooglemap_link'] = 'EXT:easy_googlemap/Configuration/TCA/class.tx_easygooglemap_link.php';
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'Feeasygooglemap', array('Location' => 'list, show, new, create, edit, update, delete'), array('Location' => 'create, update, delete'));