Custom

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 5

Action()

{
char *temp,*temp1, *temp2, *temp3;
int i;
web_url("www.bedbathandbeyond.com",
"URL=http://www.bedbathandbeyond.com/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
//<tr><td><a href="http://www.bedbathandbeyond.com/nodePage.asp?RN=119&"
onMouseOver
web_reg_save_param("mainlinks",
"LB=<tr><td><a href=\"http://www.bedb
athandbeyond.com/nodePage.asp?RN=",
"RB=&\" onMouseOver",
"ORD=ALL",
LAST);

web_url("default.asp",
"URL=http://www.bedbathandbeyond.com/default.asp?",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
temp1=lr_paramarr_random("mainlinks");
lr_save_string(temp1,"randmainlinks");
//<a href="http://www.bedbathandbeyond.com/stylePage.asp?RN=806&" class=
//</a><br><a href="http://www.bedbathandbeyond.com/stylePage.asp?RN=806&
" class=
// </a><br><a href="http://www.bedbathandbeyond.com/stylePage.asp?RN=806
&" class="
// <a href="http://www.bedbathandbeyond.com/stylepage.asp?mc=1&RN=806&RN
T=0&ipp=15">
web_reg_save_param("sublinks",
"LB=<br><a href=\"http://www.bedbatha
ndbeyond.com/stylePage.asp?RN=",
"RB=&\" class=",
"ORD=ALL",
LAST);

web_url("nodePage.asp",
"URL=http://www.bedbathandbeyond.com/nodePage.asp?RN={randmainli
nks}&",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.bedbathandbeyond.com/default.asp?",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
temp2=lr_paramarr_random("sublinks");
lr_save_string(temp2,"randsublinks");
//<a href="http://www.bedbathandbeyond.com/product.asp?SKU=17492128&RN=8
06&" >
//<a href=http://www.bedbathandbeyond.com/product.asp?SKU=17492128&RN=806&>
web_reg_save_param("sub2links",
"LB=<a href=\"http://www.bedbathandbe
yond.com/product.asp?SKU=",
"RB=&RN=",
"ORD=ALL",
LAST);
web_url("Outdoor Dining",
"URL=http://www.bedbathandbeyond.com/stylePage.asp?RN={randsubli
nks}&",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.bedbathandbeyond.com/nodePage.asp?RN={randma
inlinks}&",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
temp3=lr_paramarr_random("sub2links");
lr_save_string(temp3,"randsub2links");
/*<input type=hidden name="RN" value="806" ID="Hidden1">
<input type=hidden name="retloc" value="
product.asp" ID="Hidden2">
<input type=hidden name="retarg" value="
SKU=17492128" ID="Hidden3">
<input type=hidden name="SKU" value="174
92128" ID="Hidden4">
<input type=hidden name="COL" value="-99
" ID="Hidden5">
<input type="hidden" name="shipSurchAttr
ValueId" value="0" ID="Hidden6">
<input type=hidden name=numSKULines value="1" ID="Hidden8">
<input type="hidden" name="SKU0" value="
17492128" ID="Hidden9">*/
//<input type=hidden name="RN" value="806" ID="Hidden1">
web_reg_save_param("RN",
"LB=<input type=hidden name=\"RN\" va
lue=\"",
"RB=\" ID=\"Hidden1\">",
"ORD=1",
LAST);
//<input type=hidden name="retloc" value="product.asp" ID="Hidden2">
web_reg_save_param("retloc",
"LB=<input type=hidden name=\"retloc\
" value=\"",
"RB=\" ID=\"Hidden2\">",
"ORD=1",
LAST);
//<input type=hidden name="retarg" value="SKU=17492128" ID="Hidden3">
web_reg_save_param("retarg",
"LB=<input type=hidden name=\"retarg\
" value=\"",
"RB=\" ID=\"Hidden3\">",
"ORD=1",
LAST);
//<input type=hidden name="SKU" value="17492128" ID="Hidden4">
web_reg_save_param("SKU",
"LB=<input type=hidden name=\"SKU\" v
alue=\"",
"RB=\" ID=\"Hidden4\">",
"ORD=1",
LAST);
//<input type=hidden name="COL" value="-99" ID="Hidden5">
web_reg_save_param("COL",
"LB=<input type=hidden name=\"COL\" v
alue=\"",
"RB=\" ID=\"Hidden5\">",
"ORD=1",
LAST);
//<input type="hidden" name="shipSurchAttrValueId" value="0" ID="Hidden6
">
web_reg_save_param("shipSurchAttrValueId",
"LB=<input type=\"hidden\" name=\"shi
pSurchAttrValueId\" value=\"",
"RB=\" ID=\"Hidden6\">",
"ORD=1",
LAST);
//<input type=hidden name=numSKULines value="1" ID="
//<input type="hidden" name="numSKULines" value="4" ID="
web_reg_save_param("numSKULines",
"LB= value=\"",
"RB=\" ID=\"",
"ORD=7",
LAST);
//<input type="hidden" name="SKU0" value="16171417">
//<input type="hidden" name="SKU2" value="17499815">
// <input type="hidden" name="SKU0" value="17492128" ID="Hidden9">
//<input type="hidden" name="SKU0" value="17499629">
web_reg_save_param("SKUID",
"LB=<input type=\"hidden\" name=\"SKU
",
"RB=\">",
"ORD=ALL",
"savelen=8",
"saveoffset=10",
"search=body",
LAST);

web_url("Creative Bath 13-Piece Polyproylene Burgundy Dinnerware Set",


"URL=http://www.bedbathandbeyond.com/product.asp?SKU={randsub2li
nks}&RN={randsublinks}&",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.bedbathandbeyond.com/stylePage.asp?RN={rands
ublinks}&",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
//lr_save_string(lr_eval_string("SKU={randsub2links}"),"SKU_1");
lr_save_string(lr_eval_string("RN={RN}&retloc={retloc}&retarg={SKU_1}&SK
U={randsub2links}&COL={COL}&shipSurchAttrValueId={shipSurchAttrValueId}&numSKULi
nes={numSKULines}"),"Body");
for(i=0;i<atoi(lr_eval_string("{SKUID_count}"));i++)
{
temp=lr_paramarr_idx("SKUID", i+1);
lr_save_string(temp,"New_SKUID");
lr_save_int(i, "ItemIndex");
lr_save_string(lr_eval_string("{Body}&SKU{ItemIndex}={New_SKUID}
&qty{ItemIndex}=1"), "Body");
}
web_custom_request("addItems.asp",
"URL=http://www.bedbathandbeyond.com/addItems.asp?",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Snapshot=t8.inf",
"Mode=HTML",
"Body={Body}",
LAST);
/*
web_submit_data("addItems.asp",
"Action=http://www.bedbathandbeyond.com/addItems.asp?",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://www.bedbathandbeyond.com/product.asp?SKU={randsu
b2links}&RN={randsublinks}&",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=qty0", "Value=2", ENDITEM,
"Name=RN", "Value=806", ENDITEM,
"Name=retloc", "Value=product.asp", ENDITEM,
"Name=retarg", "Value=SKU=17492128", ENDITEM,
"Name=SKU", "Value=17492128", ENDITEM,
"Name=COL", "Value=-99", ENDITEM,
"Name=shipSurchAttrValueId", "Value=0", ENDITEM,
"Name=numSKULines", "Value=1", ENDITEM,
"Name=SKU0", "Value=17492128", ENDITEM,
LAST);
web_url("showCart.asp",
"URL=http://www.bedbathandbeyond.com/showCart.asp?retloc=1&retar
g=SKU%3D{randsub2links}&",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.bedbathandbeyond.com/product.asp?sku={randsu
b2links}&rn={randsublinks}&col=0&mesg=Items+were+added+to+your+cart%2E+%3Ca+href
%3Dhttp%3A%2F%2Fwww%2Ebedbathandbeyond%2Ecom%2FshowCart%2Easp%3Fretloc%3D1%26ret
arg%3DSKU%253D{randsub2links}%26%3EProceed+to+checkout%2E+%3Cimg+src%3D%2Fimg%2F
globalicon%5Fcart%5Foff%2Egif+border%3D0%3E%3C%2Fa%3E&",
"Snapshot=t10.inf",
"Mode=HTML",
LAST);

web_url("removeItem.asp",
"URL=http://www.bedbathandbeyond.com/removeItem.asp?id=545976905
&retloc=1&retarg=SKU%3D{randsub2links}&",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.bedbathandbeyond.com/showCart.asp?retloc=1&r
etarg=SKU%3D{randsub2links}&",
"Snapshot=t12.inf",
"Mode=HTML",
LAST);
*/
return 0;
}

You might also like