'); $redirects = array(WEBSITE_HOME_DIR.'user-action.php'=>completeURL("user-profile.html?lang=$language")); $ref = bisset('redirect', false); if(isset($_SERVER['HTTP_REFERER']) and !$ref) { $parseurl = parse_url($_SERVER['HTTP_REFERER']); if(isset($redirects[$parseurl['path']])) { $ref = $redirects[$parseurl['path']]; } else { $ref = $_SERVER['HTTP_REFERER']; } } ?>