function setzeFeUserLinks() { require_once PATH_tslib . 'class.tslib_fe.php'; require_once PATH_t3lib . 'class.t3lib_cs.php'; require_once PATH_tslib . 'class.tslib_content.php'; require_once PATH_t3lib . 'class.t3lib_tstemplate.php'; require_once PATH_t3lib . 'class.t3lib_page.php'; $TSFEclassName = t3lib_div::makeInstanceClassName('tslib_fe'); if (!is_object($GLOBALS['TT'])) { $GLOBALS['TT'] = new t3lib_timeTrack(); $GLOBALS['TT']->start(); } $GLOBALS['TSFE'] = new $TSFEclassName($GLOBALS['TYPO3_CONF_VARS'], $this->pid, '0', 1, '', '', '', ''); $GLOBALS['TSFE']->connectToMySQL(); $GLOBALS['TSFE']->initFEuser(); $GLOBALS['TSFE']->fetch_the_id(); $GLOBALS['TSFE']->getPageAndRootline(); $GLOBALS['TSFE']->initTemplate(); $GLOBALS['TSFE']->tmpl->getFileName_backPath = PATH_site; $GLOBALS['TSFE']->forceTemplateParsing = 1; $GLOBALS['TSFE']->getConfigArray(); $cObj = t3lib_div::makeInstance('tslib_cObj'); $cObj->start(array(), ''); $urlParameters = array('L' => 0); $profilfelder = 'tx_hepersonen_akad_grad,username,first_name,last_name,tx_hepersonen_profilseite,tx_hepersonen_profildaten'; $profiltabelle = 'fe_users'; $benutzerGruppen = array('PROFESSOR', 'LB', 'MITARBEITER', 'PROJEKT-MA', 'HAUSMEISTER', 'SEKRETARIAT', 'LEITUNG', 'AUSZUBILDENDE'); $bedingungBenutzerGruppen = ' AND (' . tx_he_personen_util::gibBedingungBenutzergruppen($benutzerGruppen) . ') '; $profilbedingung = 'deleted=0 AND disable=0' . $bedingungBenutzerGruppen; $profilabfrage = $GLOBALS['TYPO3_DB']->exec_SELECTquery($profilfelder, $profiltabelle, $profilbedingung); while ($daten = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($profilabfrage)) { $linkUrl = $cObj->getTypoLink_URL($daten['tx_hepersonen_profilseite'], $urlParameters); $linkUrl = str_replace('.de/typo3/de', '.de/de', $linkUrl); $profil_array = unserialize($daten['tx_hepersonen_profildaten']); if (!is_array($profil_array)) { $profil_array = array(); $akadGrad = ''; } else { $akadGrad = $profil_array[prof_titel_liste]; if (empty($akadGrad)) { $akadGrad = $profil_array[akad_grad] . ' '; } else { $akadGrad .= ' '; } } $person = $akadGrad . $daten['first_name'] . ' ' . $daten['last_name']; $this->feUserLinks[$daten['username']] = '<a href="' . $linkUrl . '">' . $person . '</a>'; } }