Project

General

Profile

Bug #16526 » bug_4160.diff

Administrator Admin, 2007-04-18 15:26

View differences:

/typo3/sysext/cms/tslib/index_ts.php (working copy)
}
if ($BE_USER->checkLockToIP() && $BE_USER->checkBackendAccessSettingsFromInitPhp()) {
$BE_USER->extInitFeAdmin();
if ($BE_USER->extAdmEnabled) {
require_once(t3lib_extMgm::extPath('lang').'lang.php');
$LANG = t3lib_div::makeInstance('language');
$LANG->init($BE_USER->uc['lang']);
$BE_USER->extSaveFeAdminConfig();
// Setting some values based on the admin panel
$TSFE->forceTemplateParsing = $BE_USER->extGetFeAdminValue('tsdebug', 'forceTemplateParsing');
$TSFE->displayEditIcons = $BE_USER->extGetFeAdminValue('edit', 'displayIcons');
$TSFE->displayFieldEditIcons = $BE_USER->extGetFeAdminValue('edit', 'displayFieldIcons');
if (t3lib_div::_GP('ADMCMD_editIcons')) {
$TSFE->displayFieldEditIcons=1;
$BE_USER->uc['TSFE_adminConfig']['edit_editNoPopup']=1;
}
if (t3lib_div::_GP('ADMCMD_simUser')) {
$BE_USER->uc['TSFE_adminConfig']['preview_simulateUserGroup']=intval(t3lib_div::_GP('ADMCMD_simUser'));
$BE_USER->ext_forcePreview=1;
}
if (t3lib_div::_GP('ADMCMD_simTime')) {
$BE_USER->uc['TSFE_adminConfig']['preview_simulateDate']=intval(t3lib_div::_GP('ADMCMD_simTime'));
$BE_USER->ext_forcePreview=1;
}
// Include classes for editing IF editing module in Admin Panel is open
if (($BE_USER->extAdmModuleEnabled('edit') && $BE_USER->extIsAdmMenuOpen('edit')) || $TSFE->displayEditIcons == 1) {
$TSFE->includeTCA();
if ($BE_USER->extIsEditAction()) {
require_once (PATH_t3lib.'class.t3lib_tcemain.php');
$BE_USER->extEditAction();
}
if ($BE_USER->extIsFormShown()) {
require_once(PATH_t3lib.'class.t3lib_tceforms.php');
require_once(PATH_t3lib.'class.t3lib_iconworks.php');
require_once(PATH_t3lib.'class.t3lib_loaddbgroup.php');
require_once(PATH_t3lib.'class.t3lib_transferdata.php');
}
}
if ($TSFE->forceTemplateParsing || $TSFE->displayEditIcons || $TSFE->displayFieldEditIcons) { $TSFE->set_no_cache(); }
}
// $WEBMOUNTS = (string)($BE_USER->groupData['webmounts'])!='' ? explode(',',$BE_USER->groupData['webmounts']) : Array();
// $FILEMOUNTS = $BE_USER->groupData['filemounts'];
} else { // Unset the user initialization.
$BE_USER='';
$TSFE->beUserLogin=0;
......
$TSFE->clear_preview();
$TSFE->determineId();
}
if ($TSFE->beUserLogin && $BE_USER->extAdmEnabled) {
require_once(t3lib_extMgm::extPath('lang').'lang.php');
$LANG = t3lib_div::makeInstance('language');
$LANG->init($BE_USER->uc['lang']);
$BE_USER->extSaveFeAdminConfig();
// Setting some values based on the admin panel
$TSFE->forceTemplateParsing = $BE_USER->extGetFeAdminValue('tsdebug', 'forceTemplateParsing');
$TSFE->displayEditIcons = $BE_USER->extGetFeAdminValue('edit', 'displayIcons');
$TSFE->displayFieldEditIcons = $BE_USER->extGetFeAdminValue('edit', 'displayFieldIcons');
if (t3lib_div::_GP('ADMCMD_editIcons')) {
$TSFE->displayFieldEditIcons=1;
$BE_USER->uc['TSFE_adminConfig']['edit_editNoPopup']=1;
}
if (t3lib_div::_GP('ADMCMD_simUser')) {
$BE_USER->uc['TSFE_adminConfig']['preview_simulateUserGroup']=intval(t3lib_div::_GP('ADMCMD_simUser'));
$BE_USER->ext_forcePreview=1;
}
if (t3lib_div::_GP('ADMCMD_simTime')) {
$BE_USER->uc['TSFE_adminConfig']['preview_simulateDate']=intval(t3lib_div::_GP('ADMCMD_simTime'));
$BE_USER->ext_forcePreview=1;
}
// Include classes for editing IF editing module in Admin Panel is open
if (($BE_USER->extAdmModuleEnabled('edit') && $BE_USER->extIsAdmMenuOpen('edit')) || $TSFE->displayEditIcons == 1) {
$TSFE->includeTCA();
if ($BE_USER->extIsEditAction()) {
require_once (PATH_t3lib.'class.t3lib_tcemain.php');
$BE_USER->extEditAction();
}
if ($BE_USER->extIsFormShown()) {
require_once(PATH_t3lib.'class.t3lib_tceforms.php');
require_once(PATH_t3lib.'class.t3lib_iconworks.php');
require_once(PATH_t3lib.'class.t3lib_loaddbgroup.php');
require_once(PATH_t3lib.'class.t3lib_transferdata.php');
}
}
if ($TSFE->forceTemplateParsing || $TSFE->displayEditIcons || $TSFE->displayFieldEditIcons) { $TSFE->set_no_cache(); }
}
// $WEBMOUNTS = (string)($BE_USER->groupData['webmounts'])!='' ? explode(',',$BE_USER->groupData['webmounts']) : Array();
// $FILEMOUNTS = $BE_USER->groupData['filemounts'];
$TSFE->makeCacheHash();
$TT->pull();
(4-4/4)