[TYPO3-dev] Redirect from typo3/index.php
Tapio Markula
tapio.markula at xetpoint.fi
Sun Sep 2 19:11:21 CEST 2007
Hi
I'm trying to get working
index.php?startID=xx
where xx valid uid.
I have tried with several way alt_main.php to get that information, but
failed
$myGET=t3lib_div::_GET();
$myPOST=t3lib_div::_POST();
#t3lib_div::debug($myPOST);t3lib_div::debug($myGET);
debug - empty
function init() {
global $BE_USER,$TYPO3_CONF_VARS,$myGET;
if($myGET['startID'])
$this->startID='?startID='.$myGET['startID'];
...
// Setting the redirect URL to "alt_main.php" if no alternative input
is given:
$this->redirectToURL = $this->redirect_url ?
$this->redirect_url : 'alt_main.php'.$this->startID;
function checkRedirect() {
// Based on specific setting of interface we set the redirect script:
switch ($this->GPinterface) {
case 'backend':
$this->redirectToURL = 'alt_main.php'.$this->startID;
break;
case 'frontend':
$this->redirectToURL = '../';
break;
}
source code in typo3/index.php?startID=11
is
<input type="hidden" name="redirect_url" value="alt_main.php?startID=11" />
Idea - if some page link to backend it will open the backend with
certain module and page opened in the backend. alt_main.php could first
handle GET or POST variable - but both are empty
alt_main.php has
* Sets the startup module from either GETvars module and mpdParams or
user configuration.
how that can work if params send from index.php are empty?
index.php?startID=11&module=web_layout
alt_main.php
function startModule() {
global $BE_USER,$Typo4,$myGET,$myPOST;
t3lib_div::debug($myPOST);t3lib_div::debug($myGET);
both empty
I have XCLASSed alt_main.php but I don't understand, why it doesn't get
any _GP() variable.
More information about the TYPO3-dev
mailing list