//获得当前的页面文件的url
 function GetCurUrl()
 {
  if(!empty($_SERVER["REQUEST_URI"]))
  {
   $nowurl = $_SERVER["REQUEST_URI"];
   $nowurls = explode("?",$nowurl);
   $nowurl = $nowurls[0];
  }
  else
  {
   $nowurl = $_SERVER["PHP_SELF"];
  }
  return $nowurl;
 }