/**
  * 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
 /**
  * @param $pluginName
  * @param $pluginTitle
  * @param null $flexFormClass
  */
 protected static function registerPlugin($pluginName, $pluginTitle, $flexFormClass = null)
 {
     ExtensionUtility::registerPlugin('BERGWERK.' . self::$_extKey, $pluginName, $pluginTitle);
     if (empty($flexFormClass)) {
         return;
     }
     /** @var FlexForm $flexFormInstance */
     $flexFormInstance = new $flexFormClass();
     if (!$flexFormInstance instanceof FlexForm) {
         return;
     }
     $flexForm = $flexFormInstance->render();
     $pluginSignature = strtolower(GeneralUtility::underscoredToUpperCamelCase(self::$_extKey)) . '_' . strtolower($pluginName);
     $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
     ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, $flexForm);
 }
示例#3
0
<?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'));
}
示例#4
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('Sng.' . $_EXTKEY, 'txtypo3profilerM1', '', '', array(), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:typo3profilertitle'));
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('Sng.' . $_EXTKEY, 'txtypo3profilerM1', 'mod1', '', array('Page' => 'index,show,flush'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/page.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:modpage'));
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('Sng.' . $_EXTKEY, 'txtypo3profilerM1', 'mod2', '', array('Sql' => 'index,show,flush'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/sql.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:modsql'));
    //\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', $_EXTKEY);
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:typo3profiler/Configuration/TypoScript/setup.txt">');
}
示例#5
0
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// TODO change to a constant, so that it can't get manipulated
$GLOBALS['PATH_solr'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('solr');
$GLOBALS['PATHrel_solr'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('solr');
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// add search plugin to content element wizard
if (TYPO3_MODE == 'BE') {
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['Tx_Solr_Backend_ContentElementWizardIconProvider'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Classes/Backend/ContentElementWizardIconProvider.php';
}
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
$iconPath = $GLOBALS['PATHrel_solr'] . 'Resources/Public/Images/Icons/';
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('ModuleOverview' => $iconPath . 'Search.png', 'ModuleIndexQueue' => $iconPath . 'IndexQueue.png', 'ModuleIndexMaintenance' => $iconPath . 'IndexMaintenance.png', 'ModuleIndexFields' => $iconPath . 'IndexFields.png', 'ModuleSynonyms' => $iconPath . 'Synonyms.png', 'InitSolrConnections' => $iconPath . 'InitSolrConnections.png'), $_EXTKEY);
if (TYPO3_MODE == 'BE') {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'tools', 'administration', '', array('Administration' => 'index,setSite,setCore'), array('access' => 'admin', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/Icons/ModuleAdministration.png', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/ModuleAdministration.xlf'));
    ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'Overview', array('index'));
    ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'IndexQueue', array('index,initializeIndexQueue,resetLogErrors,clearIndexQueue'));
    ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'IndexMaintenance', array('index,cleanUpIndex,emptyIndex,reloadIndexConfiguration'));
    ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'IndexFields', array('index'));
    ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'Synonyms', array('index,addSynonyms,deleteSynonyms'));
    // registering reports
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['solr'] = array('Tx_Solr_Report_SchemaStatus', 'Tx_Solr_Report_SolrConfigStatus', 'Tx_Solr_Report_SolrConfigurationStatus', 'Tx_Solr_Report_SolrStatus', 'Tx_Solr_Report_SolrVersionStatus', 'Tx_Solr_Report_AccessFilterPluginInstalledStatus', 'Tx_Solr_Report_AllowUrlFOpenStatus', 'Tx_Solr_Report_FilterVarStatus');
    // Index Inspector
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info', 'Tx_Solr_ModIndex_IndexInspector', $GLOBALS['PATH_solr'] . 'ModIndex/IndexInspector.php', 'LLL:EXT:solr/Resources/Private/Language/Backend.xml:module_indexinspector');
    // register Clear Cache Menu hook
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']['clearSolrConnectionCache'] = '&Tx_Solr_ConnectionManager';
    // register Clear Cache Menu ajax call
    $TYPO3_CONF_VARS['BE']['AJAX']['solr::clearSolrConnectionCache'] = array('callbackMethod' => 'Tx_Solr_ConnectionManager->updateConnections', 'csrfTokenCheck' => true);
    // the order of registering the garbage collector and the record monitor is important!
    // for certain scenarios items must be removed by GC first, and then be re-added to to Index Queue
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Register frontend plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'pi1', 'Marksale');
// Add static TypoScript template
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Marksale');
示例#7
0
<?php

