2 namespace TYPO3\CMS\Backend;
92 if (isset($this->extAdminConfig[
'enable.'])) {
93 foreach ($this->extAdminConfig[
'enable.'] as $value) {
96 $this->extAdmEnabled =
true;
111 foreach ($this->extAdminConfig[
'enable.'] as $value) {
113 if (
$GLOBALS[
'TSFE'] instanceof \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController) {
115 $pageTSConfig =
$GLOBALS[
'TSFE']->getPagesTSconfig();
116 $controllerKey = isset($pageTSConfig[
'TSFE.'][
'frontendEditingController'])
117 ? $pageTSConfig[
'TSFE.'][
'frontendEditingController']
120 $controllerKey =
'default';
122 $controllerClass =
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
't3lib/class.t3lib_tsfebeuserauth.php'][
'frontendEditingController'][$controllerKey];
123 if ($controllerClass) {
139 return $this->extAdmEnabled && (
140 $this->adminPanel->isAdminModuleEnabled(
'edit') ||
141 $GLOBALS[
'TSFE']->displayEditIcons == 1 ||
142 $GLOBALS[
'TSFE']->displayFieldEditIcons == 1
153 return $this->adminPanel->display();
163 return $this->extAdmEnabled && !$this->extAdminConfig[
'hide'] &&
$GLOBALS[
'TSFE']->config[
'config'][
'admPanel'];
180 if (
$GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'adminOnly'] < 0) {
184 if (trim(
$GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'IPmaskList'])) {
234 $depth = (int)$depth;
235 $begin = (int)$begin;
238 if (
$id && $depth > 0) {
239 $where =
'pid=' .
$id .
' AND doktype IN (' .
$GLOBALS[
'TYPO3_CONF_VARS'][
'FE'][
'content_doktypes']
240 .
') AND deleted=0 AND ' . $perms_clause;
241 $res = $this->db->exec_SELECTquery(
'uid,title',
'pages', $where);
242 while (($row = $this->db->sql_fetch_assoc($res))) {
244 $theList .= $row[
'uid'] .
',';
245 $this->extPageInTreeInfo[] = array($row[
'uid'], htmlspecialchars($row[
'title'], $depth));
248 $theList .= $this->
extGetTreeList($row[
'uid'], $depth - 1, $begin - 1, $perms_clause);
251 $this->db->sql_free_result($res);
262 public function extGetNumberOfCachedPages($pageId)
266 $pageCacheEntries = $pageCache->getByTag(
'pageId_' . (
int)$pageId);
267 return count($pageCacheEntries);
287 if (!is_array(
$GLOBALS[
'LOCAL_LANG'])) {
289 if (!is_array(
$GLOBALS[
'LOCAL_LANG'])) {