Added SVN keywords: Id, Date, Revision and Author
[Packages/TYPO3.CMS.git] / typo3 / browser.php
index 42a8e4c..18a718d 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2009 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -88,7 +88,7 @@ class SC_browser {
                                        close();
                                }
                                function setParams(mode,params) {       //
-                                       parent.content.document.location = "browse_links.php?mode="+mode+"&bparams="+params;
+                                       parent.content.location.href = "browse_links.php?mode="+mode+"&bparams="+params;
                                }
                                if (!window.opener)     {
                                        alert("ERROR: Sorry, no link to main window... Closing");
@@ -99,14 +99,14 @@ class SC_browser {
                $this->content.=$GLOBALS['TBE_TEMPLATE']->startPage($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:TYPO3_Element_Browser'));
 
                        // URL for the inner main frame:
-               $url = 'browse_links.php?mode='.rawurlencode($mode).'&bparams='.rawurlencode($bparams);
+               $url = $GLOBALS['BACK_PATH'].'browse_links.php?mode='.rawurlencode($mode).'&bparams='.rawurlencode($bparams);
 
                        // Create the frameset for the window:
                        // Formerly there were a ' onunload="closing();"' in the <frameset> tag - but it failed on Safari browser on Mac unless the handler was "onUnload"
                $this->content.='
                        <frameset rows="*,1" framespacing="0" frameborder="0" border="0">
                                <frame name="content" src="'.htmlspecialchars($url).'" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" />
-                               <frame name="menu" src="dummy.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />
+                               <frame name="menu" src="'.$GLOBALS['BACK_PATH'].'dummy.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />
                        </frameset>
                ';
 
@@ -124,22 +124,16 @@ class SC_browser {
        }
 }
 
-// Include extension?
+
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/browser.php'])      {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/browser.php']);
 }
 
 
 
-
-
-
-
-
-
-
 // Make instance:
 $SOBE = t3lib_div::makeInstance('SC_browser');
 $SOBE->main();
 $SOBE->printContent();
-?>
+
+?>
\ No newline at end of file