-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_offer_summary.php
90 lines (49 loc) · 8.2 KB
/
get_offer_summary.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
$valueo="offer1qqp83w76wzrummwa0y69flllqacyhp8vv5xjx7ukkfjjje9jpw26egw4ncj4keztfyslknhpygfzy8mmjckdnd6y3s6ezdg6t898a0un7sualuem8an7d07llyukll7wlv7dl3mtumwwwclxmeej78s7rc23a94ltgrr9yncv8zr8zkxu6h0q6sagcjltrdg89zz4nu9g9u7963hfufllthm8dtdquaquaqvlqv7qv7lwl7awvacw0wgwxj04esn3k0watxjpq5vehply5tjnqz0rfmcygfkuh8xh4xn5xsa6eftpwhqwrmlrwmrhnz9t5sxlm7hmzhdvx6xggnw5wj2em2l0zheetpwusg5wnnm7hlf7rlmcqja897zxn48d3vl8u7e985hj0naufyuz5cmm64jggj6rmphd486nxmnqj6ce4etspjs0hg60pyc3va62mu8uv84awpj9nlycdhay30ajage0sklsg0pxs8vkln0hp7wdmv35q6hkfjk06tjdn38g7f0uzwe03c73uz0p02vfnz0pt7ld4cm3qz0z4ep0n4q03srlydzjfqfcevtuthj6h3qjmj0x3ars3tth0khfdfxh566s66s67s2us2aswa0ul6e6acvt5na2fv4yfq4g0an0sadm328t8gtcvag0falk7zyap5y8w9gmms7gnllkg9lnal4ahgf06flxnm79a7xacnd3x3c3qnx4h3xnppu7a3lny8488tuywufm4aq7zdcgk2shx6wv7hy0ezfetwdn55pl6auvl07lqzcdh5wy9h6y2l4ggpj4hx9plrxt5qy9uczd9vd4ad8ja9yh2hjtp77sv07r02y2hpas9l7fmz7gwtnw0ycj7y38u8zrhegf9paj08dx83pfvq4d02735rg0rllaf9n9rkzk26wspvh595xqsxfnkn5t2p9snqraxf4d39gwhrjfjr7pt4f4zcdp3f89net2gdlm7vqcggfnt2qclwn3asxa7av3mx7k3zmnr6vst5rr4l6fp7ncpm2stynjygulcy47rqp03sw3h8a0jcaze763tnpxth90g3jlj6d4k4r807hgz4aud6ed7lr66r03tvscxecvqypkwtkx7p6ry8780ey30mesvhk6ywnhanga69fwaqdyfuaecc94ht6gdqlppwmp7rtuehrfhyferdfwxktlhjy6dfmmrg5xff5a0zkk4qjg7ju0gyfznc8lv0ycc0hcx7qtvflp5ct8sqktrmktn234fsvgh4n3mkmkjfxclnfh7vdncpfh6rnfrjavfz3u3vaw8gvvyfqrpsqscqgvqyxqzrqpphkpwrxy2vks503ex53t9wksd4hzcd5ajut6hac4pccy36rukhz3j7de0g6tf9phr7kx2ffttzh92uzrtas7slnrdrt3h70uxdezqw3l24k2vmhuyts0a2j9u60j6gd088z8dx8kvtv73g3y8ew6mvwjmpg464nlqr7ehumtvdymqf77j9k6k4vfurckyhezdwktm8ssce8dme7ypqydjxmawcep3qayxcnvhyltdhkae59kv2cf3xkz04ve2jl93w45xggyfqy63gs7suzj8zmru6r66pdjvgzmm2z44xhy3673daca5rs09taq46dthjq4jczl7ff8nxpgvrncqtxd0tjv2sdrqtc0ntzm5pncxlmhu62jetq56vn9s7llr2jvsyzh4udr4nkp55qxwqr8qpnsqecqvuqx0mgkvu7s6c6gay7wr32pngkena25wljvkm905kujck7cafcd2d7kmg7h5nu85herlznws3flfzwwnut35eptm8pp3v3n054t7g8t3wexv78uwt9jmg4njuym9pq0dxr085x3zxx5vh5hclz3jwmapk605z0qmjfhheeh7d5vesa0vzym5vjct3hzw53qsd5kfqzrap475y5uwxq6m5thx7p2ps9njsjvvgk8jw2pn9hk5wnal277xhyys5m6h804vtr9c4f6f2zycxgdazzhn4yreatrhdl9thl6uwe62yrfzsscxje47d28msav0weng3m7nl7lrktspfnp9k8rkudesdjhhc5hfkva7z0hg2y3vgnn90840p5ua5403p5ddh22nul7tn45rxzdysq6gqdyqxjqrfqp5sgmlfz35rmz09axdayup7vamfpenex852czfq0kzlhtnr2chg7pyv8wakmksgahma8xxvhre3798kqe9rqh7sr0dyyxjhl938kyxkje9ul9el5fnfvkrms0dv7w3a8eg96j6enl3eazxht8pyx8fa35829enkn4v43e3f0z3v6le5nd8tyfnad0dcn9vtdzcz337rdww9gncayqdkgtln897xx4jn7xq4sk7aad6fssv3ay37cqfkzfz5c78m4dskk0mpr04t2xx39pjy3hgt0ec4mqawcx65scnkjhttsn94cagllnp66wumz23pl4ppwg2lvfwt8k8gr3hpmm0apsyk776rm0txye3kv5rtz5f7mf3tsmgnt928mpqjk8ph26g5hc5cyext3cuvessqqp5qq6qqdqqxsqrgq3h7s9r0z33ddzw78lpytssaac3d95rwzxsa4yw5jww84tac5d0jlz2y6h0upp7dke4e3d0cl3y9w09mjer7mvpe59z28efgr2j08qt70fk48du9np30c6arsafmx7n3twy6mjaw43d93epnzfrkfuhryn9fqc28vsvnygr9fxue9s3degwwdl3uvh4qclf8y50llafrpmp70uwtuvjs0yh4qu49gpv0xw400jpkxf085gfz7uswaumpcmpepkfclvp4lghglcrg99ukdrz87unvl93ys0sjsnwv6fwa5f8x2udwma07ezxmhz47s42mq4py7m3lug0elqh6vjdfpw9cynnjqchhe7dde05muptnd3kq62at7mpma4x8q4laxccqqjes5mretae2ku4aa389zy24ufeut5xl4p2wd58ylr2perw00atnglhuvtxhfpc6npqvqr2qp4qq6sqdgqx5qrtac2xkpnwhve4c9wd35nfmtkgtq5gjkfgrv7ju84y0hc79qlx6e5syj25s0tjq0s2a3n4rj8kk8r8kazjxv0a4qqeru3220tm3lycujaruq66veslr60djdfc6l6gez0rgmunsvukxv93l9any5ue2re4d8mtcykm4na2v9rw0ham3a2mpn8pxsvwux0pncl22jn4hnd64pjn37crtw3wumc8gz0qmmwsdjmgm4l5yd0yuagne2z689ycmp0fjk4y8rz7wtl9rx2esclg3pafj9gfcfd30mksjy2g74cc9j4fkvxp2wfwakgw2x53tv4vddlljjs0xa7y3npfk8nddpmnhhu4vn4rea2exlz280mc3ju4s3kcafljskyhxla93ma9d9r7sqdgqx5qr2qp4qq6svvl4rgm0gynv5xk8am7wtww2tcnyxqec6jhl5wsy9gmxvdzh844jrjt9tm4mcs5w6fmeeuh5427vetztuh5lvgxxeve7nyy4xh4m7zj6ccg6rfmcpk22pyc4pm6hgd5rdkq9enj863fac2vpljm3s3lku0yl657468rvk49p37vsed38n7gqc7yyp3g79wapj3k0puspker079u6caxc6q3nmdca4t6f377ndyzd5xnrnjry0uv72z84t2crj2x82f4yr58qzcuswgd8ernlv5jpv8qd7vfnj8vu8d4gggmm0kqy3zzsm46z9ts47zjmfsy0cp2ju2c2xsykj7jd0hkmm67ua8r4ye3k9zalvdecs8y7ldhr0mta3jtddzw2r3chtw75gzzgy6sqdgqx5qr2qp4qq6nvzl4xg07tauw32fk54dx3ye55lm2xxj7h2z7ddfdhddr04zgtmar2rjphmpsycrf6teq2xxrj9qy6mysaxxrm2630reglyeh3ezj5l9dlgtmm9qe7atwkmw9ednc72jgwhx3nn0q3vewzsvwnmygwlvx9vf53na8j2v2yx034l0tae555l6sw6h8mna2374w58ualg8gx5u0kq6m5thx7p2zdr7wd0jppzysjkcnaea776enjl0vmp3yxm5j0udh02dy55fhhsyc9gy8w6pusa82xnjulu6ulhuaagqa8u57vwlz5hw6jxk4gymhxjtf6v23y4gvvx4jz5x4s5dqfd9lvqvdd2a0t2zhu0t6auffu3a802tc3u40pgljhgph9a869gp080usudwgy9qq6sqdgqx5qr2qp4qcal2q3eue7yuyrhnsndvnr0mdsprh6kphwp90zu7efzxs9azfxl4yvhck4hawltkx3mchux08rlrhg4sl8xeq0dggpecxv89dlpz2yukv47hlvqtn0c7ws7jv70qmgjyfa9djtw9xv0lrsyfrwlj5xmnr2duunf7l3t69a7a80v754e8hxm9uxe7my2eztz04dnw7venkgxutjqxmydh6a3jry43e69u5agky8nakrsnxemxrnk2dxt4n73kfxf9tvcysmkxsjgngyyxy4d7y5wyuhr779sjwgdgn9rvf06culleu9pr56khvdgmjyycx2cl39s6a2p2hxz3v89fhe3eues7evldjr7majfjg9gzhgx9rsk6mdmc0rf85n3ya9nvm3p0gqx5qr2qp4qq6sqdgxx063udslcn6s6h7z5j7gwe02w9z0waqh2c8tj550ernjw0reyrfylq9qlgl8puxukxpv79h26h35whasn7000lm75dq9jdexpfu5jp0v8wlwcmll9c7djhcelwkn3fwxs3wjtwf2tm2ezwu98gmesnwkquawuuw3hrfu0ff9lsj0nssp9xzvrc77jm026x53vuvvt722w8mqdd68l2t35889wapej98w6vf5n4nw5wv2m8hs9wml8pxdtjwqldq6r2deff73swjmujj7ph8eau5qzfvwe5vpf5c8y4e3al05hxz37ftsd4xkj6xed30756z0e435vqfdeamlxjxdggu6xqytzckgmlszkfufanwemytfe8h55jxu09yvm6g47q94qq6sqdgqx5qr2qp4wcdm28sag5l7hw9crmgu05n9mqynf5cgh9keu5l65tdvan9v7cjqra96l0g5gr699w3y4zc9gfd85ae78w28k5prpx8wdhdtvu6dr4t39ta0jl0s32g2r9sfda6cn0mpjtanu06em42ac2d3hpzl6gp908jjjmuy5mmjqj9j7xelhpltw4eqx0pha50936vhkcr7qeyrasxhata4rfwnefmv5thkf4a43sxqa4fff2u7v8wstz7t47z88eupga8p3ejnvrrftv8cflv5sdgu73unf4leznm5p6nshrmcdgdqm8hjrkulmv2laxq7cja9quu7y7g65hu783sp9kh5mncyz9gdtahmgnvhgnufyz7nu0q89d2c7ag6vne76h57ck8756lltjtz5ecq9qq6sqdgqx5qr2qp4qcal2q3nudzp2a879qs4fxwe2lx3e9afxp8pag6q5utazldf35mfvn0amzaz99zde7npat797re0vmayhextaaqs6z6nmwex68g3nvpzxau94hpuyk09fp2chwy2fn02rm38kvjae6qdnshqhl2amygfakq094fytv4zzrrlzgrr9amwa86thfusgaled8yhmf5jphp9ecns7gqmv3klm5xgdv5m8j8pmufkkmywc2aw5hgx5mmp8axphxwhneteg7r48p09vt7vrzr2f59zzvv7h3rrjy3eecgr8jr6963wy98quh2nz3pvuh86yqvffx9k0094zha8dd7fs5tqew36gwj273e04shmrzz7w3dh0gvlsz2nezjtlv4fw34uxkt73dk8ss0qjmjgqx5qr2qp4qq6sqd0hrg6dy3wndhz4zyjqnm8faj62pe9c0fc7t2ne56fkpdksjp22wrea834dg6c0njr9jear3n3mtpuj5lhmh5rrtmct934fvx33h3j3h52ly3dkpzjm05vzphj9cv7j5xx3j3wnmem8slajmjwflyz5e4nwrjlgx7j6kdqzf6v7jnx3rnkju696j7zy4ne4n2ej85fjv8mqd06h7mjfm7jud0kz28ythjjsv75jnnwh8nf95c97c7m8gge4qf7l8gpg4jaswsauurlg0ght8sqa8flf3dnxuhryg5jerutmukxcwufm5akt6fvt9kphc2ztfdlrallyv837uktqpfjgak324jhf2cz8eezkavjmg6epxl0hffl9ar8l6jv8g6try2d5he7wrz2fy5mqp4sq6cqdvqxkqrtp3n7k9rtg3k7j6k0z3c9jwt565azgdefyepyu6f58rjmcud9rjks66gxue0kvr0v0cn590kec2vjszd3fd8r0dv2xjl80647gnx8sgzkla2szx8hln8g7ctuvksjuae65vthlsxy6rtfvx5zlceqn59wzq4fcupnwxe686r98h67zytha04fd4l68xmsdd7pe20a7uxg5palzzagm6auvrmasqnac5q3d8d9lprktlqfry9fw5gnjnaqa35f8qqszkaraupqr9a8kmyla28tngjhe9zqtjhl6nf20eyf289ff6cu5tyla6nur5d6xpwktwhm6jmyw7ypwggxv93e7ww989qf0kpg7s59dz2vdg6dlt2ppwhnxc3gkpuadyrjwke0p3yp093zqfhd80pu9t3jwcmmg9qcynnpky4v85dxaa56jycankylh4c8lgdl8jyew8m93e7tas56wkq4efk8mm4umrx9x0chx486gcfurmcp7c7y399slc5pwl";
//offer
$pdata=array('offer' => $valueo);
$postfields="get_offer_summary";
$url="https://localhost/".$postfields;
$postData = json_encode($pdata);
$ch = curl_init();
$params[CURLOPT_URL] = $url;
$params[CURLOPT_HEADER] = false;
$params[CURLOPT_RETURNTRANSFER] = true;
$params[CURLOPT_FOLLOWLOCATION] = true;
$params[CURLOPT_POST] = true;
$params[CURLOPT_PORT] = 9257;
$params[CURLOPT_POSTFIELDS] = $postData;
$params[CURLOPT_SSL_VERIFYPEER] = false;
$params[CURLOPT_SSL_VERIFYHOST] = false;
$params[CURLOPT_SSLCERTTYPE] = 'PEM';
$params[CURLOPT_SSLCERT] = 'pcrt.pem';
$params[CURLOPT_SSLKEYTYPE] = 'PEM';
$params[CURLOPT_SSLKEY] = 'pkey.pem';
curl_setopt_array($ch, $params);
$content = curl_exec($ch);
$output = curl_getinfo($ch);
curl_close($ch);
//echo $content;
//print_r(json_decode($content, true));
//print_r($output);
$total=json_decode($content, true);
//echo $key." ".$total['valid']."<br>";
print_r($total);
echo "<br><br>";
foreach ($total as $k=>$v) {
echo "key=$k<br>";
foreach($v as $a=>$b){
echo "key=$a<br>";
if($a=="offered"){
foreach($b as $c=>$d){
echo "okey=$c<br>";
echo "ovalue=$d<br>"; }
}
if($a=="requested"){
foreach($b as $f=>$g){
echo "rkey=$f<br>";
echo "rvalue=$g<br>"; }
}
}
}
?>