updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sms-pl / patch.orangembox.cc
blob587f8d79d1260853ee6e02ea51f69b946f9bb646
1 58c58
2 < form.AddField("_DARGS", "/gear/static/signIn.jsp");
3 ---
4 > form.AddField("_DARGS", "/gear/static/signInLoginBox.jsp");
5 60c60
6 < status = curl.PerformPost("https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signIn.jsp",
7 ---
8 > status = curl.PerformPost("https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signInLoginBox.jsp",
9 62c62
10 < if (status) throw Exception("[2] - https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signIn.jsp");
11 ---
12 > if (status) throw Exception("[2] - https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signInLoginBox.jsp");
13 71c71
14 < if (PcreWrap::pcre_match_all("<span class=\"label\">darmowe:</span>.*<span class=\"value\">([0-9]+)</span>",
15 ---
16 > if (PcreWrap::pcre_match_all("<span class=\"label\">bezpłatne:</span>.*<span class=\"value\">([0-9]+)</span>",
17 79c79
18 < } else if (PcreWrap::pcre_match_all("<span class=\"label\">darmowe:.*>([0-9]+)<.*?z do..adowa..:.*>([0-9]+)<",
19 ---
20 > } else if (PcreWrap::pcre_match_all("<span class=\"label\">bezpłatne:.*>([0-9]+)<.*?z do..adowa..:.*>([0-9]+)<",
21 131c131
22 < if (PcreWrap::pcre_match_all("<span class=\"label\">darmowe:.*>([0-9]+)<.*?z do..adowa..:.*>([0-9]+)<",
23 ---
24 > if (PcreWrap::pcre_match_all("<span class=\"label\">bezpłatne:.*>([0-9]+)<.*?z do..adowa..:.*>([0-9]+)<",
25 138c138
26 < } else if (PcreWrap::pcre_match_all("<span class=\"label\">darmowe:</span>.*<span class=\"value\">([0-9]+)</span>",
27 ---
28 > } else if (PcreWrap::pcre_match_all("<span class=\"label\">bezpłatne:</span>.*<span class=\"value\">([0-9]+)</span>",
29 218c218
30 < form.AddField("_DARGS", "/gear/static/signIn.jsp");
31 ---
32 > form.AddField("_DARGS", "/gear/static/signInLoginBox.jsp");
33 220c220
34 < status = curl.PerformPost("https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signIn.jsp",
35 ---
36 > status = curl.PerformPost("https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signInLoginBox.jsp",
37 222c222
38 < if (status) throw Exception("[2] - https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signIn.jsp");
39 ---
40 > if (status) throw Exception("[2] - https://www.orange.pl/portal/map/map/signin?_DARGS=/gear/static/signInLoginBox.jsp");
41 231c231
42 < if (PcreWrap::pcre_match_all("<span class=\"label\">darmowe:</span>.*<span class=\"value\">([0-9]+)</span>",
43 ---
44 > if (PcreWrap::pcre_match_all("<span class=\"label\">bezpłatne:</span>.*<span class=\"value\">([0-9]+)</span>",
45 233,234c233,234
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]+)<",
48 ---
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]+)<",
51 236c236
52 < cout << "Darmowe: " << match[0][0] << ", płatne: " << match[0][1] << endl;
53 ---
54 > cout << "bezpłatne: " << match[0][0] << ", płatne: " << match[0][1] << endl;