[PHP]七种签名档API接口

PHP接口教程 3年前 (2018) Mgo
2

<? phpif($_GET[type] == "gxq") {
    @header('Content-Type: text/html; charset=utf-8');
    if ($_GET[name] == "") {
        echo "文字内容不能为空";
    } else {
        $url = "http://www.uustv.com/";
        $name = urlencode($_GET[name]);
        $data = "word=" . $name . "&sizes=60&fonts=jfcs.ttf&fontcolor=%23000000";
        $a = post_data_test($url, $data);
        echo "[imgurl]http://www.uustv.com/" . getSubstr($a, "<img src=\"", "\"/></div>") . "[/imgurl]";
    }
}
if ($_GET[type] == "lbq") {
    @header('Content-Type: text/html; charset=utf-8');
    if ($_GET[name] == "") {
        echo "文字内容不能为空";
    } else {
        $url = "http://www.uustv.com/";
        $name = urlencode($_GET[name]);
        $data = "word=" . $name . "&sizes=60&fonts=qmt.ttf&fontcolor=%23000000";
        $a = post_data_test($url, $data);
        echo "[imgurl]http://www.uustv.com/" . getSubstr($a, "<img src=\"", "\"/></div>") . "[/imgurl]";
    }
}
if ($_GET[type] == "xsq") {
    @header('Content-Type: text/html; charset=utf-8');
    if ($_GET[name] == "") {
        echo "文字内容不能为空";
    } else {
        $url = "http://www.uustv.com/";
        $name = urlencode($_GET[name]);
        $data = "word=" . $name . "&sizes=60&fonts=bzcs.ttf&fontcolor=%23000000";
        $a = post_data_test($url, $data);
        echo "[imgurl]http://www.uustv.com/" . getSubstr($a, "<img src=\"", "\"/></div>") . "[/imgurl]";
    }
}
if ($_GET[type] == "ctq") {
    @header('Content-Type: text/html; charset=utf-8');
    if ($_GET[name] == "") {
        echo "文字内容不能为空";
    } else {
        $url = "http://www.uustv.com/";
        $name = urlencode($_GET[name]);
        $data = "word=" . $name . "&sizes=60&fonts=lfc.ttf&fontcolor=%23000000";
        $a = post_data_test($url, $data);
        echo "[imgurl]http://www.uustv.com/" . getSubstr($a, "<img src=\"", "\"/></div>") . "[/imgurl]";
    }
}
if ($_GET[type] == "hwq") {
    @header('Content-Type: text/html; charset=utf-8');
    if ($_GET[name] == "") {
        echo "文字内容不能为空";
    } else {
        $url = "http://www.uustv.com/";
        $name = urlencode($_GET[name]);
        $data = "word=" . $name . "&sizes=60&fonts=haku.ttf&fontcolor=%23000000";
        $a = post_data_test($url, $data);
        echo "[imgurl]http://www.uustv.com/" . getSubstr($a, "<img src=\"", "\"/></div>") . "[/imgurl]";
    }
}
if ($_GET[type] == "swq") {
    @header('Content-Type: text/html; charset=utf-8');
    if ($_GET[name] == "") {
        echo "文字内容不能为空";
    } else {
        $url = "http://www.uustv.com/";
        $name = urlencode($_GET[name]);
        $data = "word=" . $name . "&sizes=60&fonts=zql.ttf&fontcolor=%23000000";
        $a = post_data_test($url, $data);
        echo "[imgurl]http://www.uustv.com/" . getSubstr($a, "<img src=\"", "\"/></div>") . "[/imgurl]";
    }
}
if ($_GET[type] == "kaq") {
    @header('Content-Type: text/html; charset=utf-8');
    if ($_GET[name] == "") {
        echo "文字内容不能为空";
    } else {
        $url = "http://www.uustv.com/";
        $name = urlencode($_GET[name]);
        $data = "word=" . $name . "&sizes=60&fonts=yqk.ttf&fontcolor=%23000000";
        $a = post_data_test($url, $data);
        echo "[imgurl]http://www.uustv.com/" . getSubstr($a, "<img src=\"", "\"/></div>") . "[/imgurl]";
    }
}
function getSubstr($str, $leftStr, $rightStr) {
    $left = strpos($str, $leftStr);
    $right = strpos($str, $rightStr, $left);
    if ($left < 0 or $right < $left) return '';
    return substr($str, $left + strlen($leftStr), $right - $left - strlen($leftStr));
} ?>

版权声明:Mgo 发表于 2018-06-03 21:16:46。
转载请注明:[PHP]七种签名档API接口 | 站长聚集地

2 条评论

  • 1607854756
    1607854756 Vip2

    能不能以文件的形式分享一下,这样复制过去后无法使用

    回复
    • king
      king Vip6

      @1607854756:失效了,不能用了,都是去年的,你看最新的那些接口吧

      回复