defined('TYPO3_MODE') or die;
if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    // Module Web->View
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('TYPO3.CMS.' . $_EXTKEY, 'web', 'view', 'after:layout', array('ViewModule' => 'show'), array('icon' => 'EXT:viewpage/Resources/Public/Icons/module-viewpage.png', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf', 'access' => 'user,group'));
}
示例#8
0
<?php

/** @var string $_EXTKEY */
$loader = array('SmartObjects', 'ExtensionTypoScriptSetup', 'ContextSensitiveHelps', 'FlexForms', 'StaticTyposcript', 'ExtensionId');
\HDNET\Autoloader\Loader::extTables('HDNET', 'faq', $loader);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Faq', 'FAQ');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'FaqTeaser', 'FAQ Teaser');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'FaqEnter', 'FAQ Eingabe');
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][$_EXTKEY]['0'] = 'LLL:EXT:faq/Resources/Private/Language/locallang.xml:sysfolder';
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][$_EXTKEY]['1'] = $_EXTKEY;
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-faq', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/QuestionFolder.png');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
mod {
	wizards.newContentElement.wizardItems.plugins {
		elements {
			faq {
				icon = EXT:faq/Resources/Public/Icons/Question.png
				title = FAQ
				description = Create FAQ Plugin to handle the FAQ output
				tt_content_defValues {
					CType = list
					list_type = faq_faq
				}
			}
		}
	}
}
');
示例#9
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// register plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'quickgooglemap', 'Quick Google Map');
// set locallang file
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cbgooglemaps', 'EXT:cbgooglemaps/Resources/Private/Language/locallang_csh_tx_cbgooglemaps.xml');
// add static template configuration
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Quick Google Maps');
// set plugin signature
$pluginSignature = str_replace('_', '', $_EXTKEY) . '_quickgooglemap';
// add some new fields by flexform definition
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
// define flexform file
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_quickgooglemap.xml');
// exclude some default backend fields, like: layout, select_key, pages and recursive
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,pages,recursive';
示例#10
0
<?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);
示例#11
0
<?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();
}
示例#12
0
 *
 *  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 2 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!
 */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('MaxServ.Parsedown', 'Markdown', 'LLL:EXT:parsedown/Resources/Private/Language/Tca.xlf:plugin.markdown');
$additionalColumns = array('tx_parsedown_content' => array('exclude' => 1, 'label' => 'LLL:EXT:parsedown/Resources/Private/Language/Tca.xlf:tt_content.tx_parsedown_content', 'config' => array('type' => 'text', 'cols' => '80', 'rows' => '15')), 'tx_parsedown_preview' => array('exclude' => 1, 'label' => 'LLL:EXT:parsedown/Resources/Private/Language/Tca.xlf:tt_content.tx_parsedown_preview', 'config' => array('type' => 'user', 'userFunc' => 'MaxServ\\Parsedown\\UserFunctions\\Tca->markdownPreview')));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $additionalColumns, 1, 'after:bodytext');
$GLOBALS['TCA']['tt_content']['types']['parsedown_markdown']['showitem'] = '
	--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,
	tx_parsedown_content,
	tx_parsedown_preview,
	--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.header;header,
	--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.appearance,
	--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.frames;frames,
	--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
	--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
	--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
	--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended,
	--div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories';
示例#13
0
<?php

