"wait" => $wait
)
);
- if(!$wait && !headers_sent()){
- header("Location: ".str_replace("&", "&", $url));
+ if(!headers_sent()){
+ if($wait){
+ if(function_exists("header_remove")) header_remove("Location");
+ }
+ else header("Location: ".str_replace("&", "&", $url));
}
}