*/ class ElementBrowserFramesetController { /** * Internal, dynamic * * @var string */ public $content; /** * Main function. * Creates the header code in XHTML, the JavaScript, then the frameset for the two frames. * * @return void */ public function main() { // Setting GPvars: $mode = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('mode'); $bparams = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('bparams'); $moduleUrl = BackendUtility::getModuleUrl('wizard_element_browser') . '&mode='; $GLOBALS['TBE_TEMPLATE']->JScode = $GLOBALS['TBE_TEMPLATE']->wrapScriptTags(' function closing() { // close(); } function setParams(mode,params) { // parent.content.location.href = ' . GeneralUtility::quoteJSvalue($moduleUrl) . '+mode+"&bparams="+params; } if (!window.opener) { alert("ERROR: Sorry, no link to main window... Closing"); close(); } '); // build the header part $GLOBALS['TBE_TEMPLATE']->startPage($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:TYPO3_Element_Browser')); // URL for the inner main frame: $url = $GLOBALS['BACK_PATH'] . $moduleUrl . rawurlencode($mode) . '&bparams=' . rawurlencode($bparams); // Create the frameset for the window // Formerly there were a ' onunload="closing();"' in the