Bug #22701 ยป 14462.diff
t3lib/class.t3lib_befunc.php (working copy) | ||
---|---|---|
/**
|
||
* Returns the name of the backend script relative to the TYPO3 main directory.
|
||
*
|
||
* @param string Name of the backend interface (backend, backend_old, frontend) to look up the script name for. If no interface is given, the interface for the current backend user is used.
|
||
* @param string Name of the backend interface (backend, frontend) to look up the script name for. If no interface is given, the interface for the current backend user is used.
|
||
* @return string The name of the backend script relative to the TYPO3 main directory.
|
||
*/
|
||
public static function getBackendScript($interface = '') {
|
||
... | ... | |
}
|
||
switch ($interface) {
|
||
case 'backend_old':
|
||
$script = 'alt_main.php';
|
||
break;
|
||
case 'frontend':
|
||
$script = '../.';
|
||
break;
|
t3lib/class.t3lib_userauthgroup.php (working copy) | ||
---|---|---|
* @return boolean
|
||
*/
|
||
function mayMakeShortcut() {
|
||
// If the old BE is used (maybe with some parameters),
|
||
// check for options.enableShortcuts and options.shortcutFrame being set.
|
||
if (substr($this->getTSConfigVal('auth.BE.redirectToURL'), 0, 12) == 'alt_main.php') {
|
||
return $this->getTSConfigVal('options.enableShortcuts') &&
|
||
$this->getTSConfigVal('options.shortcutFrame') &&
|
||
!$this->getTSConfigVal('options.mayNotCreateEditShortcuts');
|
||
}
|
||
// If the new BE is used, don't check options.shortcutFrame,
|
||
// because this is not used there anymore.
|
||
else {
|
||
return $this->getTSConfigVal('options.enableShortcuts') &&
|
||
!$this->getTSConfigVal('options.mayNotCreateEditShortcuts');
|
||
}
|
||
return $this->getTSConfigVal('options.enableShortcuts') &&
|
||
!$this->getTSConfigVal('options.mayNotCreateEditShortcuts');
|
||
}
|
||
/**
|
t3lib/config_default.php (working copy) | ||
---|---|---|
),
|
||
'customPermOptions' => array(), // Array with sets of custom permission options. Syntax is; 'key' => array('header' => 'header string, language splitted', 'items' => array('key' => array('label, language splitted', 'icon reference', 'Description text, language splitted'))). Keys cannot contain ":|," characters.
|
||
'fileDenyPattern' => FILE_DENY_PATTERN_DEFAULT , // A perl-compatible regular expression (without delimiters!) that - if it matches a filename - will deny the file upload/rename or whatever in the webspace. For security reasons, files with multiple extensions have to be denied on an Apache environment with mod_alias, if the filename contains a valid php handler in an arbitary position. Also, ".htaccess" files have to be denied. Matching is done case-insensitive. Default value is stored in constant FILE_DENY_PATTERN_DEFAULT
|
||
'interfaces' => 'backend', // This determines which interface options is available in the login prompt and in which order (All options: ",backend,backend_old,frontend")
|
||
'interfaces' => 'backend', // This determines which interface options is available in the login prompt and in which order (All options: ",backend,frontend")
|
||
'useOnContextMenuHandler' => TRUE, // Boolean. If set, the context menus (clickmenus) in the backend are activated on right-click - although this is not a XHTML attribute!
|
||
'loginLabels' => 'Username|Password|Interface|Log In|Log Out|Backend,Front End,Traditional Backend|Administration Login on ###SITENAME###|(Note: Cookies and JavaScript must be enabled!)|Important Messages:|Your login attempt did not succeed. Make sure to spell your username and password correctly, including upper/lowercase characters.', // Language labels of the login prompt, separated with a pipe symbol (|). These should not be used anymore to change the labels since TYPO3 4.3, furthermore overload the labels with , see EXT:lang/locallang_login.xml for the used labels.
|
||
'loginNews' => array(), // In this array you can define news-items for the login screen. To this array, add arrays with assoc keys 'date', 'header', 'content' (HTML content) and for those appropriate value pairs
|
typo3/js/backend.js (working copy) | ||
---|---|---|
// backend.php
|
||
TYPO3BackendShortcutMenu.createShortcut('', moduleName, url);
|
||
}
|
||
if(top.shortcutFrame) {
|
||
// alt_main.php
|
||
var location = backPath + 'alt_shortcut.php?modName=' + moduleName + '&URL=' + url;
|
||
shortcutFrame.location.href = location;
|
||
}
|
||
}
|
||
}
|
||
}
|
typo3/jsfunc.tbe_editor.js (working copy) | ||
---|---|---|
*/
|
||
checkSubmit: function(sendAlert) {
|
||
var funcIndex, funcMax, funcRes;
|
||
if (TBE_EDITOR.backend_interface == "backend_old") {
|
||
if (TBE_EDITOR.checkLoginTimeout() && confirm(TBE_EDITOR.labels.refresh_login)) {
|
||
vHWin=window.open(TBE_EDITOR.backPath+'login_frameset.php?','relogin','height=300,width=400,status=0,menubar=0');
|
||
vHWin.focus();
|
||
return false;
|
||
}
|
||
}
|
||
var OK=1;
|
||
// $this->additionalJS_submit:
|
typo3/sysext/lang/locallang_login.xml (working copy) | ||
---|---|---|
<label index="availableInterfaces">Backend,Front End,Traditional Backend</label>
|
||
<label index="interface.backend">Backend</label>
|
||
<label index="interface.frontend">Frontend</label>
|
||
<label index="interface.backend_old">Traditional Backend</label>
|
||
<label index="headline">Login to the TYPO3 Backend on ###SITENAME###</label>
|
||
<label index="info.about">This is the backend login of TYPO3. You need username and password to access this administration interface. If you are a visitor of ###SITENAME###, please visit the public website: ###SITELINK###</label>
|
||
<label index="info.reset">Reset this form</label>
|
typo3/sysext/setup/ext_tables.php (working copy) | ||
---|---|---|
'label' => 'LLL:EXT:setup/mod/locallang.xml:condensedMode',
|
||
'csh' => 'condensedMode',
|
||
),
|
||
'noMenuMode' => array(
|
||
'type' => 'select',
|
||
'items' => array(
|
||
'0' => 'LLL:EXT:setup/mod/locallang.xml:noMenuMode_def',
|
||
'1' => 'LLL:EXT:setup/mod/locallang.xml:noMenuMode_sel',
|
||
'icons' => 'LLL:EXT:setup/mod/locallang.xml:noMenuMode_icons',
|
||
),
|
||
'label' => 'LLL:EXT:setup/mod/locallang.xml:noMenuMode',
|
||
'csh' => 'noMenuMode',
|
||
),
|
||
'startModule' => array(
|
||
'type' => 'select',
|
||
'itemsProcFunc' => 'SC_mod_user_setup_index->renderStartModuleSelect',
|
||
... | ... | |
),
|
||
),
|
||
'showitem' => '--div--;LLL:EXT:setup/mod/locallang.xml:personal_data,realName,email,emailMeAtLogin,password,password2,lang,
|
||
--div--;LLL:EXT:setup/mod/locallang.xml:opening,condensedMode,noMenuMode,startModule,thumbnailsByDefault,helpText,edit_showFieldHelp,titleLen,
|
||
--div--;LLL:EXT:setup/mod/locallang.xml:opening,condensedMode,startModule,thumbnailsByDefault,helpText,edit_showFieldHelp,titleLen,
|
||
--div--;LLL:EXT:setup/mod/locallang.xml:editFunctionsTab,edit_RTE,edit_wideDocument,edit_docModuleUpload,enableFlashUploader,resizeTextareas,resizeTextareas_MaxHeight,resizeTextareas_Flexible,disableCMlayers,copyLevels,recursiveDelete,
|
||
--div--;LLL:EXT:setup/mod/locallang.xml:adminFunctions,simulate,installToolEnableButton'
|
||
typo3/sysext/setup/mod/index.php (working copy) | ||
---|---|---|
}
|
||
return t3lib_BEfunc::cshItem('_MOD_user_setup', $str, $this->doc->backPath, '|', false, 'margin-bottom:0px;');
|
||
}
|
||
|
||
/**
|
||
* Returns array with fields defined in $GLOBALS['TYPO3_USER_SETTINGS']['showitem']
|
||
*
|
||
*
|
||
* @param void
|
||
* @return array array with fieldnames visible in form
|
||
*/
|
||
... | ... | |
// disable fields depended on settings
|
||
if (!$GLOBALS['TYPO3_CONF_VARS']['BE']['RTEenabled']) {
|
||
$fieldList = t3lib_div::rmFromList('edit_RTE', $fieldList);
|
||
}
|
||
if ($GLOBALS['BE_USER']->uc['interfaceSetup'] != 'backend_old') {
|
||
$fieldList = t3lib_div::rmFromList('noMenuMode', $fieldList);
|
||
}
|
||
$fieldArray = t3lib_div::trimExplode(',', $fieldList, TRUE);
|