TYPO3 CMS  TYPO3_6-2
RemoveUserViewHelper.php
Go to the documentation of this file.
1 <?php
3 
21 
28  public function render(\TYPO3\CMS\Beuser\Domain\Model\BackendUser $backendUser) {
29  if ($backendUser->getUid() == $GLOBALS['BE_USER']->user['uid']) {
30  return '';
31  }
32 
33  $redirectUrl = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('REQUEST_URI');
34  $parameters = 'cmd[be_users][' . $backendUser->getUid() . '][delete]=1';
35  $url = $GLOBALS['BACK_PATH'] . 'tce_db.php?&' . $parameters . '&redirect=' . ($redirectUrl == '' ? '\' + T3_THIS_LOCATION + \'' : rawurlencode($redirectUrl)) . '&vC=' . rawurlencode($GLOBALS['BE_USER']->veriCode()) . \TYPO3\CMS\Backend\Utility\BackendUtility::getUrlToken('tceAction') . '&prErr=1&uPT=1';
36  return '<a href="' . $url . '" onclick="return confirm(' . \TYPO3\CMS\Core\Utility\GeneralUtility::quoteJSvalue(\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('confirm', 'beuser', array($backendUser->getUserName()))) . ')">' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon(('actions-edit-delete')) . '</a>';
37  }
38 
39 }
$parameters
Definition: FileDumpEID.php:15
render(\TYPO3\CMS\Beuser\Domain\Model\BackendUser $backendUser)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]