不错呦!smile@林凯西,确保“准备文件”中的几个文件都有安装,S...您好,看了您这篇帖子觉得很有帮助。但是有个问题想请...我的修改过了怎么还被恶意注册呢 @jjjjiiii 用PJ快9年了,主要是A...PJ3啊,貌似很少有人用PJ了,现在不是WP就是z...@332347365,我当时接入时错误码没有-10...楼主,ChkValue值应为-103是什么意思呢?...大哥 你最近能看到我发的信息,请跟我联系,我有个制...
手机发送代码投放参考之帝国网站管理系统
编辑:dnawo 日期:2008-07-09
本次示例版本为v4.6,其他版本可参考修改。
1.准备工作
·站长的联盟ID;
·下载页面(e/DownSys/DownSoft/index.php);
2.修改步骤
①在index.php的查询中新增预览图字段(红色新增):
②在index.php中找到下边代码并修改(红色新增):
③在index.php中增加手机下载链接(红色新增):
3.检查结果
在页面上点击"发送到手机",在弹出的窗口中用右键点击空白部分选择属性,并复制出地址,应和下边地址类似:
主要看下uid是否正确,fileurl必须为绝对地址并且可以直接下载到资源(不能有防盗链、要求安装迅雷、快车等)!
1.准备工作
·站长的联盟ID;
·下载页面(e/DownSys/DownSoft/index.php);
2.修改步骤
①在index.php的查询中新增预览图字段(红色新增):
复制内容到剪贴板
程序代码

$query="select downpath,id,title,titlepic from {$dbtbpre}ecms_".$class_r[$classid][tbname]." where id='$id' and classid='$classid'";
②在index.php中找到下边代码并修改(红色新增):
复制内容到剪贴板
程序代码

//验证码
$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];
//悟空网盟(union.5k3g.com)手机发送代码
$uid = "";//联盟ID
$title = urlencode($r[title]);//资源名称
$httphost = "http://".$_SERVER['HTTP_HOST'];
$fileurl = urlencode("$httphost/e/enews?enews=DownSoft&classid=$classid&id=$id&pathid=$pathid&pass=".$pass."&p=".$user[userid].":::".$user[rnd]);//资源地址
$imgurl = $r[titlepic];//资源图片,没有直接用站点LOGO地址
if(strpos($imgurl,"http://")===false)
{
$imgurl = $httphost.$r[titlepic];
}
$imgurl = urlencode($imgurl);
$unionurl = "http://code.5k3g.com/tl/picDIY/Sendgame.aspx?uid=$uid&title=$title&fileurl=$fileurl&imgurl=$imgurl";
$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];
//悟空网盟(union.5k3g.com)手机发送代码
$uid = "";//联盟ID
$title = urlencode($r[title]);//资源名称
$httphost = "http://".$_SERVER['HTTP_HOST'];
$fileurl = urlencode("$httphost/e/enews?enews=DownSoft&classid=$classid&id=$id&pathid=$pathid&pass=".$pass."&p=".$user[userid].":::".$user[rnd]);//资源地址
$imgurl = $r[titlepic];//资源图片,没有直接用站点LOGO地址
if(strpos($imgurl,"http://")===false)
{
$imgurl = $httphost.$r[titlepic];
}
$imgurl = urlencode($imgurl);
$unionurl = "http://code.5k3g.com/tl/picDIY/Sendgame.aspx?uid=$uid&title=$title&fileurl=$fileurl&imgurl=$imgurl";
③在index.php中增加手机下载链接(红色新增):
复制内容到剪贴板
程序代码

<table align=center><tr>
<td align=center><a href="<?=$url?>"><img src="../../data/images/download.jpg" border=0></a></td>
</tr>
<tr>
<td align=center><a href="<?=$unionurl?>" title="发送到手机" target="_blank"><img src="../../data/images/download.jpg" border=0></a></td>
</tr>
</table>
<td align=center><a href="<?=$url?>"><img src="../../data/images/download.jpg" border=0></a></td>
</tr>
<tr>
<td align=center><a href="<?=$unionurl?>" title="发送到手机" target="_blank"><img src="../../data/images/download.jpg" border=0></a></td>
</tr>
</table>
3.检查结果
在页面上点击"发送到手机",在弹出的窗口中用右键点击空白部分选择属性,并复制出地址,应和下边地址类似:
复制内容到剪贴板
程序代码

http://code.5k3g.com/tl/picDIY/Sendgame.aspx?uid=10009&title=aa&fileurl=http%3A//www.mzwu.com/ebook/aa.rar&imgurl=http://www.mzwu.com/images/logo.gif
主要看下uid是否正确,fileurl必须为绝对地址并且可以直接下载到资源(不能有防盗链、要求安装迅雷、快车等)!
评论: 0 | 引用: 0 | 查看次数: 4970
发表评论
请登录后再发表评论!