コード例 #1
0
ファイル: api.php プロジェクト: Git-Host/gdxkc-code
        $darr[Lnkby] = "NULL";
        $darr[Sinaweibo] = "NULL";
        $darr[Zzb] = "NULL";
        $darr[Vgd] = "NULL";
        $darr[Google] = "NULL";
        $darr[CL] = "www.weibo.com/gdxkc";
    } else {
        $darr[Code] = "0";
        $darr[Baidu] = baidu($xxurl);
        //$darr[Bailu]=bailu($xxurl);
        $darr[Bitly] = bitly($xxurl);
        $darr[Isgd] = isgd($xxurl);
        $darr[Lnkby] = lnkby($xxurl);
        $darr[Sinaweibo] = sinaweibo($xxurl);
        $darr[Zzb] = zzb($xxurl);
        $darr[Vgd] = vgd($xxurl);
        $darr[Google] = GoogleUrl($xxurl);
        $darr[CL] = "www.weibo.com/gdxkc";
    }
} else {
    $darr[Code] = "-2";
    $darr[Baidu] = "NULL";
    //$darr[Bailu]="NULL";
    $darr[Bitly] = "NULL";
    $darr[Isgd] = "NULL";
    $darr[Lnkby] = "NULL";
    $darr[Sinaweibo] = "NULL";
    $darr[Zzb] = "NULL";
    $darr[Vgd] = "NULL";
    $darr[Google] = "NULL";
    $darr[CL] = "www.weibo.com/gdxkc";
コード例 #2
0
ファイル: index.php プロジェクト: Git-Host/gdxkc-code
        echo "</div>\n";
        echo "<hr color=\"#987cb9\" width=\"80%\" size=\"1\" style=\"border: 1px dashed rgb(152, 124, 185);\"/>";
        echo baidu($xxurl);
        echo '<br />';
        echo bailu($xxurl);
        echo '<br />';
        echo bitly($xxurl);
        echo '<br />';
        echo isgd($xxurl);
        echo '<br />';
        echo lnkby($xxurl);
        echo '<br />';
        echo sinaweibo($xxurl);
        echo '<br />';
        echo zzb($xxurl);
        echo '<br />';
        echo vgd($xxurl);
        echo '<br />';
        echo GoogleUrl($xxurl);
        echo '<hr color="#987cb9" width="80%" size="1" style="border: 1px dashed rgb(152, 124, 185);"/>';
        echo '<a href="api.html">API</a>已经开发,请阅读使用说明!';
    }
} else {
    echo "<form onsubmit=\"return submitForm()\" action=\"index.php\" id=\"mainform\" name=\"mainform\" method=\"post\">\n";
    echo "<div id=\"urlboxcontainer\"><input type=\"text\" value=\"\" name=\"longurl\" size=\"55\" maxlength=\"5000\" class=\"urlbox\"></div>\n";
    echo "<input type=\"submit\" value=\"变短!\" class=\"submitbutton\">\n";
    echo "</form>";
    echo '<div>';
}
?>
</body></html>