Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:$this->ReturnUrl = urldecode(ForceIncomingString('ReturnUrl', ''));
if ($this->ReturnUrl != '') $this->PostBackParams->Add('ReturnUrl', $this->ReturnUrl);
people.php?ReturnUrl=where/to/send/them/after.htmlpeople.php?ReturnUrl=../index.phppeople.php?ReturnUrl=/home/user/index.php
people.php?ReturnUrl=http://www.domain.com/sub/index.php
people.php?ReturnUrl=http://www.MyRealDomain.com/forum/people.php?ReturnUrl=http://www.MyRealDomain.com// Automatically redirect if this user isn't a user administrator or there aren't any new applicants
$AutoRedirect = 1;
if ($this->Context->Session->User->Permission('PERMISSION_APPROVE_APPLICANTS')) {
$this->ApplicantCount = $UserManager->GetApplicantCount();
if ($this->ApplicantCount > 0) $AutoRedirect = 0;
}
if ($this->ReturnUrl == '') {
$this->ReturnUrl = $this->Context->Configuration['FORWARD_VALIDATED_USER_URL'];
} else {
$this->ReturnUrl = str_replace('&', '&', $this->ReturnUrl);
}
if ($AutoRedirect && $this->ReturnUrl != '') {
header('location: '.$this->ReturnUrl);
// die();
}If the user has permission to approve new applicants and there are new applicants,
don't automatically forward him/her.
Otherwise...
If there is a return url, do some formatting so it works properly, and send the user to that url.
1 to 16 of 16