如何給帝國下載系統(tǒng)添加迅雷快車專用鏈

字號:


    通常我們建立有下載資源的網(wǎng)站的時候,都會想到給下載加上迅雷和快車的下載專用鏈,這樣既提供了多種下載方式,同時也會有所收益,今天就講解如何給 帝國下載系統(tǒng)添加迅雷快車專用鏈$url="../phome/?phome=DownSoft&softid=$softid& pathid=$pathid&pass=".$pass."&p=".$user[userid].":::".$user[rnd];
    把它改為:
    $url="http://www.xx.net/phome/?phome=DownSoft&softid=$softid&pathid=$pathid&pass=".$pass."&p=".$user[userid].":::".$user[rnd];
    就是把地址補全,使用完整地址。其中,http://www.xx.com要替換成你網(wǎng)站的地址。
    2.下載迅雷和快車的地址加密文件:
    迅雷:http://union.xunlei.com/download/php.rar
    快車:http://union.flashget.com/files/flashget_base64_php.rar
    下回來解壓,把里面的“encode.inc”和“Flashget_base64.php”兩個文件上傳到DownSoft目錄下。
    3.進入帝國下載系統(tǒng)后臺:模版管理--> 公共模板-->修改最終下載頁模板。
    把內(nèi)容替換為(聯(lián)盟ID要修改成自己的):
    代碼如下:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>[!--pagetitle--]</title>
    <meta name="keywords" content="[!--pagekey--]">
    <meta name="description" content="[!--pagedes--]">
    <link href="../data/images/qcss.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <SCRIPT src="http://pstatic.xunlei.com/js/webThunderDetect.js"></SCRIPT>
    <script src="http://ufile.kuaiche.com/Flashget_union.php?fg_uid=22710"></script>
    <?php require("encode.inc"); ?>
    <?php require("Flashget_base64.php"); ?>
    <table>
    <tr>
    <td height="35">
    下載此軟件需要花費<font color="#FF0000">&nbsp;<b>[!--downfen--]</b>&nbsp;</font>個金幣
    </td>
    </tr>
    <tr>
    <tr>
    <td><a target="_blank">↓下載到手機</a></td></tr>
    <td height="45">
    <?php
    $thunderUrl = ThunderEncode("$url");
    ?><A oncontextmenu=ThunderNetwork_SetHref(this) href="#" thunderResTitle="[!--softname--]" thunderType="" thunderPid="40387" thunderHref="<?php echo $thunderUrl;?>">↓迅雷高速下載</A>
    </td>
    </tr>
    <tr>
    <td height="45">
    <?php
    $flashgetUrl = FlashgetEncode($url,22710);
    ?>
    <a href="#" fg="<?= $flashgetUrl?>">↓快車高速下載</a>
    </td>
    </tr> <td height="45">
    <!-- PHP迅雷離線下載代碼一-->
    <script src="http://pstatic.xunlei.com/js/offlineThunderDetect.js"></script>
    <?php
    $offlineUrl = "http://www.xx.com[!--thistruedownpath--]";
    ?>
    <a href="http://lixian.vip.xunlei.com/lixian_login.html?referfrom=union&ucid=40387&furl=<?php echo $offlineUrl;?>" target=_blank>↓迅雷離線高速下載(無需掛機)</a> </td>
    </tr>
    <tr>
    <td height="40"><a href="<?=$url?>">↓本地下載</a></td>
    </tr>
    </table>
    </body>
    </html>