Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:
function camefrom($url) {
if (!is_string($url)) return "mostrecent.php";
$cutup = parse_url($url);
$thehost = $cutup[host];
$thepath = $cutup[path];
$newpath = "index.php";
// if they cam from the login/logout or join pages, wipe it, else forward them to the initial request.
$output = ($thehost == "domain.com" ?
($thepath == "/logout.php" ? $newpath :
($thepath == "/login.php" ? $newpath :
($thepath == "/join.php" ? $newpath :
$url ))) : $newpath );
return $output;
}
1 to 3 of 3