Skip to content

Instantly share code, notes, and snippets.

@Tuurlijk
Created January 7, 2015 10:43
Show Gist options
  • Save Tuurlijk/8bf1b77f303f44c37bce to your computer and use it in GitHub Desktop.
Save Tuurlijk/8bf1b77f303f44c37bce to your computer and use it in GitHub Desktop.
Disable TYPO3 extension in production environment
if (!empty($_SERVER['CONTEXT'])) {
if (TYPO3_MODE == 'FE' && $_SERVER['CONTEXT'] === 'Production') {
// Avoid cookie set by session_start in rsaauth
if (isset($TYPO3_CONF_VARS['EXT']['ignoredExt'])) {
$TYPO3_CONF_VARS['EXT']['ignoredExt'] .= ',rsaauth';
} else {
$TYPO3_CONF_VARS['EXT']['ignoredExt'] = 'rsaauth';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment