Commit 09ddf99d authored by Wouter Wolters's avatar Wouter Wolters Committed by Anja Leichsenring
Browse files

[TASK] Change check for TYPO3_MODE

Change check for TYPO3_MODE:

if (!defined('TYPO3_MODE')) {
	die('Access denied.');
}

to

defined('TYPO3_MODE') or die();

Resolves: #60112
Releases: 6.3
Change-Id: I2b4493509c912f620a993dc4ba69c4449fcac04d
Reviewed-on: https://review.typo3.org/31338
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
parent da323455
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
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(
......
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
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(
......
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
defined('TYPO3_MODE') or die();
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
......
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
defined('TYPO3_MODE') or die();
if (TYPO3_MODE === 'BE') {
// Register record history module
......
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
defined('TYPO3_MODE') or die();
// Register backend modules, but not in frontend or within upgrade wizards
if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
......
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
defined('TYPO3_MODE') or die();
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][] = 'TYPO3\\CMS\\Beuser\\Hook\\SwitchBackUserHook->switchBack';
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
defined('TYPO3_MODE') or die();
if (TYPO3_MODE === 'BE') {
// Module Admin > Backend Users
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
......
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
defined('TYPO3_MODE') or die();
// Keep old code (pre-FAL) for installations that haven't upgraded yet.
// @deprecated since TYPO3 6.0, please remove at earliest in TYPO3 6.2
// existing installation - and files are merged, nothing to do
......
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
defined('TYPO3_MODE') or die();
// keep old code (pre-FAL) for installations that haven't upgraded yet. please remove this code in TYPO3 7.0
// @deprecated since TYPO3 6.0, please remove in TYPO3 7.0
// existing installation - and files are merged, nothing to do
......
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
options.saveDocView = 1
......
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
defined('TYPO3_MODE') or die();
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web', 'layout', 'top', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'layout/');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_layout', 'EXT:cms/locallang_csh_weblayout.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:cms/locallang_csh_webinfo.xlf');
......
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('fe_groups', 'EXT:context_help/locallang_csh_fe_groups.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('fe_users', 'EXT:context_help/locallang_csh_fe_users.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:context_help/locallang_csh_pages.xlf');
......
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_irretutorial_1ncsv_hotel');
$TCA['tx_irretutorial_1ncsv_hotel'] = array(
......
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_irretutorial_1nff_hotel');
$TCA['tx_irretutorial_1nff_hotel'] = array(
......
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
'pages',
......
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_irretutorial_mnasym_hotel');
$TCA['tx_irretutorial_mnasym_hotel'] = array(
......
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_irretutorial_mnattr_hotel');
$TCA['tx_irretutorial_mnattr_hotel'] = array(
......
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_irretutorial_mnmmasym_hotel');
$TCA['tx_irretutorial_mnmmasym_hotel'] = array(
......
<?php
defined('TYPO3_MODE') or die();
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_irretutorial_mnsym_hotel');
$TCA['tx_irretutorial_mnsym_hotel'] = array(
......@@ -12,7 +14,7 @@ $TCA['tx_irretutorial_mnsym_hotel'] = array(
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'sortby' => 'sorting',
'delete' => 'deleted',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden',
),
......@@ -33,7 +35,7 @@ $TCA['tx_irretutorial_mnsym_hotel'] = array(
$TCA['tx_irretutorial_mnsym_hotel_rel'] = array(
'ctrl' => array(
'title' => 'LLL:EXT:irre_tutorial/locallang_db.xml:tx_irretutorial_mnsym_hotel_rel',
'label' => 'uid',
'label' => 'uid',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
......
<?php
if (!defined ('TYPO3_MODE')) {
die('Access denied.');
}
defined('TYPO3_MODE') or die();
$TCA['tx_irretutorial_1ncsv_hotel'] = array(
'ctrl' => $TCA['tx_irretutorial_1ncsv_hotel']['ctrl'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment