帝国论坛帝国网站管理系统交流区模板/标签/插件共享交流如何直接下载 但是要快车的专用链 【本版专题贴子】  
主题:如何直接下载 但是要快车的专用链 [加入收藏夹]   

随无奈
用户头衔:书生

精华贴   :0
发贴数   :21
经验值   :221
注册时间:2008-03-28
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 1 楼]
如何直接下载 但是要快车的专用链
<?php
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/config.php");
include("../../class/q_functions.php");
include("../../class/user.php");
include("../../class/class.php");
include("../../class/MemberLevel.php");
$link=db_connect();
$empire=new mysqlquery();
//----------开启自动链接
$openthisdown=1;//1为关闭,0为开启
if($openthisdown)
{
        exit();
}

$editor=1;
$id=(int)$_GET['id'];
$pathid=(int)$_GET['pathid'];
$classid=(int)$_GET['classid'];
if(!$classid||empty($class_r[$classid][tbname])||!$id)
{
        echo"<script>alert('此信息不存在');history.go(-1);</script>";
        exit();
}
$query="select downpath,id,title from  {$dbtbpre}ecms_".$class_r[$classid][tbname]." where id='$id' and classid='$classid'";
$r=$empire->fetch1($query);
if(!$r[id])
{
        echo"<script>alert('此信息不存在');history.go(-1);</script>";
        exit();
}
//区分下载地址
$path_r=explode("\r\n",$r[downpath]);
$showdown_r=explode("::::::",$path_r[$pathid]);
//下载权限
$downgroup=$showdown_r[2];
if($downgroup)
{
        $user=islogin();
        //取得会员资料
        $u=$empire->fetch1("select * from ".$user_tablename." where ".$user_userid."='$user[userid]' and ".$user_rnd."='$user[rnd]' limit 1");
        if(empty($u[$user_userid]))
        {
                echo"<script>alert('同一帐号,只能一人在线');history.go(-1);</script>";
        exit();
    }
        //下载次数限制
        if($level_r[$u[$user_group]][daydown])
        {
                $thetoday=date("Y-m-d");
                if($thetoday==$u[$user_todaydate])
                {
                        if($u[$user_todaydown]>=$level_r[$u[$user_group]][daydown])
                        {
                                echo"<script>alert('您的下载与观看次数已超过系统限制(".$level_r[$u[$user_group]][daydown]." 次)!');history.go(-1);</script>";
                                exit();
                        }
                }
        }
        if($level_r[$downgroup][level]>$level_r[$u[$user_group]][level])
                        {
                    echo"<script>alert('您的会员级别不足(".$level_r[$downgroup][groupname]."),没有下载此软件的权限!');history.go(-1);</script>";
            exit();
                        }
        //点数是否足够
        if($showdown_r[3])
        {
                //---------是否有历史记录
                        $bakr=$empire->fetch1("select id,truetime from {$dbtbpre}enewsdownrecord where id='$id' and classid='$classid' and userid='$user[userid]' and pathid='$pathid' and online=0 order by truetime desc limit 1");
                        if($bakr[id]&&(time()-$bakr[truetime]<=$public_r[redodown]*3600))
                        {}
                        else
                        {
                                //包月卡
                                if($u[$user_userdate]-time()>0)
                                {}
                                //点数
                                else
                                {
                               if($showdown_r[3]>$u[$user_userfen])
                               {
                                        echo"<script>alert('您的点数不足 $showdown_r[3] 点,无法下载此软件');history.go(-1);</script>";
                                        exit();
                               }
                                }
                        }
        }
}
//验证码
$pass=md5("wm_chief".$public_r[downpass].$user[userid]);
$url="../../enews?enews=DownSoft&classid=$classid&id=$id&pathid=$pathid&pass=".$pass."&p=".$user[userid].":::".$user[rnd];
//$url=ReturnDSofturl($showdown_r[1],$showdown_r[4],'../../');
db_close();
$empire=null;
Header("Location:$url");
exit();
?>
<link href="../../data/images/qcss.css" rel="stylesheet" type="text/css">
<title><?=$r[title]?></title>
<br>
<br>
<table align=center><tr>
    <td align=center><a href="<?=$url?>"><img src="../../data/images/download.jpg" border=0></a></td>
  </tr></table>
<br>
<table align=center>
  <tr>
    <td align=center><br>
      点击右键 -&gt; 用下载软件下载 </td>
  </tr>
</table>




直接下载的代码


快车的代码



<!--请下载右边的Flashget_base64.php文件,并上传到网站的输出下载地址的PHP文件相同的目录下---------->
<!--在输出下载地址的PHP页面文件头部<body>标签前添加以下代码,且必须包含以下2行代码----------------------->
<script src="http://ufile.kuaiche.com/Flashget_union.php?fg_uid=12979"></script>
<?php require("Flashget_base64.php"); ?>
<!--注:如果您的页面的编码使用的是utf8,请替换第一行代码为
<script src="http://ufile.kuaiche.com/Flashget_union_utf8.php?fg_uid=12979"></script>----------->
<!--然后在每个需要展现下载地址的地方添加以下代码------------------------------------------------->
<?php
$Url = "下载地址"; //此处为文件实际下载地址
$flashgetUrl = FlashgetEncode($Url,12979);
?>
<a href="#" onClick="ConvertURL2FG('<?= $flashgetUrl?>','<?= $Url?>',12979)" oncontextmenu="Flashget_SetHref(this)" fg="<?= $flashgetUrl?>">下载资源名</a>





2008-05-02 17:14:33 已设置保密 顶部 回复 引用 报告 编辑 删除

houy2008
用户头衔:进士

精华贴   :0
发贴数   :655
经验值   :2278
注册时间:2007-09-19
信息 搜索 好友 发送悄悄话 免费开源-EBMA系统:更安全的MYSQL管理和备份系统】   [第 2 楼]

建议你使用JAVA调用的方式
演示:http://wygame.net/ebook/qcaq/20080501/264.html   本地下载

<script src="http://ufile.kuaiche.com/Flashget_union.php?fg_uid=12979"></script>
<?php require("Flashget_base64.php"); ?>
<!--注:如果您的页面的编码使用的是utf8,请替换第一行代码为
<script src="http://ufile.kuaiche.com/Flashget_union_utf8.php?fg_uid=12979"></script>----------->
<!--然后在每个需要展现下载地址的地方添加以下代码------------------------------------------------->
<?php
$Url = "<?=$showdown_r[1]?>"; //此处为文件实际下载地址
$flashgetUrl = FlashgetEncode($Url,12979);
?>
<a href="#" onClick="ConvertURL2FG('<?= $flashgetUrl?>','<?= $Url?>',12979)" oncontextmenu="Flashget_SetHref(this)" fg="<?= $flashgetUrl?>">下载资源名</a>



诚征友情连接QQ:28597574
2008-05-02 22:29:23 已设置保密 顶部 回复 引用 报告 编辑 删除

随无奈
用户头衔:书生

精华贴   :0
发贴数   :21
经验值   :221
注册时间:2008-03-28
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 3 楼]

我是想用快车专链直接下载。。不用弹窗下载的

无论如何谢谢你

继续求助。。




2008-05-03 10:06:50 已设置保密 顶部 回复 引用 报告 编辑 删除

5651354
用户头衔:举人

精华贴   :0
发贴数   :112
经验值   :678
注册时间:2007-12-26
信息 搜索 好友 发送悄悄话 免费开源-EBMA系统:更安全的MYSQL管理和备份系统】   [第 4 楼]

没看懂什么意思!



QQ:350082818 交流群:57770432
蓬莱旅游网
2008-05-03 10:41:33 已设置保密 顶部 回复 引用 报告 编辑 删除

dongdong168188
用户头衔:书生

精华贴   :0
发贴数   :4
经验值   :8
注册时间:2008-05-27
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 5 楼]

嘿嘿,我也不知道




2008-05-27 16:10:23 已设置保密 顶部 回复 引用 报告 编辑 删除

快速回复
内容

表情
使用EBB代码 使用smile代码 显示签名 自动分析url 自动分析img
     【进入高级模式】   (按 Ctrl+Enter 直接提交)
    顶部  加入收藏夹
关于帝国 | 广告服务 | 联系我们 | 法律声明 | 隐私条款 | 许可协议
Powered by: EBB Version 2.2.1