Project

General

Profile

Bug #22260 ยป 13788.diff

Administrator Admin, 2010-04-11 15:32

View differences:

typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php (working copy)
'felogin_redirectPid!="" AND uid IN (' . implode(',', $groupData['uid']) . ')'
);
if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_row($res)) {
$redirect_url[] = $this->pi_getPageLink($row[0], array(), TRUE); // take the first group with a redirect page
$redirect_url[] = $this->pi_getPageLink($row[0]); // take the first group with a redirect page
}
break;
case 'userLogin':
......
$GLOBALS['TSFE']->fe_user->userid_column . '=' . $GLOBALS['TSFE']->fe_user->user['uid'] . ' AND felogin_redirectPid!=""'
);
if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_row($res)) {
$redirect_url[] = $this->pi_getPageLink($row[0], array(), TRUE);
$redirect_url[] = $this->pi_getPageLink($row[0]);
}
break;
case 'login':
if ($this->conf['redirectPageLogin']) {
$redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLogin']), array(), TRUE);
$redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLogin']));
}
break;
case 'getpost':
......
switch ($redirMethod) {
case 'loginError':
if ($this->conf['redirectPageLoginError']) {
$redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLoginError']), array(), TRUE);
$redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLoginError']));
}
break;
}
......
} elseif (($this->logintype == '') && ($redirMethod == 'logout') && $this->conf['redirectPageLogout'] && $GLOBALS['TSFE']->loginUser) {
// if logout and page not accessible
$redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLogout']), array(), TRUE);
$redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLogout']));
} elseif ($this->logintype === 'logout') { // after logout
......
switch ($redirMethod) {
case 'logout':
if ($this->conf['redirectPageLogout']) {
$redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLogout']), array(), TRUE);
$redirect_url[] = $this->pi_getPageLink(intval($this->conf['redirectPageLogout']));
}
break;
}
    (1-1/1)