65 if (
$GLOBALS[
'TYPO3_DB']->explainOutput == 0) {
67 $GLOBALS[
'TYPO3_DB']->explainOutput = 3;
71 $GLOBALS[
'TSFE']->displayFieldEditIcons = 1;
75 $this->ext_forcePreview = TRUE;
79 $this->ext_forcePreview = TRUE;
81 if (
$GLOBALS[
'TSFE']->forceTemplateParsing) {
82 $GLOBALS[
'TSFE']->set_no_cache(
'Admin Panel: Force template parsing', TRUE);
83 } elseif (
$GLOBALS[
'TSFE']->displayEditIcons) {
84 $GLOBALS[
'TSFE']->set_no_cache(
'Admin Panel: Display edit icons', TRUE);
85 } elseif (
$GLOBALS[
'TSFE']->displayFieldEditIcons) {
86 $GLOBALS[
'TSFE']->set_no_cache(
'Admin Panel: Display field edit icons', TRUE);
88 $GLOBALS[
'TSFE']->set_no_cache(
'Admin Panel: Display preview', TRUE);
99 if (!empty(
$GLOBALS[
'TBE_STYLES'][
'stylesheets'][
'admPanel'])) {
101 $result =
'<link rel="stylesheet" type="text/css" href="' . htmlspecialchars($stylesheet) .
'" />';
115 if ($key ===
'preview' && $this->ext_forcePreview) {
117 } elseif (!empty(
$GLOBALS[
'BE_USER']->extAdminConfig[
'enable.'][
'all'])) {
119 } elseif (!empty(
$GLOBALS[
'BE_USER']->extAdminConfig[
'enable.'][$key])) {
133 if (is_array($input)) {
135 $GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'] = array_merge(!is_array(
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig']) ? array() :
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'], $input);
137 unset(
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'action']);
140 $GLOBALS[
'BE_USER']->extPageInTreeInfo = array();
141 $theStartId = (int)$input[
'cache_clearCacheId'];
142 $GLOBALS[
'TSFE']->clearPageCacheContent_pidList(
$GLOBALS[
'BE_USER']->extGetTreeList($theStartId, $this->
extGetFeAdminValue(
'cache',
'clearCacheLevels'), 0,
$GLOBALS[
'BE_USER']->getPagePermsClause(1)) . $theStartId);
149 $GLOBALS[
'TSFE']->set_no_cache(
'Admin Panel: No Caching', TRUE);
168 $sectionName ===
'edit' && (
169 $val ===
'displayIcons' &&
$GLOBALS[
'BE_USER']->extAdminConfig[
'module.'][
'edit.'][
'forceDisplayIcons'] ||
170 $val ===
'displayFieldIcons' &&
$GLOBALS[
'BE_USER']->extAdminConfig[
'module.'][
'edit.'][
'forceDisplayFieldIcons'] ||
171 $val ===
'editNoPopup' &&
$GLOBALS[
'BE_USER']->extAdminConfig[
'module.'][
'edit.'][
'forceNoPopup']
178 if ($val && isset(
$GLOBALS[
'BE_USER']->extAdminConfig[
'override.'][$sectionName .
'.'][$val])) {
179 return $GLOBALS[
'BE_USER']->extAdminConfig[
'override.'][$sectionName .
'.'][$val];
181 if (isset(
$GLOBALS[
'BE_USER']->extAdminConfig[
'override.'][$sectionName])) {
182 return $GLOBALS[
'BE_USER']->extAdminConfig[
'override.'][$sectionName];
185 $returnValue = $val ?
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][$sectionName .
'_' . $val] : 1;
188 if ($sectionName ===
'preview' && $this->ext_forcePreview) {
189 return !$val ? TRUE : $returnValue;
202 $this->ext_forcePreview = TRUE;
212 return $GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'display_top'] &&
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'display_' . $key];
222 $GLOBALS[
'LANG']->includeLLFile(
'EXT:lang/locallang_tsfe.xlf');
223 $moduleContent = $footer =
'';
225 if (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'display_top']) {
242 if (is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'tslib/class.tslib_adminpanel.php'][
'extendAdminPanel'])) {
243 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'tslib/class.tslib_adminpanel.php'][
'extendAdminPanel'] as $classRef) {
246 throw new \UnexpectedValueException(
'$hookObject must implement interface TYPO3\\CMS\\Frontend\\View\\AdminPanelViewHookInterface', 1311942539);
248 $moduleContent .= $hookObject->extendAdminPanel($moduleContent, $this);
251 $row = $this->
extGetLL(
'adminPanelTitle') .
': <span class="typo3-adminPanel-beuser">' . htmlspecialchars(
$GLOBALS[
'BE_USER']->user[
'username']) .
'</span>';
252 $isVisible =
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'display_top'];
253 $cssClassName =
'typo3-adminPanel-panel-' . ($isVisible ?
'open' :
'closed');
254 $header =
'<tr class="typo3-adminPanel-header">' .
'<td colspan="2" id="typo3-adminPanel-header" class="' . $cssClassName .
'">' .
'<span class="typo3-adminPanel-header-title">' . $row .
'</span>' . $this->
linkSectionHeader(
'top',
'<span class="typo3-adminPanel-header-button"></span>',
'typo3-adminPanel-header-buttonWrapper') .
'<input type="hidden" name="TSFE_ADMIN_PANEL[display_top]" value="' .
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'display_top'] .
'" /></td>' .
'</tr>';
255 if ($moduleContent && $this->extNeedUpdate) {
256 $footer =
'<tr class="typo3-adminPanel-footer"> 258 <input class="typo3-adminPanel-update" type="submit" value="' . $this->
extGetLL(
'update') .
'" /> 266 $query .=
'<input type="hidden" name="TSFE_ADMIN_PANEL[DUMMY]" value="" />';
268 if ($key !=
'TSFE_ADMIN_PANEL') {
269 if (is_array($value)) {
272 $query .=
'<input type="hidden" name="' . htmlspecialchars($key) .
'" value="' . htmlspecialchars($value) .
'" />';
278 TYPO3 Admin panel start 280 <a id="TSFE_ADMIN"></a> 281 <form id="TSFE_ADMIN_PANEL_FORM" name="TSFE_ADMIN_PANEL_FORM" action="' . htmlspecialchars(
GeneralUtility::getIndpEnv(
'TYPO3_REQUEST_SCRIPT')) .
'#TSFE_ADMIN" method="get" onsubmit="document.forms.TSFE_ADMIN_PANEL_FORM[\'TSFE_ADMIN_PANEL[DUMMY]\'].value=Math.random().toString().substring(2,8)">' . $query .
'<table class="typo3-adminPanel">' . $header . $moduleContent . $footer .
'</table></form>';
282 if (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'display_top']) {
283 $out .=
'<script type="text/javascript" src="typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.evalfield.js"></script>';
285 var evalFunc = new evalFunc(); 286 // TSFEtypo3FormFieldSet() 287 function TSFEtypo3FormFieldSet(theField, evallist, is_in, checkbox, checkboxValue) { // 288 var theFObj = new evalFunc_dummy (evallist,is_in, checkbox, checkboxValue); 289 var theValue = document.TSFE_ADMIN_PANEL_FORM[theField].value; 290 if (checkbox && theValue==checkboxValue) { 291 document.TSFE_ADMIN_PANEL_FORM[theField+"_hr"].value=""; 293 document.TSFE_ADMIN_PANEL_FORM[theField+"_cb"].checked = ""; 295 document.TSFE_ADMIN_PANEL_FORM[theField+"_hr"].value = evalFunc.outputObjValue(theFObj, theValue); 296 if (document.TSFE_ADMIN_PANEL_FORM[theField+"_cb"]) { 297 document.TSFE_ADMIN_PANEL_FORM[theField+"_cb"].checked = "on"; 301 // TSFEtypo3FormFieldGet() 302 function TSFEtypo3FormFieldGet(theField, evallist, is_in, checkbox, checkboxValue, checkbox_off) { // 303 var theFObj = new evalFunc_dummy (evallist,is_in, checkbox, checkboxValue); 305 document.TSFE_ADMIN_PANEL_FORM[theField].value=checkboxValue; 307 document.TSFE_ADMIN_PANEL_FORM[theField].value = evalFunc.evalObjValue(theFObj, document.TSFE_ADMIN_PANEL_FORM[theField+"_hr"].value); 309 TSFEtypo3FormFieldSet(theField, evallist, is_in, checkbox, checkboxValue); 310 }') .
'/*]]>*/</script><script language="javascript" type="text/javascript">' . $this->extJSCODE .
'</script>';
312 $out .=
'<script src="' .
GeneralUtility::locationHeaderUrl(
'typo3/sysext/frontend/Resources/Public/JavaScript/AdminPanel.js') .
'" type="text/javascript"></script><script type="text/javascript">/*<![CDATA[*/' .
'typo3AdminPanel = new TYPO3AdminPanel();typo3AdminPanel.init("typo3-adminPanel-header", "TSFE_ADMIN_PANEL_FORM");' .
'/*]]>*/</script> 314 TYPO3 admin panel end 331 foreach ($val as $k => $v) {
335 $out .=
'<input type="hidden" name="' . htmlspecialchars($key) .
'[' . htmlspecialchars($k) .
']" value="' . htmlspecialchars($v) .
'">' . LF;
352 if (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'display_preview']) {
353 $this->extNeedUpdate = TRUE;
354 $out .= $this->
extGetItem(
'preview_showHiddenPages',
'',
'<input type="hidden" name="TSFE_ADMIN_PANEL[preview_showHiddenPages]" value="0" /><input type="checkbox" id="preview_showHiddenPages" name="TSFE_ADMIN_PANEL[preview_showHiddenPages]" value="1"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'preview_showHiddenPages'] ?
' checked="checked"' :
'') .
' />');
355 $out .= $this->
extGetItem(
'preview_showHiddenRecords',
'',
'<input type="hidden" name="TSFE_ADMIN_PANEL[preview_showHiddenRecords]" value="0" /><input type="checkbox" id="preview_showHiddenRecords" name="TSFE_ADMIN_PANEL[preview_showHiddenRecords]" value="1"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'preview_showHiddenRecords'] ?
' checked="checked"' :
'') .
' />');
357 $out .= $this->
extGetItem(
'preview_simulateDate',
'<input type="text" id="preview_simulateDate" name="TSFE_ADMIN_PANEL[preview_simulateDate]_hr" onchange="TSFEtypo3FormFieldGet(\'TSFE_ADMIN_PANEL[preview_simulateDate]\', \'datetime\', \'\', 1,0);" /><input type="hidden" name="TSFE_ADMIN_PANEL[preview_simulateDate]" value="' .
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'preview_simulateDate'] .
'" />');
358 $this->extJSCODE .=
'TSFEtypo3FormFieldSet("TSFE_ADMIN_PANEL[preview_simulateDate]", "datetime", "", 0, 0);';
363 $res =
$GLOBALS[
'TYPO3_DB']->exec_SELECTquery(
364 'fe_groups.uid, fe_groups.title',
368 'fe_groups.title ASC' 370 while ($row =
$GLOBALS[
'TYPO3_DB']->sql_fetch_assoc($res)) {
371 $options .=
'<option value="' . $row[
'uid'] .
'"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'preview_simulateUserGroup'] == $row[
'uid'] ?
' selected="selected"' :
'') .
'>' . htmlspecialchars(($row[
'title'] .
' [' . $row[
'uid'] .
']')) .
'</option>';
373 $GLOBALS[
'TYPO3_DB']->sql_free_result($res);
375 $options =
'<option value="0"> </option>' . $options;
376 $out .= $this->
extGetItem(
'preview_simulateUserGroup',
'<select id="preview_simulateUserGroup" name="TSFE_ADMIN_PANEL[preview_simulateUserGroup]">' . $options .
'</select>');
390 if (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'display_cache']) {
391 $this->extNeedUpdate = TRUE;
392 $out .= $this->
extGetItem(
'cache_noCache',
'',
'<input type="hidden" name="TSFE_ADMIN_PANEL[cache_noCache]" value="0" /><input id="cache_noCache" type="checkbox" name="TSFE_ADMIN_PANEL[cache_noCache]" value="1"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'cache_noCache'] ?
' checked="checked"' :
'') .
' />');
393 $levels =
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'cache_clearCacheLevels'];
395 $options .=
'<option value="0"' . ($levels == 0 ?
' selected="selected"' :
'') .
'>' . $this->
extGetLL(
'div_Levels_0') .
'</option>';
396 $options .=
'<option value="1"' . ($levels == 1 ?
' selected="selected"' :
'') .
'>' . $this->
extGetLL(
'div_Levels_1') .
'</option>';
397 $options .=
'<option value="2"' . ($levels == 2 ?
' selected="selected"' :
'') .
'>' . $this->
extGetLL(
'div_Levels_2') .
'</option>';
398 $out .= $this->
extGetItem(
'cache_clearLevels',
'<select id="cache_clearLevels" name="TSFE_ADMIN_PANEL[cache_clearCacheLevels]">' . $options .
'</select>' .
'<input type="hidden" name="TSFE_ADMIN_PANEL[cache_clearCacheId]" value="' .
$GLOBALS[
'TSFE']->
id .
'" /> <input type="submit" value="' . $this->
extGetLL(
'update') .
'" />');
402 $GLOBALS[
'BE_USER']->extPageInTreeInfo = array();
403 $GLOBALS[
'BE_USER']->extPageInTreeInfo[] = array(
$GLOBALS[
'TSFE']->page[
'uid'], htmlspecialchars(
$GLOBALS[
'TSFE']->page[
'title']), $depth + 1);
405 foreach (
$GLOBALS[
'BE_USER']->extPageInTreeInfo as $row) {
406 $outTable .=
'<tr>' .
'<td><img src="typo3/gfx/clear.gif" width="' . ($depth + 1 - $row[2]) * 18 .
'" height="1" alt="" /><img ' .
IconUtility::skinImg(TYPO3_mainDir,
'gfx/i/pages.gif',
'width="18" height="16"') .
' align="top" alt="" /> ' . htmlspecialchars($row[1]) .
'</td><td>' .
$GLOBALS[
'BE_USER']->extGetNumberOfCachedPages($row[0]) .
'</td></tr>';
408 $outTable =
'<br /><table>' . $outTable .
'</table>';
409 $outTable .=
'<input type="submit" name="TSFE_ADMIN_PANEL[action][clearCache]" value="' . $this->
extGetLL(
'cache_doit') .
'" />';
410 $out .= $this->
extGetItem(
'cache_cacheEntries', $outTable);
423 if (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'display_edit']) {
425 $newPageModule = trim(
$GLOBALS[
'BE_USER']->getTSConfigVal(
'options.overridePageModule'));
427 $this->extNeedUpdate = TRUE;
428 $out .= $this->
extGetItem(
'edit_displayFieldIcons',
'',
'<input type="hidden" name="TSFE_ADMIN_PANEL[edit_displayFieldIcons]" value="0" /><input type="checkbox" id="edit_displayFieldIcons" name="TSFE_ADMIN_PANEL[edit_displayFieldIcons]" value="1"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'edit_displayFieldIcons'] ?
' checked="checked"' :
'') .
' />');
429 $out .= $this->
extGetItem(
'edit_displayIcons',
'',
'<input type="hidden" name="TSFE_ADMIN_PANEL[edit_displayIcons]" value="0" /><input type="checkbox" id="edit_displayIcons" name="TSFE_ADMIN_PANEL[edit_displayIcons]" value="1"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'edit_displayIcons'] ?
' checked="checked"' :
'') .
' />');
432 $out .= $this->
extGetItem(
'',
'<a href="#" onclick="' . htmlspecialchars((
' 433 if (parent.opener && parent.opener.top && parent.opener.top.TS) { 434 parent.opener.top.fsMod.recentIds["web"]=' . (
int)
$GLOBALS[
'TSFE']->page[
'uid'] .
'; 435 if (parent.opener.top.content && parent.opener.top.content.nav_frame && parent.opener.top.content.nav_frame.refresh_nav) { 436 parent.opener.top.content.nav_frame.refresh_nav(); 438 parent.opener.top.goToModule("' . $pageModule .
'"); 439 parent.opener.top.focus(); 441 vHWin=window.open(\'' . TYPO3_mainDir .
BackendUtility::getBackendScript() .
'\',\
'' . md5((
'Typo3Backend-' .
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'sitename'])) .
'\',\
'status=1,menubar=1,scrollbars=1,resizable=1\'); 445 ')) .
'">' . $this->
extGetLL(
'edit_openAB') .
'</a>');
459 if (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'display_tsdebug']) {
460 $this->extNeedUpdate = TRUE;
461 $out .= $this->
extGetItem(
'tsdebug_tree',
'',
'<input type="hidden" name="TSFE_ADMIN_PANEL[tsdebug_tree]" value="0" /><input type="checkbox" id="tsdebug_tree" name="TSFE_ADMIN_PANEL[tsdebug_tree]" value="1"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'tsdebug_tree'] ?
' checked="checked"' :
'') .
' />');
462 $out .= $this->
extGetItem(
'tsdebug_displayTimes',
'',
'<input type="hidden" name="TSFE_ADMIN_PANEL[tsdebug_displayTimes]" value="0" /><input id="tsdebug_displayTimes" type="checkbox" name="TSFE_ADMIN_PANEL[tsdebug_displayTimes]" value="1"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'tsdebug_displayTimes'] ?
' checked="checked"' :
'') .
' />');
463 $out .= $this->
extGetItem(
'tsdebug_displayMessages',
'',
'<input type="hidden" name="TSFE_ADMIN_PANEL[tsdebug_displayMessages]" value="0" /><input type="checkbox" id="tsdebug_displayMessages" name="TSFE_ADMIN_PANEL[tsdebug_displayMessages]" value="1"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'tsdebug_displayMessages'] ?
' checked="checked"' :
'') .
' />');
464 $out .= $this->
extGetItem(
'tsdebug_LR',
'',
'<input type="hidden" name="TSFE_ADMIN_PANEL[tsdebug_LR]" value="0" /><input type="checkbox" id="tsdebug_LR" name="TSFE_ADMIN_PANEL[tsdebug_LR]" value="1"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'tsdebug_LR'] ?
' checked="checked"' :
'') .
' />');
465 $out .= $this->
extGetItem(
'tsdebug_displayContent',
'',
'<input type="hidden" name="TSFE_ADMIN_PANEL[tsdebug_displayContent]" value="0" /><input type="checkbox" id="tsdebug_displayContent" name="TSFE_ADMIN_PANEL[tsdebug_displayContent]" value="1"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'tsdebug_displayContent'] ?
' checked="checked"' :
'') .
' />');
466 $out .= $this->
extGetItem(
'tsdebug_displayQueries',
'',
'<input type="hidden" name="TSFE_ADMIN_PANEL[tsdebug_displayQueries]" value="0" /><input type="checkbox" id="tsdebug_displayQueries" name="TSFE_ADMIN_PANEL[tsdebug_displayQueries]" value="1"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'tsdebug_displayQueries'] ?
' checked="checked"' :
'') .
' />');
467 $out .= $this->
extGetItem(
'tsdebug_forceTemplateParsing',
'',
'<input type="hidden" name="TSFE_ADMIN_PANEL[tsdebug_forceTemplateParsing]" value="0" /><input type="checkbox" id="tsdebug_forceTemplateParsing" name="TSFE_ADMIN_PANEL[tsdebug_forceTemplateParsing]" value="1"' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'tsdebug_forceTemplateParsing'] ?
' checked="checked"' :
'') .
' />');
473 $out .=
'<tr><td colspan="2">' .
$GLOBALS[
'TT']->printTSlog() .
'</td></tr>';
487 if (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'display_info']) {
492 if (count(
$GLOBALS[
'TSFE']->imagesOnPage)) {
493 $tableArr[] = array($this->
extGetLL(
'info_imagesOnPage'), count(
$GLOBALS[
'TSFE']->imagesOnPage), TRUE);
494 foreach (
$GLOBALS[
'TSFE']->imagesOnPage as $file) {
495 $fs = @filesize($file);
504 $tableArr[] = array(
'',
'');
508 $tableArr[] = array($this->
extGetLL(
'info_groupList'),
$GLOBALS[
'TSFE']->gr_list);
509 $tableArr[] = array($this->
extGetLL(
'info_noCache'), $this->
extGetLL(
'info_noCache_' . (
$GLOBALS[
'TSFE']->no_cache ?
'no' :
'yes')));
510 $tableArr[] = array($this->
extGetLL(
'info_countUserInt'), count(
$GLOBALS[
'TSFE']->config[
'INTincScript']));
512 if (!empty(
$GLOBALS[
'TSFE']->fe_user->user[
'uid'])) {
513 $tableArr[] = array($this->
extGetLL(
'info_feuserName'), htmlspecialchars(
$GLOBALS[
'TSFE']->fe_user->user[
'username']));
514 $tableArr[] = array($this->
extGetLL(
'info_feuserId'), htmlspecialchars(
$GLOBALS[
'TSFE']->fe_user->user[
'uid']));
516 $tableArr[] = array($this->
extGetLL(
'info_totalParsetime'),
$GLOBALS[
'TSFE']->scriptParseTime .
' ms', TRUE);
518 foreach ($tableArr as $key => $arr) {
519 $label = (isset($arr[2]) ?
'<strong>' . $arr[0] .
'</strong>' : $arr[0]);
520 $value = strlen($arr[1]) ? $arr[1] :
'';
522 '<tr class="typo3-adminPanel-itemRow ' . ($key % 2 == 0 ?
'line-even' :
'line-odd') .
'"> 523 <td class="typo3-adminPanel-section-content-title">' . $label .
'</td> 524 <td class="typo3-adminPanel-section-content">' . htmlspecialchars($value) .
'</td> 528 $out =
'<tr><td colspan="2"><table class="admin-panel-table">' . $out .
'</table></td></tr>';
548 $settingName =
'display_' . $sectionSuffix;
549 $isVisible =
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][$settingName];
550 $cssClassName =
'typo3-adminPanel-section-' . ($isVisible ?
'open' :
'closed');
551 return '<tr class="typo3-adminPanel-section-title"><td colspan="2">' . $this->
linkSectionHeader($sectionSuffix, $this->
extGetLL($sectionSuffix), $cssClassName) .
'<input type="hidden" name="TSFE_ADMIN_PANEL[' . $settingName .
']" value="' . $isVisible .
'" /></td></tr>';
564 $onclick =
'document.TSFE_ADMIN_PANEL_FORM[\'TSFE_ADMIN_PANEL[display_' . $sectionSuffix .
']\'].value=' . (
$GLOBALS[
'BE_USER']->uc[
'TSFE_adminConfig'][
'display_' . $sectionSuffix] ?
'0' :
'1') .
';document.TSFE_ADMIN_PANEL_FORM.submit();return false;';
565 $content =
'<div class="typo3-adminPanel-label"> 566 <a href="javascript:void(0)" onclick="' . htmlspecialchars($onclick) .
'"' . ($className ?
' class="' . htmlspecialchars($className) .
'"' :
'') .
'>' 583 public function extGetItem($title, $content =
'', $checkbox =
'') {
584 $title = $title ?
'<label for="' . htmlspecialchars($title) .
'">' . $this->
extGetLL($title) .
'</label>' :
'';
585 $out =
'<tr class="typo3-adminPanel-itemRow"> 586 <td class="typo3-adminPanel-section-content">' . $checkbox . $title . $content .
'</td> 599 $tsConfig = $tsConfig[
'properties'][
'newContentWiz.'][
'overrideWithExtension'];
602 $langAllowed =
$GLOBALS[
'BE_USER']->checkLanguageAccess(
$GLOBALS[
'TSFE']->sys_language_uid);
607 $toolBar =
'<a href="' . htmlspecialchars(TYPO3_mainDir .
BackendUtility::getModuleUrl(
'record_history', array(
'element' =>
'pages:' . $id)) . $returnUrl) .
'#latest">' . $icon .
'</a>';
608 if ($perms & 16 && $langAllowed) {
610 if (
$GLOBALS[
'TSFE']->sys_language_uid) {
611 $params =
'&sys_language_uid=' .
$GLOBALS[
'TSFE']->sys_language_uid;
614 $toolBar .=
'<a href="' . htmlspecialchars(($newContentWizScriptPath .
'?id=' . $id . $params .
'&returnUrl=' . $returnUrl)) .
'">' . $icon .
'</a>';
618 $toolBar .=
'<a href="' . htmlspecialchars((TYPO3_mainDir .
'move_el.php?table=pages&uid=' . $id .
'&returnUrl=' . $returnUrl)) .
'">' . $icon .
'</a>';
622 $toolBar .=
'<a href="' . htmlspecialchars((TYPO3_mainDir .
'db_new.php?id=' . $id .
'&pagesOnly=1&returnUrl=' . $returnUrl)) .
'">' . $icon .
'</a>';
625 $params =
'&edit[pages][' . $id .
']=edit';
627 $toolBar .=
'<a href="' . htmlspecialchars((TYPO3_mainDir .
'alt_doc.php?' . $params .
'&noView=1&returnUrl=' . $returnUrl)) .
'">' . $icon .
'</a>';
628 if (
$GLOBALS[
'TSFE']->sys_language_uid && $langAllowed) {
629 $row =
$GLOBALS[
'TYPO3_DB']->exec_SELECTgetSingleRow(
630 'uid,pid,t3ver_state',
631 'pages_language_overlay',
633 ' AND sys_language_uid=' .
$GLOBALS[
'TSFE']->sys_language_uid .
634 $GLOBALS[
'TSFE']->sys_page->enableFields(
'pages_language_overlay')
636 $GLOBALS[
'TSFE']->sys_page->versionOL(
'pages_language_overlay', $row);
637 if (is_array($row)) {
638 $params =
'&edit[pages_language_overlay][' . $row[
'uid'] .
']=edit';
640 $toolBar .=
'<a href="' . htmlspecialchars((TYPO3_mainDir .
'alt_doc.php?' . $params .
'&noView=1&returnUrl=' . $returnUrl)) .
'">' . $icon .
'</a>';
644 if (
$GLOBALS[
'BE_USER']->check(
'modules',
'web_list')) {
650 $toolBar .=
'<a href="' . htmlspecialchars((TYPO3_mainDir .
BackendUtility::getModuleUrl(
'web_list', $urlParams))) .
'">' . $icon .
'</a>';
653 $toolBar =
'<div class="toolbar">' . $toolBar .
'</div>';
665 protected function extGetLL($key, $convertWithHtmlspecialchars = TRUE) {
666 $labelStr =
$GLOBALS[
'LANG']->getLL($key);
667 if ($convertWithHtmlspecialchars) {
668 $labelStr = htmlspecialchars($labelStr);
static minifyJavaScript($script, &$error='')
static skinImg($backPath, $src, $wHattribs='', $outputMode=0)
static getModTSconfig($id, $TSref)
getHiddenFields($key, array $val)
linkSectionHeader($sectionSuffix, $sectionTitle, $className='')
static getIndpEnv($getEnvName)
static getUserObj($classRef, $checkPrefix='', $silent=FALSE)
extGetFeAdminValue($sectionName, $val='')
extGetItem($title, $content='', $checkbox='')
static getBackendScript($interface='')
static getModuleUrl($moduleName, $urlParameters=array(), $backPathOverride=FALSE, $returnAbsoluteUrl=FALSE)
isAdminModuleEnabled($key)
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
extGetLL($key, $convertWithHtmlspecialchars=TRUE)
static isLoaded($key, $exitOnError=FALSE)
static locationHeaderUrl($path)
static getSpriteIcon($iconName, array $options=array(), array $overlays=array())
static isModuleSetInTBE_MODULES($modName)
static formatSize($sizeInBytes, $labels='')
extGetHead($sectionSuffix)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static deleteClause($table, $tableAlias='')
getAdminPanelHeaderData()