TYPO3 CMS  TYPO3_6-2
OpenidModuleSetup.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Openid;
3 
18 
25 
32  public function accessLevelCheck(array $config) {
33  $setupConfig = $GLOBALS['BE_USER']->getTSConfigProp('setup.fields');
34  if (isset($setupConfig['tx_openid_openid.']['disabled']) && $setupConfig['tx_openid_openid.']['disabled']) {
35  return FALSE;
36  }
37  return TRUE;
38  }
39 
47  public function renderOpenID(array $parameters, \TYPO3\CMS\Setup\Controller\SetupModuleController $parent) {
48  $openid = $GLOBALS['BE_USER']->user['tx_openid_openid'];
49  $add = htmlspecialchars(
50  $GLOBALS['LANG']->sL('LLL:EXT:openid/Resources/Private/Language/Wizard.xlf:addopenid')
51  );
52 
53  return '<input id="field_tx_openid_openid"' .
54  $GLOBALS['TBE_TEMPLATE']->formWidth(20) .
55  ' type="text" name="data[be_users][tx_openid_openid]"' .
56  ' value="' . htmlspecialchars($openid) . '" />' .
57  '&nbsp;&nbsp;<a href="#" onclick="' .
58  'vHWin=window.open(' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('wizard_openid') . '&P[itemName]=data%5Bbe_users%5D%5Btx_openid_openid%5D') .
59  ',null,\'width=600,height=400,status=0,menubar=0,scrollbars=0\');' .
60  'vHWin.focus();return false;' .
61  '">' .
62  '<img src="../typo3/sysext/openid/ext_icon.gif" alt="' . $add . '" title="' . $add . '"/>' .
63  '</a>';
64  }
65 
66 }
$parameters
Definition: FileDumpEID.php:15
static getModuleUrl($moduleName, $urlParameters=array(), $backPathOverride=FALSE, $returnAbsoluteUrl=FALSE)
renderOpenID(array $parameters, \TYPO3\CMS\Setup\Controller\SetupModuleController $parent)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]