Project

General

Profile

Feature #16920 » 0004886.patch

Administrator Admin, 2007-01-30 09:28

View differences:

typo3/alt_menu.php (Arbeitskopie)
$TBE_TEMPLATE->docType='xhtml_trans';
$TBE_TEMPLATE->divClass='vertical-menu';
$TBE_TEMPLATE->bodyTagAdditions = 'onload="top.restoreHighlightedModuleMenuItem()"';
$TBE_TEMPLATE->JScodeArray[] = "
function refresh_menu() { window.setTimeout('_refresh_menu();',0); }
function _refresh_menu() {
var r = new Date();
// randNum is useful so pagetree does not get cached in browser cache when refreshing
window.location.href = 'alt_menu.php?randNum='+r.getTime();
}
";
$this->content.=$TBE_TEMPLATE->startPage('Vertical Backend Menu');
$backPath = $GLOBALS['BACK_PATH'];
typo3/mod/tools/em/class.em_index.php (Arbeitskopie)
var $inst_keys = array(); // Storage of installed extensions
var $gzcompress = 0; // Is set true, if system support compression.
var $terConnection; // instance of TER connection handler
var $terConnection; // instance of TER connection handler
var $JScode; // JavaScript code to be forwared to $this->doc->JScode
// GPvars:
var $CMD = array(); // CMD array
......
function jumpToUrl(URL) { //
window.location.href = URL;
}
'.$this->JScode.'
');
$this->doc->form = '<form action="index.php" method="post" name="pageform">';
......
}
/**
* This method triggers a restart of this instance.
*
* @param array $getParams: Array of GET parameters to include
* @return void
*/
function restart($getParams=array()) {
// Handle GET parameters to include:
$params = t3lib_div::_GET();
foreach($getParams as $k => $v) {
if (strcmp($v,'')) {
$params[$k]=$v;
} else unset($params[$k]);
}
t3lib_div::_GETset($params);
// Reset content:
$this->content = '';
// Reload loaded extensions TCA, etc:
$this->refreshGlobalExtList();
// Restart like index.php would have done:
$this->init();
$this->checkExtObj();
$this->main();
$this->printContent();
}
/**
* This function is a copy of the same function in t3lib_SCbase with one modification:
* In contrast to t3lib_SCbase::handleExternalFunctionValue() this function merges the $this->extClassConf array
* instead of overwriting it. That was necessary for including the Kickstarter as a submodule into the 'singleDetails'
......
} else {
$vA = array('CMD'=>Array('showExt'=>$extKey));
}
// Determine if modules were affected:
$techInfo = $this->makeDetailedExtensionAnalysis($extKey, $list[$extKey]);
$changedModules = count($techInfo['moduleNames'])>0 ? true : false;
// Extension was installed stand-alone in a separate window:
if($this->CMD['standAlone'] || t3lib_div::_GP('standAlone')) {
$this->content .= 'Extension has been '.($this->CMD['load'] ? 'installed' : 'removed').'.<br /><br /><a href="javascript:opener.top.content.document.forms[0].submit();window.close();">Close window and recheck dependencies</a>';
if ($changedModules) {
$refreshMenu = 'opener.top.menu.refresh_menu();';
}
$this->content .= 'Extension has been '.($this->CMD['load'] ? 'installed' : 'removed').'.<br /><br /><a href="javascript:opener.top.content.document.forms[0].submit();'.$refreshMenu.'window.close();">Close window and recheck dependencies</a>';
// Modules were installed or remove, so we have to reload the menu frame:
} elseif($changedModules) {
$this->JScode = 'top.menu.refresh_menu();';
$this->restart($vA);
exit;
// No modules were affected:
} else {
header('Location: '.t3lib_div::linkThisScript($vA));
}
(1-1/3)