搜索
查看: 1682|回复: 0

看得懂PHP代码的,请进来观察一下

[复制链接]
发表于 2006-8-3 15:44:25 | 显示全部楼层 |阅读模式 来自 中国–福建–福州
我的CS1。5服务器用csinfo.php来查看服务器的在状态都可以,如 http://top.wmyy.com/

但我用CS1。6做服务器时用csinfo.php来查看在线状态就不行了,如http://lth00.vicp.net/cs16top/csinfo.php

不知道为何,请各位兄弟指教;

附上csinfo.php代码表:


<?
$Server="阿若CS即时在线和排名查询";
$HostIP="http://cs.wmyy.com";
$ip="free-disk.vicp.net";
if(!empty($_GET['ip'])){
$ip = $_GET['ip'];
$HostIP=$ip;
}
?>
<?
function strcut($strx,$type){
    $a=strpos($strx,":");
        $port=substr($strx,$a+1,5);
        if(empty($a)){
        $a=strlen($strx);
        $port="27015";
        }
        $ip=substr($strx,0,$a);
        if(empty($ip))
        $ip="127.0.0.1";
        if ($type==1)
        return $ip;
        else
        return $port;
        }
?>
游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表