复制代码 代码如下:function getsiteurl() { global $_SCONFIG; if(empty($_SCONFIG[‘siteallurl’])) { $uri = $_SERVER[‘REQUEST_URI’]?$_SERVER[‘REQUEST_URI’]:($_SERVER[‘PHP_SELF’]?$_SERVER[‘PHP_SELF’]:$_SERVER[‘SCRIPT_NAME’]); return shtmlspecialchars(‘http://’.$_SERVER[‘HTTP_HOST’].substr($uri, 0, strrpos($uri,