00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00049 require ('init.php');
00050 require ('template.php');
00051
00052
00053
00054
00055
00056
00057
00058
00066 class SC_browser {
00067
00068
00069 var $content;
00070
00077 function main() {
00078
00079
00080 $mode =t3lib_div::_GP('mode');
00081 $bparams = t3lib_div::_GP('bparams');
00082
00083
00084
00085 $GLOBALS['TBE_TEMPLATE']->docType='xhtml_frames';
00086 $GLOBALS['TBE_TEMPLATE']->JScode=$GLOBALS['TBE_TEMPLATE']->wrapScriptTags('
00087 function closing() {
00088 close();
00089 }
00090 function setParams(mode,params) {
00091 parent.content.document.location = "browse_links.php?mode="+mode+"&bparams="+params;
00092 }
00093 if (!window.opener) {
00094 alert("ERROR: Sorry, no link to main window... Closing");
00095 close();
00096 }
00097 ');
00098
00099 $this->content.=$GLOBALS['TBE_TEMPLATE']->startPage($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:TYPO3_Element_Browser'));
00100
00101
00102 $url = 'browse_links.php?mode='.rawurlencode($mode).'&bparams='.rawurlencode($bparams);
00103
00104
00105
00106 $this->content.='
00107 <frameset rows="*,1" framespacing="0" frameborder="0" border="0">
00108 <frame name="content" src="'.htmlspecialchars($url).'" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" />
00109 <frame name="menu" src="dummy.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />
00110 </frameset>
00111 ';
00112
00113 $this->content.='
00114 </html>';
00115 }
00116
00122 function printContent() {
00123 echo $this->content;
00124 }
00125 }
00126
00127
00128 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/browser.php']) {
00129 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/browser.php']);
00130 }
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142 $SOBE = t3lib_div::makeInstance('SC_browser');
00143 $SOBE->main();
00144 $SOBE->printContent();
00145 ?>