cashbill - Version 1.2.0

Version Notes

Stabilna wersja 1.2.0

Download this release

Release Info

Developer CashBill S.A.
Extension cashbill
Version 1.2.0
Comparing to
See all releases


Code changes from version 1.1.1 to 1.2.0

app/code/community/Platnosci/Cashbill/controllers/CheckController.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $version = '1.2.0';
3
+ $ch = curl_init();
4
+ curl_setopt($ch, CURLOPT_URL, "http://www.cashbill.pl/ajax/module-version-checker.php?cmd=info&module=Magento");
5
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
6
+ $response = curl_exec($ch);
7
+ curl_close($ch);
8
+
9
+ $response = json_decode($response);
10
+
11
+ if(empty($response))
12
+ {
13
+
14
+ echo '';
15
+ exit();
16
+
17
+ }
18
+
19
+ if ($response->version == $version)
20
+ {
21
+ echo '<p style="text-align:center;">Posiadasz najnowszą wersję modułu płatności CashBill dla '.$response->name.'</p>';
22
+ exit();
23
+ }
24
+
25
+ echo '<p style="text-align:center;">Aktualnie posiadasz wersję ' . $version . ' jednak jest już dostępna nowsza wersja ' . $response->version . '.</p><p style="text-align:center;"> Możesz ją pobrać korzystając z tego linku <a href="http://www.cashbill.pl/' . $response->link . '">moduł dla ' . $response->name . ' w wersji ' . $response->version . '</a><p>';
app/code/community/Platnosci/Cashbill/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Platnosci_Cashbill>
5
- <version>1.1.1</version>
6
  <depends>
7
  <Mage_Payment />
8
  </depends>
2
  <config>
3
  <modules>
4
  <Platnosci_Cashbill>
5
+ <version>1.2.0</version>
6
  <depends>
7
  <Mage_Payment />
8
  </depends>
app/code/community/Platnosci/Cashbill/etc/system.xml CHANGED
@@ -16,6 +16,8 @@
16
  var baseUrl = location.href.split('admin')[0].replace(/index\.php\//,'') || '<adres_Twojego_sklepu>';
17
 
18
  </script>
 
 
19
  <div>
20
  <lable><strong>Instalacja</strong></lable>
21
  <p>Poniższe dane wprowadz w swoim panelu na stronie <a href="http://panel.cashbill.pl/">Panel CashBill</a></p>
@@ -38,6 +40,13 @@ document.getElementById("instrukcja").href = baseUrl+"/app/design/adminhtml/defa
38
  document.getElementById("pdf-icon").src = baseUrl+"/app/design/adminhtml/default/default/template/platnosci/cashbill/web/pdf-icon.png";
39
  document.getElementById("backurl").value = baseUrl+"/index.php/cashbill/cashbill/return";
40
  document.getElementById("serverurl").value = baseUrl+"/index.php/cashbill/cashbill/serwer";
 
 
 
 
 
 
 
41
  </script>
42
  ]]>
43
  </comment>
16
  var baseUrl = location.href.split('admin')[0].replace(/index\.php\//,'') || '<adres_Twojego_sklepu>';
17
 
18
  </script>
19
+ <div id="wersja">
20
+ </div>
21
  <div>
22
  <lable><strong>Instalacja</strong></lable>
23
  <p>Poniższe dane wprowadz w swoim panelu na stronie <a href="http://panel.cashbill.pl/">Panel CashBill</a></p>
40
  document.getElementById("pdf-icon").src = baseUrl+"/app/design/adminhtml/default/default/template/platnosci/cashbill/web/pdf-icon.png";
41
  document.getElementById("backurl").value = baseUrl+"/index.php/cashbill/cashbill/return";
42
  document.getElementById("serverurl").value = baseUrl+"/index.php/cashbill/cashbill/serwer";
43
+
44
+ var xmlhttp;
45
+ xmlhttp=new XMLHttpRequest();
46
+ xmlhttp.open("GET",baseUrl+"/app/code/community/Platnosci/Cashbill/controllers/CheckController.php",false);
47
+ xmlhttp.send();
48
+
49
+ document.getElementById("wersja").innerHTML = xmlhttp.responseText;
50
  </script>
51
  ]]>
52
  </comment>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>cashbill</name>
4
- <version>1.1.1</version>
5
  <stability>stable</stability>
6
  <license>MIT License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Modu&#x142; p&#x142;atno&#x15B;ci CashBill</summary>
10
  <description>Dzi&#x119;ki modu&#x142;owi mo&#x17C;esz zaimplementowa&#x107; proste p&#x142;atno&#x15B;ic internetowe z wykorzystanie cashbill.pl</description>
11
- <notes>Stabilna wersja 1.1.1</notes>
12
  <authors><author><name>CashBill S.A.</name><user>cashbill</user><email>lukasz.firek@cashbill.pl</email></author></authors>
