Chinaunix首页 | 论坛 | 博客
  • 博客访问: 669005
  • 博文数量: 53
  • 博客积分: 830
  • 博客等级: 准尉
  • 技术积分: 1089
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-31 18:23
文章存档

2019年(1)

2018年(1)

2016年(1)

2015年(1)

2014年(12)

2013年(4)

2012年(33)

分类: Html/Css

2012-12-11 14:14:42

Action()
{
     long file;
    char V_Result[1024];
    char V_Result_1[1024];


     char separators[] =",";

     char * token;

   //定义订单数

   int result=0;

   //取得IMSI号码

 

  //设置页面接收最大的字节数,该设置应大于服务器返回内容的大小

   web_set_max_html_param_len("20000");


   web_url("channel",
        "URL={channel_url}",
        "Resource=0",
        "RecContentType=text/html",
        "Snapshot=t4.inf",
        "Mode=HTML",
          LAST);


    web_url("user.php",
        "URL=",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=",
        "Snapshot=t4.inf",
        "Mode=HTML",
        EXTRARES,
        "Url=/themes/default/images/bnt_search.gif", "Referer=", ENDITEM,
        "Url=/themes/default/images/searchBg.gif", "Referer=", ENDITEM,
        "Url=", "Referer=", ENDITEM,
        "Url=/themes/default/images/bnt_ur_reg.gif", "Referer=", ENDITEM,
        "Url=/themes/default/images/topNavBg.gif", "Referer=", ENDITEM,
        "Url=/themes/default/images/uh_bg.gif", "Referer=", ENDITEM,
        "Url=/themes/default/images/topNavR.gif", "Referer=", ENDITEM,
        "Url=/themes/default/images/NavBg.gif", "Referer=", ENDITEM,
        "Url=", "Referer=", ENDITEM,
        "Url=/themes/default/images/logo1.gif", "Referer=", ENDITEM,
        "Url=/themes/default/images/inputbg.gif", "Referer=", ENDITEM,
        "Url=/themes/default/images/footerLine.gif", "Referer=", ENDITEM,
        "Url=/themes/default/images/bg.gif", "Referer=", ENDITEM,
        "Url=/themes/default/images/ur_bg.gif", "Referer=", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=0977914730&adwlh=http%3A%2F%2F%2Fuser.php%3Fact%3Dregister&adwr=http%3A%2F%2F%2F&adwt=%E7%94%A8%E6%88%B7%E4%B8%AD%E5%BF%83_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&drid=&pgi=&kwd=&dst=", "Refe"
        "rer=", ENDITEM,
        "Url=", "Referer=", ENDITEM,
        LAST);

    web_url("user.php_2",
        "URL=user.php?act=is_registered&username={user_name}&{cookie3_1}{cookie3_2}7420343343",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=",
        "Snapshot=t5.inf",
        "Mode=HTML",
        LAST);

    lr_think_time(5);

    web_url("user.php_3",
        "URL=user.php?act=check_email&email={user_name}@sina.com&{cookie3_1}{cookie3_2}7425531531",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=",
        "Snapshot=t6.inf",
        "Mode=HTML",
        LAST);

//     web_url("favicon.ico",
//         "URL=",
//         "Resource=0",
//         "RecContentType=text/html",
//         "Referer=",
//         "Snapshot=t7.inf",
//         "Mode=HTML",
//         LAST);

    lr_think_time(4);

    lr_start_transaction("注册");

    web_reg_find("Search=Body",
        "SaveCount=count",
        "Text={user_name}",
        LAST);

    web_submit_data("user.php_4",
        "Action=user.php",
        "Method=POST",
        "RecContentType=text/html",
        "Referer=",
        "Snapshot=t8.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=username", "Value={user_name}", ENDITEM,
        "Name=email", "Value={user_name}@sina.com", ENDITEM,
        "Name=password", "Value=111111", ENDITEM,
        "Name=confirm_password", "Value=111111", ENDITEM,
        "Name=sel_question", "Value=0", ENDITEM,
        "Name=passwd_answer", "Value=", ENDITEM,
        "Name=agreement", "Value=1", ENDITEM,
        "Name=act", "Value=act_register", ENDITEM,
        "Name=back_act", "Value=", ENDITEM,
        "Name=Submit", "Value=", ENDITEM,
        EXTRARES,
        "Url=", ENDITEM,
        "Url=", ENDITEM,
        "Url=/themes/default/images/NavBg.gif", ENDITEM,
        "Url=/themes/default/images/topNavBg.gif", ENDITEM,
        "Url=/themes/default/images/bnt_search.gif", ENDITEM,
        "Url=/themes/default/images/topNavR.gif", ENDITEM,
        "Url=/themes/default/images/searchBg.gif", ENDITEM,
        "Url=/themes/default/images/bg.gif", ENDITEM,
        "Url=/themes/default/images/helpTitBg.gif", ENDITEM,
        "Url=/themes/default/images/h3title.gif", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=8501895739&adwlh=http%3A%2F%2F%2Fuser.php&adwr=http%3A%2F%2F%2Fuser.php%3Fact%3Dregister&adwt=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&drid=&pgi=&kwd=&dst=", ENDITEM,
        "Url=/themes/default/images/logo1.gif", ENDITEM,
        "Url=/themes/default/images/footerLine.gif", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwactid=1nsuqg&attr={user_name}&adweu=&adwmc=5908413933&adwa=6v18b&encoding=utf-8&adwlh=http%3A%2F%2F%2Fuser.php", ENDITEM,
        "Url=", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=8425584366&adwlh=http%3A%2F%2F%2Fuser.php&adwr=&adwt=%E7%94%A8%E6%88%B7%E4%B8%AD%E5%BF%83_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&drid=&pgi=&kwd=&dst=", ENDITEM,
        "Url=/themes/default/images/uh_bg.gif", ENDITEM,
        "Url=/themes/default/images/menuBg.gif", ENDITEM,
        LAST);

     if(atoi(lr_eval_string("{count}"))>0){

        lr_end_transaction("注册", LR_PASS);
        lr_error_message("注册的user是:%s",lr_eval_string("{user_name}"));

     }else{

        lr_end_transaction("注册", LR_FAIL);

     }


    lr_start_transaction("gsm手机");

    lr_think_time(16);

    web_link("GSM鎵嬫満",
        "Text=GSM鎵嬫満",
        "Snapshot=t9.inf",
        EXTRARES,
        "Url=", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/h3title.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/topNavBg.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/searchBg.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/bg.gif", "Referer=category.php?id=3", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=0353100631&adwlh=http%3A%2F%2F%2Fcategory.php%3Fid%3D3&adwr=http%3A%2F%2F%2Fuser.php&adwt=GSM%E6%89%8B%E6%9C%BA_%E6%89%8B%E6%9C%BA%E7%B1%BB%E5%9E%8B_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&"
        "drid=&pgi=&kwd=&dst=", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/box_2Bg.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/bnt_search.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/topNavR.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/NavBg.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/uh_bg.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/lineBg.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/catBg.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/logo1.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/helpTitBg.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=/themes/default/images/footerLine.gif", "Referer=category.php?id=3", ENDITEM,
        "Url=", "Referer=category.php?id=3", ENDITEM,
        LAST);

    web_link("鐏拌壊",
        "Text=鐏拌壊",
        "Snapshot=t10.inf",
        EXTRARES,
        "Url=/themes/default/images/h3title.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/topNavBg.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/searchBg.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/bg.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/helpTitBg.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/NavBg.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/uh_bg.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/catBg.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/lineBg.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/bnt_search.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/logo1.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/footerLine.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/topNavR.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=8315041596&adwlh=http%3A%2F%2F%2Fcategory.php%3Fid%3D3%26price_min%3D0%26price_max%3D0%26filter_attr%3D167.0.0.0&adwr=http%3A%2F%2F%2Fcategory.php%3Fid%3D3&adwt=GSM%E6%89%8B%E6%9C%BA_%E6%89%8B%E6%9C%BA%E7%B1%BB%E5%9E%8B_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&"
        "adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&drid=&pgi=&kwd=&dst=", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=/themes/default/images/compareBg.gif", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        LAST);

    lr_think_time(12);

    web_image("bnt_top.gif",
        "Src=themes/default/images/bnt_top.gif",
        "Snapshot=t11.inf",
        EXTRARES,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=3403604644&adwlh=http%3A%2F%2F%2Fcategory.php%3Fid%3D3%26price_min%3D0%26price_max%3D0%26filter_attr%3D167.0.0.0&adwr=http%3A%2F%2F%2Fcategory.php%3Fid%3D3&adwt=GSM%E6%89%8B%E6%9C%BA_%E6%89%8B%E6%9C%BA%E7%B1%BB%E5%9E%8B_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&"
        "adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&drid=&pgi=&kwd=&dst=", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        "Url=", "Referer=category.php?id=3&price_min=0&price_max=0&filter_attr=167.0.0.0", ENDITEM,
        LAST);

    web_link("P806",
        "Text=P806",
        "Ordinal=1",
        "Snapshot=t12.inf",
        EXTRARES,
        "Url=/themes/default/images/bnt_search.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/searchBg.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/h3title.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/bg.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/NavBg.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/catBg.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/uh_bg.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/topNavBg.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/lineBg.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adweu=undefined&pn=24&pna=P806&pp=2000.00&ta=1&ct=5&ctn=%E5%8F%8C%E6%A8%A1%E6%89%8B%E6%9C%BA&adwa=6v18b&encoding=utf-8&datatype=view&customer={user_name}", "Referer=goods.php?id=24", ENDITEM,
        "Url=/images/201209/thumb_img/43_thumb_G_1347324393822.jpg", "Referer=goods.php?id=24", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=5765850133&adwlh=http%3A%2F%2F%2Fgoods.php%3Fid%3D24&adwr=http%3A%2F%2F%2Fcategory.php%3Fid%3D3%26price_min%3D0%26price_max%3D0%26filter_attr%3D167.0.0.0&adwt=P806_GSM%E6%89%8B%E6%9C%BA_%E6%89%8B%E6%9C%BA%E7%B1%BB%E5%9E%8B_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&"
        "adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&drid=&pgi=&kwd=%E6%97%85%E8%A1%8C%E5%85%85%E7%94%B5%E5%99%A8%20%E5%9B%BE%E5%BD%A2%E8%8F%9C%E5%8D%95%20Wap%20%E4%B8%8A%E7%BD%91%20%E7%BA%A2%E5%A4%96%E6%8E%A5%E5%8F%A3%20%E7%A7%BB%E5%8A%A8%20MSN%20%E6%94%AF%E6%8C%81%202008%E5%B9%B406%E6%9C%88%20%E7%81%B0%E8%89%B2&dst=", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/commentsBnt.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/inputbg.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/helpTitBg.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/logo1.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=/themes/default/images/footerLine.gif", "Referer=goods.php?id=24", ENDITEM,
        "Url=", "Referer=goods.php?id=24", ENDITEM,
        LAST);

    web_url("cron.php",
        "URL=api/cron.php?t={cookie3_1}3618626",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=goods.php?id=24",
        "Mode=HTML",
        EXTRARES,
        "Url=../themes/default/images/topNavR.gif", "Referer=goods.php?id=24", ENDITEM,
        LAST);

    web_url("goods.php",
        "URL=goods.php?act=price&id=24&attr=167&number=1&{cookie3_1}{cookie3_2}7484828828",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=goods.php?id=24",
        "Snapshot=t13.inf",
        "Mode=HTML",
        LAST);

    web_url("goods.php_2",
        "URL=goods.php?act=price&id=24&attr=167&number=5&{cookie3_1}{cookie3_2}7487359359",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=goods.php?id=24",
        "Snapshot=t14.inf",
        "Mode=HTML",
        EXTRARES,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adweu=&pn=24&pna=P806&pp=2000.00&ta=5&ct=5&ctn=%E5%8F%8C%E6%A8%A1%E6%89%8B%E6%9C%BA&adwa=6v18b&encoding=utf-8&datatype=cart&customer={user_name}", "Referer=goods.php?id=24", ENDITEM,
        LAST);

    web_custom_request("flow.php",
        "URL=flow.php?step=add_to_cart",
        "Method=POST",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=goods.php?id=24",
        "Snapshot=t15.inf",
        "Mode=HTML",
        "Body=goods={\"quick\":1,\"spec\":[\"167\"],\"goods_id\":24,\"number\":\"5\",\"parent\":0}",
        LAST);

    web_url("flow.php_2",
        "URL=flow.php?step=cart",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=",
        "Snapshot=t16.inf",
        "Mode=HTML",
        EXTRARES,
        "Url=", "Referer=flow.php?step=cart", ENDITEM,
        "Url=/themes/default/images/topNavR.gif", "Referer=flow.php?step=cart", ENDITEM,
        "Url=/themes/default/images/searchBg.gif", "Referer=flow.php?step=cart", ENDITEM,
        "Url=/themes/default/images/NavBg.gif", "Referer=flow.php?step=cart", ENDITEM,
        "Url=/themes/default/images/bnt_search.gif", "Referer=flow.php?step=cart", ENDITEM,
        "Url=/themes/default/images/bg.gif", "Referer=flow.php?step=cart", ENDITEM,
        "Url=", "Referer=flow.php?step=cart", ENDITEM,
        "Url=/themes/default/images/helpTitBg.gif", "Referer=flow.php?step=cart", ENDITEM,
        "Url=/themes/default/images/logo1.gif", "Referer=flow.php?step=cart", ENDITEM,
        "Url=/themes/default/images/footerLine.gif", "Referer=flow.php?step=cart", ENDITEM,
        "Url=/themes/default/images/inputbg.gif", "Referer=flow.php?step=cart", ENDITEM,
        "Url=/themes/default/images/topNavBg.gif", "Referer=flow.php?step=cart", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=4936048977&adwlh=http%3A%2F%2F%2Fflow.php%3Fstep%3Dcart&adwr=&adwt=%E8%B4%AD%E7%89%A9%E6%B5%81%E7%A8%8B_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&drid=&pgi=&kwd=&dst=", "Referer="
        "flow.php?step=cart", ENDITEM,
        "Url=/themes/default/images/uh_bg.gif", "Referer=flow.php?step=cart", ENDITEM,
        "Url=", "Referer=flow.php?step=cart", ENDITEM,
        LAST);

    web_submit_form("flow.php_3",
        "Snapshot=t17.inf",
        ITEMDATA,
        "NamePfx=goods_number[", "Value=5", ENDITEM,
        "Name=submit", "Value=鏇存柊璐?墿杞\xA6", ENDITEM,
        EXTRARES,
        "Url=/themes/default/images/helpTitBg.gif", ENDITEM,
        "Url=/themes/default/images/bnt_search.gif", ENDITEM,
        "Url=/themes/default/images/topNavR.gif", ENDITEM,
        "Url=/themes/default/images/NavBg.gif", ENDITEM,
        "Url=/themes/default/images/topNavBg.gif", ENDITEM,
        "Url=/themes/default/images/h3title.gif", ENDITEM,
        "Url=/themes/default/images/logo1.gif", ENDITEM,
        "Url=/themes/default/images/bg.gif", ENDITEM,
        "Url=", ENDITEM,
        "Url=", ENDITEM,
        "Url=/themes/default/images/footerLine.gif", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=8499508892&adwlh=http%3A%2F%2F%2Fflow.php&adwr=http%3A%2F%2F%2Fflow.php%3Fstep%3Dcart&adwt=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&drid=&pgi=&kwd=&dst=", ENDITEM,
        "Url=", ENDITEM,
        "Url=/themes/default/images/searchBg.gif", ENDITEM,
        "Url=/themes/default/images/uh_bg.gif", ENDITEM,
        "Url=/themes/default/images/inputbg.gif", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=9387775573&adwlh=http%3A%2F%2F%2Fflow.php&adwr=http%3A%2F%2F%2Fflow.php&adwt=%E8%B4%AD%E7%89%A9%E6%B5%81%E7%A8%8B_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&drid=&pgi=&kwd=&dst=", ENDITEM,
        LAST);

    web_image("checkout",
        "Alt=checkout",
        "Snapshot=t18.inf",
        EXTRARES,
        "Url=", "Referer=flow.php?step=consignee", ENDITEM,
        "Url=/themes/default/images/searchBg.gif", "Referer=flow.php?step=consignee", ENDITEM,
        "Url=/themes/default/images/bnt_search.gif", "Referer=flow.php?step=consignee", ENDITEM,
        "Url=/themes/default/images/topNavR.gif", "Referer=flow.php?step=consignee", ENDITEM,
        "Url=/themes/default/images/uh_bg.gif", "Referer=flow.php?step=consignee", ENDITEM,
        "Url=/themes/default/images/NavBg.gif", "Referer=flow.php?step=consignee", ENDITEM,
        "Url=/themes/default/images/inputbg.gif", "Referer=flow.php?step=consignee", ENDITEM,
        "Url=/themes/default/images/logo1.gif", "Referer=flow.php?step=consignee", ENDITEM,
        "Url=/themes/default/images/helpTitBg.gif", "Referer=flow.php?step=consignee", ENDITEM,
        "Url=/themes/default/images/bg.gif", "Referer=flow.php?step=consignee", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=7736696814&adwlh=http%3A%2F%2F%2Fflow.php%3Fstep%3Dconsignee&adwr=http%3A%2F%2F%2Fflow.php&adwt=%E8%B4%AD%E7%89%A9%E6%B5%81%E7%A8%8B_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&drid=&pgi=&kwd=&"
        "dst=", "Referer=flow.php?step=consignee", ENDITEM,
        "Url=/themes/default/images/footerLine.gif", "Referer=flow.php?step=consignee", ENDITEM,
        "Url=", "Referer=flow.php?step=consignee", ENDITEM,
        "Url=", "Referer=flow.php?step=consignee", ENDITEM,
        LAST);

    web_url("region.php",
        "URL=region.php?type=2&target=selCities_0&parent=2&{cookie3_1}{cookie3_2}750309393",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=flow.php?step=consignee",
        "Snapshot=t19.inf",
        "Mode=HTML",
        EXTRARES,
        "Url=/themes/default/images/topNavBg.gif", "Referer=flow.php?step=consignee", ENDITEM,
        LAST);

    web_url("region.php_2",
        "URL=region.php?type=3&target=selDistricts_0&parent=52&{cookie3_1}{cookie3_2}7504656656",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=flow.php?step=consignee",
        "Snapshot=t20.inf",
        "Mode=HTML",
        LAST);

    web_submit_data("flow.php_4",
        "Action=flow.php",
        "Method=POST",
        "RecContentType=text/html",
        "Referer=flow.php?step=consignee",
        "Snapshot=t21.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=country", "Value=1", ENDITEM,
        "Name=province", "Value=2", ENDITEM,
        "Name=city", "Value=52", ENDITEM,
        "Name=district", "Value=500", ENDITEM,
        "Name=consignee", "Value=ddd", ENDITEM,
        "Name=email", "Value={user_name}@sina.com", ENDITEM,
        "Name=address", "Value=ddd", ENDITEM,
        "Name=zipcode", "Value=111", ENDITEM,
        "Name=tel", "Value=111", ENDITEM,
        "Name=mobile", "Value=111", ENDITEM,
        "Name=sign_building", "Value=111", ENDITEM,
        "Name=best_time", "Value=111", ENDITEM,
        "Name=Submit", "Value=閰嶉\x80佽嚦杩欎釜鍦板潃", ENDITEM,
        "Name=step", "Value=consignee", ENDITEM,
        "Name=act", "Value=checkout", ENDITEM,
        "Name=address_id", "Value=", ENDITEM,
        EXTRARES,
        "Url=", "Referer=flow.php?step=checkout", ENDITEM,
        "Url=/themes/default/images/bnt_search.gif", "Referer=flow.php?step=checkout", ENDITEM,
        "Url=/themes/default/images/topNavBg.gif", "Referer=flow.php?step=checkout", ENDITEM,
        "Url=/themes/default/images/NavBg.gif", "Referer=flow.php?step=checkout", ENDITEM,
        "Url=/themes/default/images/topNavR.gif", "Referer=flow.php?step=checkout", ENDITEM,
        "Url=", "Referer=flow.php?step=checkout", ENDITEM,
        "Url=/themes/default/images/uh_bg.gif", "Referer=flow.php?step=checkout", ENDITEM,
        "Url=/themes/default/images/bg.gif", "Referer=flow.php?step=checkout", ENDITEM,
        "Url=/themes/default/images/inputbg.gif", "Referer=flow.php?step=checkout", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=7882655710&adwlh=http%3A%2F%2F%2Fflow.php%3Fstep%3Dcheckout&adwr=http%3A%2F%2F%2Fflow.php%3Fstep%3Dconsignee&adwt=%E8%B4%AD%E7%89%A9%E6%B5%81%E7%A8%8B_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8"
        "&drid=&pgi=&kwd=&dst=", "Referer=flow.php?step=checkout", ENDITEM,
        "Url=", "Referer=flow.php?step=checkout", ENDITEM,
        LAST);

    web_url("flow.php_5",
        "URL=flow.php?step=select_shipping&shipping=3&{cookie3_1}{cookie3_2}7524250250",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=flow.php?step=checkout",
        "Snapshot=t22.inf",
        "Mode=HTML",
        LAST);

    web_url("flow.php_6",
        "URL=flow.php?step=select_payment&payment=3&{cookie3_1}{cookie3_2}752607878",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=flow.php?step=checkout",
        "Snapshot=t23.inf",
        "Mode=HTML",
        LAST);

    //  

    
    web_reg_save_param_ex(
        "ParamName=error888",
        "LB=",
        "RB=",
        SEARCH_FILTERS,
        LAST);



    web_reg_save_param("error0",
        "LB=['_setOrder',",
        "RB=]",
        "NotFound=ERROR",
        "Search=Body",
        "Ord=2",
        LAST);

    

    web_reg_save_param("error1",
        "LB=[ '_setCustomer', ",
        "RB=]",
        "NotFound=ERROR",
        "Search=Body",
        "Ord=2",
        LAST);

        web_reg_save_param("error2",
        "LB=[ '_setItem',",
        "RB=]",
        "NotFound=ERROR",
        "Search=Body",
        "Ord=2",
        LAST);





    web_submit_data("flow.php_7",
        "Action=flow.php?step=done",
        "Method=POST",
        "RecContentType=text/html",
        "Referer=flow.php?step=checkout",
        "Snapshot=t24.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=shipping", "Value=3", ENDITEM,
        "Name=payment", "Value=3", ENDITEM,
        "Name=pack", "Value=0", ENDITEM,
        "Name=card", "Value=0", ENDITEM,
        "Name=card_message", "Value=", ENDITEM,
        "Name=bonus", "Value=0", ENDITEM,
        "Name=bonus_sn", "Value=", ENDITEM,
        "Name=postscript", "Value=", ENDITEM,
        "Name=how_oos", "Value=0", ENDITEM,
        "Name=step", "Value=done", ENDITEM,
        "Name=x", "Value=104", ENDITEM,
        "Name=y", "Value=29", ENDITEM,
        EXTRARES,
        "Url=", "Referer=flow.php?step=done", ENDITEM,
        "Url=/themes/default/images/searchBg.gif", "Referer=flow.php?step=done", ENDITEM,
        "Url=/themes/default/images/bnt_search.gif", "Referer=flow.php?step=done", ENDITEM,
        "Url=/themes/default/images/helpTitBg.gif", "Referer=flow.php?step=done", ENDITEM,
        "Url=", "Referer=flow.php?step=done", ENDITEM,
        "Url=/themes/default/images/NavBg.gif", "Referer=flow.php?step=done", ENDITEM,
        "Url=/themes/default/images/bg.gif", "Referer=flow.php?step=done", ENDITEM,
        "Url=/themes/default/images/uh_bg.gif", "Referer=flow.php?step=done", ENDITEM,
        "Url=/themes/default/images/footerLine.gif", "Referer=flow.php?step=done", ENDITEM,
        "Url=/themes/default/images/logo1.gif", "Referer=flow.php?step=done", ENDITEM,
        "Url=/themes/default/images/topNavR.gif", "Referer=flow.php?step=done", ENDITEM,
        "Url=/themes/default/images/topNavBg.gif", "Referer=flow.php?step=done", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adweu=&on=2012112319060&op=10015.00&attr=2012112319060&pn=24&pna=P806&pp=2000.00&ta=5&ct=888&ctn=adwiser_cat&adwa=6v18b&encoding=utf-8&datatype=order&customer={user_name}", "Referer=flow.php?step=done", ENDITEM,
        "Url=", "Referer=flow.php?step=done", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=6704394032&adwlh=http%3A%2F%2F%2Fflow.php%3Fstep%3Ddone&adwr=http%3A%2F%2F%2Fflow.php%3Fstep%3Dcheckout&adwt=%E8%B4%AD%E7%89%A9%E6%B5%81%E7%A8%8B_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&drid"
        "=&pgi=&kwd=&dst=", "Referer=flow.php?step=done", ENDITEM,
        "Url=", "Referer=flow.php?step=done", ENDITEM,
        LAST);



    


 //   lr_save_string("1,2,3,4,5,6","str");

     token = (char *)strtok(lr_eval_string("{error0}"), separators); // Get the first token

     lr_save_string(token,"first");

     lr_error_message("first_订单编号=%s",lr_eval_string("{first}"));
     token = (char *)strtok(NULL, separators);
     lr_save_string(token,"second");
     lr_error_message("second_订单金额=%s",lr_eval_string("{second}"));
     token = (char *)strtok(NULL, separators);
     lr_save_string(token,"third");
     lr_error_message("third_订单发生时间=%s",lr_eval_string("{third}"));



    if (!token) {

        lr_output_message ("No tokens found in string!");

        return( -1 );

      }

    while (token != NULL ) { // While valid tokens are returned

        lr_error_message ("%s", token );

        token = (char *)strtok(NULL, separators); // Get the next token

     }

//商品编号,商品名称,商品价格,商品数量,商品分类编号,商品分类名称 取的结果是:



    token = (char *)strtok(lr_eval_string("{error2}"), separators); // Get the first token

    lr_save_string(token,"first_");

    lr_error_message("first_商品编号=%s",lr_eval_string("{first_}"));
    token = (char *)strtok(NULL, separators);
    lr_save_string(token,"second_");
    lr_error_message("second_商品名称=%s",lr_eval_string("{second_}"));
    token = (char *)strtok(NULL, separators);
    lr_save_string(token,"third_");
    lr_error_message("third_商品价格=%s",lr_eval_string("{third_}"));

    token = (char *)strtok(NULL, separators);
    lr_save_string(token,"four_");
    lr_error_message("four_商品数量=%s",lr_eval_string("{four_}"));

    token = (char *)strtok(NULL, separators);
    lr_save_string(token,"five_");
    lr_error_message("five_商品分类编号=%s",lr_eval_string("{five_}"));

    token = (char *)strtok(NULL, separators);
    lr_save_string(token,"six_");
    lr_error_message("six_商品分类名称=%s",lr_eval_string("{six_}"));

    //Customer名称是:
     lr_save_string(lr_eval_string("{error1}"),"Customer_name");
     lr_error_message("Customer是:%s",lr_eval_string("{Customer_name}"));

     lr_error_message("订单编号,订单金额,订单发生时间分别是:%s",lr_eval_string("{error0}"));
     lr_error_message("Customer是:%s",lr_eval_string("{error1}"));
      lr_error_message("商品编号,商品名称,商品价格,商品数量,商品分类编号,商品分类名称是:%s",lr_eval_string("{error2}"));
     lr_error_message("%s","---------------------------------------------------");


     if(stricmp(lr_eval_string("{Customer_name}")),"null"){

        result=1;
     }else{

        result=0;
     }

     lr_error_message("%s",lr_eval_string("{result}"));


    web_add_cookie("_adwo=201467415.1.2012112319060; DOMAIN=");

    lr_think_time(7);

    web_link("閫\x80鍑\xBA",
        "Text=閫\x80鍑\xBA",
        "Snapshot=t25.inf",
        EXTRARES,
        "Url=", "Referer=user.php?act=logout", ENDITEM,
        "Url=", "Referer=user.php?act=logout", ENDITEM,
        "Url=/themes/default/images/searchBg.gif", "Referer=user.php?act=logout", ENDITEM,
        "Url=/themes/default/images/bnt_search.gif", "Referer=user.php?act=logout", ENDITEM,
        "Url=/themes/default/images/helpTitBg.gif", "Referer=user.php?act=logout", ENDITEM,
        "Url=/themes/default/images/topNavBg.gif", "Referer=user.php?act=logout", ENDITEM,
        "Url={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}&adws={cookie3_1}{cookie3_2}{cookie3_3}{cookie2_1}{cookie2_2}1&adwft={cookie3_1}{cookie3_2}{cookie3_3}&adwpt={cookie3_1}{cookie3_2}{cookie3_3}&adwv=1&adweu=&adwsw=1093&adwsh=614&adwmc=4220265937&adwlh=http%3A%2F%2F%2Fuser.php%3Fact%3Dlogout&adwr=http%3A%2F%2F%2Fflow.php%3Fstep%3Ddone&adwt=%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA_Adwiser%E5%95%86%E5%9F%8E%20-%20Powered%20by%20ECShop&adwsc=32-bit&adwl=zh-cn&adwj=1&adwp=http%3A&adwfv=1&adwac=1&adwa=6v18b&adwe=false&adwcr=&encoding=utf-8&drid=&"
        "pgi=&kwd=&dst=", "Referer=user.php?act=logout", ENDITEM,
        "Url=/themes/default/images/topNavR.gif", "Referer=user.php?act=logout", ENDITEM,
        "Url=/themes/default/images/NavBg.gif", "Referer=user.php?act=logout", ENDITEM,
        "Url=/themes/default/images/h3title.gif", "Referer=user.php?act=logout", ENDITEM,
        "Url=/themes/default/images/bg.gif", "Referer=user.php?act=logout", ENDITEM,
        "Url=/themes/default/images/logo1.gif", "Referer=user.php?act=logout", ENDITEM,
        "Url=/themes/default/images/footerLine.gif", "Referer=user.php?act=logout", ENDITEM,
        "Url=", "Referer=user.php?act=logout", ENDITEM,
        LAST);


   

  // \r\n

    lr_save_datetime("%Y%m%d%H%M%S", DATE_NOW, "now_date");

//拼结测试结果文件名称

strcpy(V_Result,"d://test/Result/test");

//lr_error_message("V_Result=%s",V_Result);

strcat(V_Result,lr_eval_string("{now_date}"));

//lr_error_message("V_Result1=%s",V_Result);

strcat(V_Result,".html");

lr_error_message("V_Result3=%s",V_Result);

 file=fopen(V_Result,"at+");

 //输出url的类型:
//  strcat(V_Result,"

");
//  strcat(V_Result,lr_eval_string("{channel_url}"));
//  strcat(V_Result,"


");
//
//   strcat(V_Result,"

11111

");
 //输出报表:

 strcpy(V_Result,"" );

 strcat(V_Result,"");
// strcat(V_Result,"");
 strcat(V_Result,"");
 strcat(V_Result,"");
 strcat(V_Result,"");
 strcat(V_Result,"");



 // 商品名称: lr_eval_string("{second_}");
 strcat(V_Result,"");


  //客户登录名称:lr_error_message("订单号是:Customer是:%s",lr_eval_string("{Customer_name}"));
  //lr_save_string(lr_eval_string("{error1}"),"Customer_name");
//  strcat(V_Result,"");



 //商品数量: lr_error_message("four_商品数量=%s",lr_eval_string("{four_}"));
 strcat(V_Result,"");


  //购买数量: lr_error_message("four_商品数量=%s",lr_eval_string("{four_}"));
 strcat(V_Result,"");


  //订单数: result来定
//  strcat(V_Result,"");
   strcat(V_Result,"");


  //销售额: lr_error_message("second=%s",lr_eval_string("{second}"));
 strcat(V_Result,"

商品名称

客户登录名

商品数

购买数

订单数

销售额

");
 strcat(V_Result,lr_eval_string("{second_}"));
 strcat(V_Result,"

");
//  strcat(V_Result,lr_eval_string("{error1}"));
//  strcat(V_Result,"

");
 strcat(V_Result,lr_eval_string("{four_}"));
 strcat(V_Result,"

");
 strcat(V_Result,lr_eval_string("{four_}"));
 strcat(V_Result,"

");
//  strcat(V_Result,lr_eval_string("{result}"));
//  strcat(V_Result,"

1

");
 strcat(V_Result,lr_eval_string("{second}"));
 strcat(V_Result,"

");


  fputs(V_Result,file);
  fclose(file);

      
    lr_end_transaction("gsm手机", LR_AUTO);


    return 0;
}

阅读(3873) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~