Project

General

Profile

Feature #17998 ยป backend_default_switch.diff

Administrator Admin, 2008-01-15 18:17

View differences:

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' => '\.php$|\.php.$', // A regular expression that - if it matches a filename - will deny the file upload/rename or whatever in the webspace. Matching with eregi() (case-insensitive).
'interfaces' => 'backend', // This determines which interface options is available in the login prompt and in which order (All options: ",backend,frontend")
'interfaces' => 'backend', // This determines which interface options is available in the login prompt and in which order (All options: ",backend,backend_old,frontend")
'useOnContextMenuHandler' => 1, // 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|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.
'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.
'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
'XLLfile' => Array(), // For extension/overriding of the arrays in 'locallang' files in the backend. See 'Inside TYPO3' for more information.
'notificationPrefix' => '[TYPO3 Note]',
typo3/index.php (working copy)
var $commandLI; // Value of forms submit button for login.
// Internal, static:
var $redirectToURL; // Set to the redirect URL of the form (may be redirect_url or "alt_main.php")
var $redirectToURL; // Set to the redirect URL of the form (may be redirect_url or "backend.php")
var $L_vars; // Set to the labels used for the login screen.
// Internal, dynamic:
......
// Getting login labels:
$this->L_vars = explode('|',$TYPO3_CONF_VARS['BE']['loginLabels']);
// Setting the redirect URL to "alt_main.php" if no alternative input is given:
$this->redirectToURL = $this->redirect_url ? $this->redirect_url : 'alt_main.php';
// Setting the redirect URL to "backend.php" if no alternative input is given:
$this->redirectToURL = $this->redirect_url ? $this->redirect_url : 'backend.php';
// Logout?
if ($this->L=='OUT' && is_object($BE_USER)) {
......
// Based on specific setting of interface we set the redirect script:
switch ($this->GPinterface) {
case 'backend':
$this->redirectToURL = 'backend.php';
break;
case 'backend_old':
$this->redirectToURL = 'alt_main.php';
break;
case 'frontend':
......
if (count($parts)>1) { // Only if more than one interface is defined will we show the selector:
// Initialize:
$tempLabels=explode(',',$this->L_vars[5]);
$tempLabels=explode(',', $this->L_vars[5]);
$labels=array();
$labels['backend']=$tempLabels[0];
$labels['frontend']=$tempLabels[1];
$labels['backend'] = $tempLabels[0];
$labels['backend_old'] = $tempLabels[2];
$labels['frontend'] = $tempLabels[1];
$jumpScript=array();
$jumpScript['backend']='alt_main.php';
$jumpScript['frontend']='../';
$jumpScript['backend'] = 'backend.php';
$jumpScript['backend_old'] = 'alt_main.php';
$jumpScript['frontend'] = '../';
// Traverse the interface keys:
foreach($parts as $valueStr) {
    (1-1/1)