defined('TYPO3_MODE') or die;
if (TYPO3_MODE === 'BE') {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('TYPO3.CMS.' . $_EXTKEY, 'tools', 'extensionmanager', '', array('List' => 'index,unresolvedDependencies,ter,showAllVersions,distributions', 'Action' => 'toggleExtensionInstallationState,installExtensionWithoutSystemDependencyCheck,removeExtension,downloadExtensionZip,downloadExtensionData', 'Configuration' => 'showConfigurationForm,save,saveAndClose', 'Download' => 'checkDependencies,installFromTer,installExtensionWithoutSystemDependencyCheck,installDistribution,updateExtension,updateCommentForUpdatableVersions', 'UpdateScript' => 'show', 'UpdateFromTer' => 'updateExtensionListFromTer', 'UploadExtensionFile' => 'form,extract', 'Distribution' => 'show'), array('access' => 'admin', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/module-extensionmanager.png', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'));
    // Register extension status report system
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['Extension Manager'][] = 'TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus';
}
// Register specific icon for update script button
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('update-script' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/Icons/ExtensionUpdateScript.png'), $_EXTKEY);
<?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';
<?php

if (!defined('TYPO3_MODE')) {
    throw new \Exception('Access denied.');
}
call_user_func(function ($extensionKey) {
    if (TYPO3_MODE === 'BE') {
        // Registering module.
        \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('Romm.' . $extensionKey, 'tools', 'Administration', '', array('Administration' => 'index,new,submit,processCopy,help', 'Duplication' => 'ajaxProcessDuplication'), array('access' => 'user,group', 'icon' => 'EXT:' . $extensionKey . '/ext_icon.png', 'labels' => 'LLL:EXT:' . $extensionKey . '/Resources/Private/Language/locallang_sitefactory.xlf'));
    }
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($extensionKey, 'Configuration/TypoScript/Default', 'Site Factory - Default settings');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($extensionKey, 'Configuration/TypoScript/FieldsExample', 'Site Factory - Fields example');
    // Extending locallang files.
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:' . $extensionKey . '/Resources/Private/Language/locallang.xlf'] = array('EXT:' . $extensionKey . '/Resources/Private/Language/FineUploader.xlf', 'EXT:' . $extensionKey . '/Resources/Private/Language/FieldsLocallang.xlf');
}, $_EXTKEY);
示例#16
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Rattazonk.' . $_EXTKEY, 'Display', array('Form' => 'show'), array('Form' => 'show'));
示例#17
0
<?php

defined('TYPO3_MODE') || die('Access denied.');
call_user_func(function ($extKey) {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('FIXTURE.TestExtension', 'Testplugin', 'Test plugin');
    if (TYPO3_MODE === 'BE') {
        \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('FIXTURE.TestExtension', 'web', 'testmodule1', '', ['Main' => 'list, show, new, create, edit, update, delete'], ['access' => 'user,group', 'icon' => 'EXT:' . $extKey . '/ext_icon.gif', 'labels' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_testmodule1.xlf']);
    }
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($extKey, 'Configuration/TypoScript', 'ExtensionBuilder Test Extension');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_testextension_domain_model_main', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_main.xlf');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_testextension_domain_model_main');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_testextension_domain_model_child1', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_child1.xlf');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_testextension_domain_model_child1');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_testextension_domain_model_child2', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_child2.xlf');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_testextension_domain_model_child2');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_testextension_domain_model_child3', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_child3.xlf');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_testextension_domain_model_child3');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_testextension_domain_model_child4', 'EXT:test_extension/Resources/Private/Language/locallang_csh_tx_testextension_domain_model_child4.xlf');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_testextension_domain_model_child4');
}, $_EXTKEY);
示例#18
0
<?php

defined('TYPO3_MODE') or die;
// Register "old" FE plugin and hide layout, select_key and pages fields in BE
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:indexed_search/locallang.xlf:mod_indexed_search', 'indexed_search'), 'list_type', 'indexed_search');
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['indexed_search'] = 'layout,select_key,pages';
// Registers "new" extbase based FE plugin and hide layout, select_key, pages and recursive fields in BE
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('indexed_search', 'Pi2', 'Indexed Search (experimental)');
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['indexedsearch_pi2'] = 'layout,select_key,pages,recursive';
示例#19
0
 /**
  * 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']);
     }
 }
示例#20
0
<?php

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Ds.' . $_EXTKEY, 'crud', ['User' => 'register,create,login,authenticate'], ['User' => 'register,create,login']);
示例#21
0
<?php

defined('TYPO3_MODE') or die;
// Avoid that this block is loaded in frontend or within upgrade wizards
if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('TYPO3.CMS.' . $_EXTKEY, 'help', 'aboutmodules', 'after:about', array('Modules' => 'index'), array('access' => 'user,group', 'icon' => 'EXT:aboutmodules/Resources/Public/Icons/module-aboutmodules.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'));
}
示例#22
0
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/**
 * Get configuration from extension manager
 */