13
- <date>2015-01-05</date>
14
- <time>11:37:34</time>
15
- <contents><target name="magecommunity"><dir name="Platnosci"><dir name="Cashbill"><dir name="Block"><dir name="Form"><file name="Cashbill.php" hash="87f212bc545259d8f36490050ea52184"/></dir><dir name="Info"><file name="Cashbill.php" hash="3186b1b56e743cba5cfbc95741af3e3e"/></dir><dir name="Payment"><dir name="Cashbill"><file name="Redirect.php" hash="9cf18bc23bb84f6625eee6dfd509bae7"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="a379f479daa6b5ae48060c2c8338a049"/></dir><dir name="Model"><dir name="Payment"><file name="Cashbill.php" hash="c194700b8c9d309317995ab60b92f491"/></dir></dir><dir name="controllers"><file name="CashbillController.php" hash="515a6550121cb980ddcfc2be31b876d7"/></dir><dir name="etc"><file name="config.xml" hash="561cdf0c731365ba6c3523f3d1691c64"/><file name="system.xml" hash="dfeb682785ef87672f6e54b5b36c1be0"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="platnosci"><dir name="cashbill"><file name="form.phtml" hash="13b8f868d56c95d1965e86775449c394"/><file name="info.phtml" hash="01d8487be6c7b0019a926ff1e8c66893"/><dir name="web"><file name="instrukcja.pdf" hash="174d1b2681202d5bff27eb043f84602e"/><file name="pdf-icon.png" hash="28cdd201144351e73035a9a0e87873c0"/><file name=".htaccess" hash="b203ef4b9ebf35472826208edae9b525"/></dir><file name=".htaccess" hash="b203ef4b9ebf35472826208edae9b525"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="platnosci"><dir name="cashbill"><file name="form.phtml" hash="ca71e26277dec846d2d2df101faf2b0e"/><file name="info.phtml" hash="01d8487be6c7b0019a926ff1e8c66893"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Platnosci_Cashbill.xml" hash="2f740e398944f2422f4504b69d8a32bb"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>cashbill</name>
4
+ <version>1.2.0</version>
5
  <stability>stable</stability>
6
  <license>MIT License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Modu&#x142; p&#x142;atno&#x15B;ci CashBill</summary>
10
  <description>Dzi&#x119;ki modu&#x142;owi mo&#x17C;esz zaimplementowa&#x107; proste p&#x142;atno&#x15B;ic internetowe z wykorzystanie cashbill.pl</description>
11
+ <notes>Stabilna wersja 1.2.0</notes>
12
  <authors><author><name>CashBill S.A.</name><user>cashbill</user><email>lukasz.firek@cashbill.pl</email></author></authors>
13
+ <date>2015-01-09</date>
14
+ <time>11:10:07</time>
15
+ <contents><target name="magecommunity"><dir name="Platnosci"><dir name="Cashbill"><dir name="Block"><dir name="Form"><file name="Cashbill.php" hash="87f212bc545259d8f36490050ea52184"/></dir><dir name="Info"><file name="Cashbill.php" hash="3186b1b56e743cba5cfbc95741af3e3e"/></dir><dir name="Payment"><dir name="Cashbill"><file name="Redirect.php" hash="9cf18bc23bb84f6625eee6dfd509bae7"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="a379f479daa6b5ae48060c2c8338a049"/></dir><dir name="Model"><dir name="Payment"><file name="Cashbill.php" hash="c194700b8c9d309317995ab60b92f491"/></dir></dir><dir name="controllers"><file name="CashbillController.php" hash="515a6550121cb980ddcfc2be31b876d7"/><file name="CheckController.php" hash="9db7ce9c9c4abdd4ac72cc72d2dcbedb"/></dir><dir name="etc"><file name="config.xml" hash="3d324bcaf14ad3c674ef3a1a4a6c97b3"/><file name="system.xml" hash="5c72d83640716a2c93b8ded741144254"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="platnosci"><dir name="cashbill"><file name="form.phtml" hash="13b8f868d56c95d1965e86775449c394"/><file name="info.phtml" hash="01d8487be6c7b0019a926ff1e8c66893"/><dir name="web"><file name="instrukcja.pdf" hash="174d1b2681202d5bff27eb043f84602e"/><file name="pdf-icon.png" hash="28cdd201144351e73035a9a0e87873c0"/><file name=".htaccess" hash="b203ef4b9ebf35472826208edae9b525"/></dir><file name=".htaccess" hash="b203ef4b9ebf35472826208edae9b525"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="platnosci"><dir name="cashbill"><file name="form.phtml" hash="ca71e26277dec846d2d2df101faf2b0e"/><file name="info.phtml" hash="01d8487be6c7b0019a926ff1e8c66893"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Platnosci_Cashbill.xml" hash="2f740e398944f2422f4504b69d8a32bb"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>