2 namespace TYPO3\CMS\Rsaauth;
31 $backend = \TYPO3\CMS\Rsaauth\Backend\BackendFactory::getBackend();
32 if ($backend instanceof \TYPO3\CMS\Rsaauth\Backend\CommandLineBackend) {
35 $warnings[
'rsaauth_cmdline'] =
$lang->sL(
'LLL:EXT:rsaauth/Resources/Private/Language/locallang.xlf:hook_using_cmdline');
37 $extconf = unserialize(
$GLOBALS[
'TYPO3_CONF_VARS'][
'EXT'][
'extConf'][
'rsaauth']);
38 $path = trim($extconf[
'temporaryDirectory']);
41 $warnings[
'rsaauth'] =
$lang->sL(
'LLL:EXT:rsaauth/Resources/Private/Language/locallang.xlf:hook_empty_directory');
44 $warnings[
'rsaauth'] =
$lang->sL(
'LLL:EXT:rsaauth/Resources/Private/Language/locallang.xlf:hook_directory_not_absolute');
45 }
elseif (!@is_dir($path)) {
47 $warnings[
'rsaauth'] =
$lang->sL(
'LLL:EXT:rsaauth/Resources/Private/Language/locallang.xlf:hook_directory_not_exist');
48 }
elseif (!@is_writable($path)) {
50 $warnings[
'rsaauth'] =
$lang->sL(
'LLL:EXT:rsaauth/Resources/Private/Language/locallang.xlf:hook_directory_not_writable');
51 }
elseif (substr($path, 0, strlen(PATH_site)) == PATH_site) {
53 $warnings[
'rsaauth'] =
$lang->sL(
'LLL:EXT:rsaauth/Resources/Private/Language/locallang.xlf:hook_directory_inside_siteroot');