2 < form
.AddField("_DARGS", "/gear/static/signIn.jsp");
4 > form
.AddField("_DARGS", "/gear/static/signInLoginBox.jsp");
6 < status
= curl
.PerformPost("https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signIn.jsp",
8 > status
= curl
.PerformPost("https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signInLoginBox.jsp",
10 < if (status
) throw Exception("[2] - https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signIn.jsp");
12 > if (status
) throw Exception("[2] - https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signInLoginBox.jsp");
14 < if (PcreWrap::pcre_match_all("<span class=\"label\">darmowe:</span>.*<span class=\"value\">([0-9]+)</span>",
16 > if (PcreWrap::pcre_match_all("<span class=\"label\">bezpłatne:</span>.*<span class=\"value\">([0-9]+)</span>",
18 < } else if (PcreWrap::pcre_match_all("<span class=\"label\">darmowe:.*>([0-9]+)<.*?z do..adowa..:.*>([0-9]+)<",
20 > } else if (PcreWrap::pcre_match_all("<span class=\"label\">bezpłatne:.*>([0-9]+)<.*?z do..adowa..:.*>([0-9]+)<",
22 < if (PcreWrap::pcre_match_all("<span class=\"label\">darmowe:.*>([0-9]+)<.*?z do..adowa..:.*>([0-9]+)<",
24 > if (PcreWrap::pcre_match_all("<span class=\"label\">bezpłatne:.*>([0-9]+)<.*?z do..adowa..:.*>([0-9]+)<",
26 < } else if (PcreWrap::pcre_match_all("<span class=\"label\">darmowe:</span>.*<span class=\"value\">([0-9]+)</span>",
28 > } else if (PcreWrap::pcre_match_all("<span class=\"label\">bezpłatne:</span>.*<span class=\"value\">([0-9]+)</span>",
30 < form
.AddField("_DARGS", "/gear/static/signIn.jsp");
32 > form
.AddField("_DARGS", "/gear/static/signInLoginBox.jsp");
34 < status
= curl
.PerformPost("https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signIn.jsp",
36 > status
= curl
.PerformPost("https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signInLoginBox.jsp",
38 < if (status
) throw Exception("[2] - https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signIn.jsp");
40 > if (status
) throw Exception("[2] - https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signInLoginBox.jsp");
42 < if (PcreWrap::pcre_match_all("<span class=\"label\">darmowe:</span>.*<span class=\"value\">([0-9]+)</span>",
44 > if (PcreWrap::pcre_match_all("<span class=\"label\">bezpłatne:</span>.*<span class=\"value\">([0-9]+)</span>",
46 < cout
<< "Darmowe: " << match
[0][0] << endl
;
47 < } else if (PcreWrap::pcre_match_all("<span class=\"label\">darmowe:.*>([0-9]+)<.*?z do..adowa..:.*>([0-9]+)<",
49 > cout
<< "bezpłatne: " << match
[0][0] << endl
;
50 > } else if (PcreWrap::pcre_match_all("<span class=\"label\">bezpłatne:.*>([0-9]+)<.*?z do..adowa..:.*>([0-9]+)<",
52 < cout
<< "Darmowe: " << match
[0][0] << ", płatne: " << match
[0][1] << endl
;
54 > cout
<< "bezpłatne: " << match
[0][0] << ", płatne: " << match
[0][1] << endl
;