Cnmoker.org - 中国IT资讯

投递文章  投稿指南 RSS订阅 IT资讯通告:
搜索: 您的位置主页>联盟资讯>网赚技巧>阅读资讯:简单的PHP代码 让你的CB产生销售

简单的PHP代码 让你的CB产生销售

2008-08-27 05:27:22   来源:   作者:   【 评论:0

昨天看到老外邮箱提醒CB SALE的方法,今天试了一下,很不错,还可以用手机收提醒 :)

方法如下:首先建一个 PHP文件,文件代码如下

以下为引用的内容:
<?php
function cbValid()
{  
$key='你的Secret Key:';  
$ccustname = $_REQUEST['ccustname'];  
  $ccustemail = $_REQUEST['ccustemail'];   
  $ccustcc = $_REQUEST['ccustcc'];   
  $ccuststate = $_REQUEST['ccuststate'];   
  $ctransreceipt = $_REQUEST['ctransreceipt'];   
  $cproditem = $_REQUEST['cproditem'];   
  $ctransaction = $_REQUEST['ctransaction'];  
  $ctransaffiliate = $_REQUEST['ctransaffiliate'];  
  $ctranspublisher = $_REQUEST['ctranspublisher'];   
  $cprodtype = $_REQUEST['cprodtype'];  
  $cprodtitle = $_REQUEST['cprodtitle'];  
  $ctranspaymentmethod = $_REQUEST['ctranspaymentmethod'];   
  $ctransamount = $_REQUEST['ctransamount'];   
  $caffitid = $_REQUEST['caffitid'];   
  $cvendthru = $_REQUEST['cvendthru'];   
  $cbpop = $_REQUEST['cverify'];          
   $xxpop = sha1("$ccustname|$ccustemail|$ccustcc|$ccuststate|$ctransreceipt|$cproditem|$ctransaction|"        ."$ctransaffiliate|$ctranspublisher|$cprodtype|$cprodtitle|$ctranspaymentmethod|$ctransamount|$caffitid|$cvendthru|$key");  
   $xxpop=strtoupper(substr($xxpop,0,8));   
   if ($cbpop==$xxpop) return 1;   
   else return 0;
   }
   if (cbValid())mail("你的邮箱", "ClickBank - " . $_REQUEST['ctransaction'],"Product: " . $_REQUEST['cprodtitle'] . "\nPublisher: " . $_REQUEST['ctranspublisher'] . "\nAffiliate: " . $_REQUEST['ctransaffiliate'] . "\nTransaction: " . $_REQUEST['ctransaction'] . "\nAmount: " . $_REQUEST['ctransamount']);
   ?>

这段代码其中有2个要改的地方,Secret Key 改为任意的大写字母或数字,邮箱改为你的邮箱,命名保存,一般我命名 mail.php,然后上传到你的空间上。

然后打开CB账号,进入 ACCOUNT SETTINGS - My site - Advanced Tools - Edit

Secret Key: 填上刚才PHP文件中的“任意的大写字母或数字” Instant Notification URL: 点 (request access)

出来一列问题,你都选YES,然后下面的Terms of Use 拉下来,I understand and agree to the Terms of Use. *  打勾,保存。

然后 Instant Notification URL 填上你刚才那个PHP文件的地址,如 XXX.COM/mail.php

点后面的 TEST,如果有收到信件就代表成功了!

如果各位想用手机接收的话,可以去注册个139.com的信箱,免费的。然后把上面PHP文件中的邮箱地址 设为 你的手机号@139.com 就OK了,

对了,还要去139的信箱上设置下来信短信提醒:)

这个方法 refund也会提醒  汗。

tags:    _REQUEST   "   ctransa       _REQUEST   "   ctransa       _REQUEST   "   ctransa       _REQUEST   "   ctransa  
责任编辑:中国IT资讯
  • 请文明参与讨论,禁止漫骂攻击。 用户名:新注册) 密码: 匿名:
    评论总数: [ 查看全部 ] 网友评论
    关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助