login.php
$_SERVER['HTTP_REFERER'] isnt the best tracker to use for internal pages but the if else will prevent any bugsCode:$come_from = $_SERVER['HTTP_REFERER']; if ($come_from == "site.com/login.php"){ $redirect_url = $config['baseurl'] . '/' . $user_info['user_name']; }else{ $redirect_url = javascript:history.go(-2); redirect($redirect_url) }




Reply With Quote
Bookmarks