Index: typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php =================================================================== --- typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php (revision 5645) +++ typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php (working copy) @@ -41,6 +41,7 @@ var $template; var $uploadDir; var $redirectUrl; + protected $noRedirect; /** * The main method of the plugin @@ -82,6 +83,7 @@ // GPvars: $this->logintype = t3lib_div::_GP('logintype'); $this->redirectUrl = t3lib_div::_GP('redirect_url'); + $this->noRedirect = ($this->piVars['noredirect'] || $this->conf['redirectDisable']); // if config.typolinkLinkAccessRestrictedPages is set, the var is return_url $returnUrl = t3lib_div::_GP('return_url'); @@ -97,7 +99,7 @@ $this->userIsLoggedIn = $GLOBALS['TSFE']->loginUser; // Redirect - if ($this->conf['redirectMode'] && !$this->conf['redirectDisable']) { + if ($this->conf['redirectMode'] && !$this->conf['redirectDisable'] && !$this->noRedirect) { $this->redirectUrl = $this->processRedirect(); } @@ -117,7 +119,7 @@ // Process the redirect - if (($this->logintype === 'login' || $this->logintype === 'logout') && $this->redirectUrl) { + if (($this->logintype === 'login' || $this->logintype === 'logout') && $this->redirectUrl && !$this->noRedirect) { if (!$GLOBALS['TSFE']->fe_user->cookieId) { $content .= '

' . $this->pi_getLL('cookie_warning', '', 1) . '

'; } else { @@ -214,6 +216,8 @@ $markerArray['###STORAGE_PID###'] = $this->spid; $markerArray['###USERNAME###'] = htmlspecialchars($GLOBALS['TSFE']->fe_user->user['username']); $markerArray['###USERNAME_LABEL###'] = $this->pi_getLL('username', '', 1); + $markerArray['###NOREDIRECT###'] = $this->noRedirect ? '1' : '0'; + $markerArray['###PREFIXID###'] = $this->prefixId; $markerArray = array_merge($markerArray, $this->getUserFieldMarkers()); if ($this->redirectUrl) { @@ -304,6 +308,8 @@ $markerArray['###STORAGE_PID###'] = $this->spid; $markerArray['###USERNAME_LABEL###'] = $this->pi_getLL('username', '', 1); $markerArray['###REDIRECT_URL###'] = $gpRedirectUrl ? htmlspecialchars($gpRedirectUrl) : htmlspecialchars($this->redirectUrl); + $markerArray['###NOREDIRECT###'] = $this->noRedirect ? '1' : '0'; + $markerArray['###PREFIXID###'] = $this->prefixId; $markerArray = array_merge($markerArray, $this->getUserFieldMarkers()); if ($this->flexFormValue('showForgotPassword','sDEF') || $this->conf['showForgotPasswordLink']) { @@ -643,4 +649,4 @@ include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/felogin/pi1/class.tx_felogin_pi1.php']); } -?> +?> \ No newline at end of file Index: typo3/sysext/felogin/template.html =================================================================== --- typo3/sysext/felogin/template.html (revision 5645) +++ typo3/sysext/felogin/template.html (working copy) @@ -14,8 +14,9 @@
  • ###ACTION_URI### - URI of the request for the login/logout form
  • ###EXTRA_HIDDEN### - Hook required (additionnal hidden field used by kb_md5fepw extension by Kraft Bernhard)
  • ###ON_SUBMIT### - Hook required (used by kb_md5fepw extension by Kraft Bernhard)
  • -
  • ###PREFIXID### - Same as class name ('tx_newloginbox_pi1') usefull to get a unique classname prefix
  • +
  • ###PREFIXID### - Same as class name ('tx_felogin_pi1') usefull to get a unique classname prefix
  • ###REDIRECT_URL### - URL of redirection upon login
  • +
  • ###NOREDIRECT### - if set, no redirect will be done
  • ###STORAGE_PID### - explicit enough I guess (if not : id of the page where user are stored)
  • ###STATUS_HEADER### - depends of the template
  • ###STATUS_MESSAGE### - depends of the template
  • @@ -78,6 +79,7 @@ + ###EXTRA_HIDDEN### @@ -121,6 +123,7 @@
    +