$url=str_replace("/index.htm","",$_SERVER['REQUEST_URI']); $url=str_replace("/","",$url); $url=str_replace("?","",$url); /* if($cmd=="") $url.="&cmd=board"; echo $url; */ if($wr_id && !$cmd){ $url.="&cmd=board"; } ?>