return false;
}
- function url($action = "", $_params = array(), $script_name = "index.php"){
+ function url($action = "", $_params = array(), $script_name = null){
+ $script_name = isset($script_name) ? $script_name : ($this->config("script_name") ? $this->config("script_name") : "index.php");
if($action) $_params["e"] = $action;
$get_params = "";
if(isset($this->additional_get_params)) foreach($this->additional_get_params as $key => $value) $get_params .= ($get_params ? "&" : "?").$key."=".$value;
"wait" => $wait
)
);
+ if(!headers_sent()){
+ if($wait){
+ if(function_exists("header_remove")) header_remove("Location");
+ }
+ else header("Location: ".str_replace("&", "&", $url));
+ }
}
}