00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00055 class tx_beuser {
00056
00067 function main(&$backRef,$menuItems,$table,$uid) {
00068 global $BE_USER,$TCA,$LANG;
00069
00070 $localItems = array();
00071
00072
00073 if ($BE_USER->isAdmin() && !$backRef->cmLevel && $table == 'be_users') {
00074
00075
00076 $url = t3lib_extMgm::extRelPath('beuser').'mod/index.php?SwitchUser='.rawurlencode($uid).'&switchBackUser=1';
00077 $localItems[] = $backRef->linkItem(
00078 'Switch To User',
00079 $backRef->excludeIcon('<img '.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/su_back.gif').' border="0" align="top" title="" alt="" />'),
00080 $backRef->urlRefForCM($url,'',1,'top'),
00081 1
00082 );
00083
00084 $menuItems=array_merge($menuItems,$localItems);
00085 }
00086 return $menuItems;
00087 }
00088
00094 function includeLL() {
00095 global $LANG;
00096
00097 $LOCAL_LANG = $LANG->includeLLFile('EXT:extra_page_cm_options/locallang.php',FALSE);
00098 return $LOCAL_LANG;
00099 }
00100 }
00101
00102 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/extra_page_cm_options/class.tx_extrapagecmoptions.php']) {
00103 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/extra_page_cm_options/class.tx_extrapagecmoptions.php']);
00104 }
00105 ?>