$confArr = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['femanager']);
/**
 * FE Plugin
 */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Pi1', 'FE_Manager');
/**
 * Include Backend Module
 */
if (TYPO3_MODE === 'BE' && !$confArr['disableModule'] && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('In2.' . $_EXTKEY, 'web', 'm1', '', array('UserBackend' => 'list,userLogout'), array('access' => 'user,group', 'icon' => 'EXT:' . $_EXTKEY . '/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'));
}
/**
 * Static TypoScript
 */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Main', 'Main Settings');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Layout', 'Add Layout CSS');
/**
 * Flexform
 */
$pluginSignature = str_replace('_', '', $_EXTKEY) . '_pi1';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/FlexFormPi1.xml');
/**
 * Load UserFunc for FlexForm Field selection
 */
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
 */
示例#24
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE === 'BE') {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('TYPO3.CMS.' . $_EXTKEY, 'tools', 'txreportsM1', '', array('Report' => 'index,detail'), array('access' => 'admin', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/moduleicon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf'));
    $statusReport = array('title' => 'LLL:EXT:reports/reports/locallang.xml:status_report_title', 'description' => 'LLL:EXT:reports/reports/locallang.xml:status_report_description', 'report' => 'TYPO3\\CMS\\Reports\\Report\\Status\\Status');
    if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'])) {
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] = array();
    }
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] = array_merge($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'], $statusReport);
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['typo3'][] = 'TYPO3\\CMS\\Reports\\Report\\Status\\Typo3Status';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['system'][] = 'TYPO3\\CMS\\Reports\\Report\\Status\\SystemStatus';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['security'][] = 'TYPO3\\CMS\\Reports\\Report\\Status\\SecurityStatus';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['configuration'][] = 'TYPO3\\CMS\\Reports\\Report\\Status\\ConfigurationStatus';
}
    $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);
#
示例#26
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');
示例#27
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Lobcher.' . $_EXTKEY, 'Bloglisting', 'Simpleblog - Bloglisting');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Simple Blog Extension');
示例#28
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Register backend modules, but not in frontend or within upgrade wizards
if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    // Module Web->Info->Log
    \TYPO3\CMS\Core\Extension\ExtensionManager::insertModuleFunction('web_info', 'TYPO3\\CMS\\Belog\\Module\\BackendLogModuleBootstrap', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'Classes/class.tx_belog_webinfo_bootstrap.php', 'Log');
    // Module Tools->Log
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($_EXTKEY, 'tools', 'log', '', array('Tools' => 'index', 'WebInfo' => 'index'), array('access' => 'admin', 'icon' => 'EXT:belog/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'));
}
示例#29
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    \EBT\ExtensionBuilder\Parser\AutoLoader::register();
    /**
     * Register Backend Module
     */
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('EBT.' . $_EXTKEY, 'tools', 'extensionbuilder', '', array('BuilderModule' => 'index,domainmodelling,dispatchRpc'), array('access' => 'user,group', 'icon' => 'EXT:extension_builder/ext_icon.gif', 'labels' => 'LLL:EXT:extension_builder/Resources/Private/Language/locallang_mod.xlf'));
    // \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler(
    //     'ExtensionBuilder::wiringEditorSmdEndpoint',
    //	   'EBT\ExtensionBuilder\Configuration\ConfigurationManager->getWiringEditorSmd'
    // );
    // To stay compatible with older TYPO3 versions, we register the ajax script the
    // old way. It is also OK to not have this Ajax call to be CSRF protected as it
    // is of no use for an attacker in this scenario even if the result contains the
    // module token.
    $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['ExtensionBuilder::wiringEditorSmdEndpoint'] = '' . 'EBT\\ExtensionBuilder\\Configuration\\ConfigurationManager->getWiringEditorSmd';
}
示例#30
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'));