updateCredentials($frob); if (!empty($extra)) { $redirect = $extra; } } header('Location: http://'.$_SERVER['HTTP_HOST'] .$redirect); ?>