Project

General

Profile

Bug #18116 ยป 20080204_remove_altmain.diff

Administrator Admin, 2008-02-04 19:17

View differences:

t3lib/class.t3lib_befunc.php (working copy)
}
return array('rows'=>$theRows,'list'=>$out);
}
/**
* Returns the name of the backend script relative to the TYPO3 main directory.
*
* @param string Optional name of the backend interface. If no interface is given, the interface for the current backend user is used.
* @return string
*/
public static function getBackendScript($interface = '') {
if(!$interface) {
$interface = $GLOBALS['BE_USER']->uc['interfaceSetup'];
}
switch($interface) {
case 'backend_old':
$script = 'alt_main.php';
break;
case 'frontend':
$script = '../.';
break;
case 'backend':
default:
$script = 'backend.php';
break;
}
return $script;
}
}
?>
t3lib/class.t3lib_tsfebeuserauth.php (working copy)
parent.opener.top.goToModule("'.$pageModule.'");
parent.opener.top.focus();
} else {
vHWin=window.open(\''.TYPO3_mainDir.'alt_main.php\',\''.md5('Typo3Backend-'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']).'\',\'status=1,menubar=1,scrollbars=1,resizable=1\');
vHWin=window.open(\''.TYPO3_mainDir.t3lib_BEfunc::getBackendInterface().'\',\''.md5('Typo3Backend-'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']).'\',\'status=1,menubar=1,scrollbars=1,resizable=1\');
vHWin.focus();
}
return false;
t3lib/class.t3lib_userauth.php (working copy)
if($GLOBALS['TYPO3_CONF_VARS']['BE']['lockSSL'] == 3 && $this->user_table == 'be_users') {
$requestStr = substr(t3lib_div::getIndpEnv('TYPO3_REQUEST_SCRIPT'), strlen(t3lib_div::getIndpEnv('TYPO3_SITE_URL').TYPO3_mainDir));
if($requestStr == 'alt_main.php' && t3lib_div::getIndpEnv('TYPO3_SSL')) {
$backendScript = t3lib_BEfunc::getBackendScript();
if($requestStr == $backendScript && t3lib_div::getIndpEnv('TYPO3_SSL')) {
list(,$url) = explode('://',t3lib_div::getIndpEnv('TYPO3_SITE_URL'),2);
header('Location: http://'.$url.TYPO3_mainDir.'alt_main.php');
header('Location: http://'.$url.TYPO3_mainDir.$backendScript);
exit;
}
}
typo3/alt_shortcut.php (working copy)
// Changing workspace and if so, reloading entire backend:
if (strlen($this->changeWorkspace)) {
$BE_USER->setWorkspace($this->changeWorkspace);
return $this->doc->wrapScriptTags('top.location.href="alt_main.php";');
return $this->doc->wrapScriptTags('top.location.href="'. t3lib_BEfunc::getBackendScript() . '";');
}
// Changing workspace and if so, reloading entire backend:
if (strlen($this->changeWorkspacePreview)) {
typo3/mod/user/ws/index.php (working copy)
if ($changeWorkspace != '') {
$BE_USER->setWorkspace($changeWorkspace);
$this->content = $this->doc->startPage($LANG->getLL('title'));
$this->content .= $this->doc->wrapScriptTags('top.location.href="' . $BACK_PATH . 'alt_main.php";');
$this->content .= $this->doc->wrapScriptTags('top.location.href="' . $BACK_PATH . t3lib_BEfunc::getBackendScript() . '";');
}
else {
// Starting page:
    (1-1/1)