Swift_Swiftplugin - Version 1.1.10

Version Notes

Responds to Paypal Express Request

Download this release

Release Info

Developer Simon Cooper
Extension Swift_Swiftplugin
Version 1.1.10
Comparing to
See all releases


Code changes from version 1.1.9 to 1.1.10

app/code/community/Swift/Swiftplugin/Helper/Data.php CHANGED
@@ -49,6 +49,17 @@ class Swift_Swiftplugin_Helper_Data extends Mage_Core_Helper_Abstract {
49
  }
50
  return $data;
51
  }
 
 
 
 
 
 
 
 
 
 
 
52
  }
53
 
54
  ?>
49
  }
50
  return $data;
51
  }
52
+
53
+ /**
54
+ * For Debugging
55
+ */
56
+ public function getExtensionInformation() {
57
+ $str = '';
58
+ if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
59
+ $str = 'working over https';
60
+ }
61
+ return (string) Mage::getConfig()->getNode()->modules->Swift_Swiftplugin->version .'<br/>'. $_SERVER['HTTP_HOST'] .'<br/>'.$str;
62
+ }
63
  }
64
 
65
  ?>
app/code/community/Swift/Swiftplugin/Model/XmlProduct.php CHANGED
@@ -49,9 +49,14 @@ class Swift_Swiftplugin_Model_XmlProduct {
49
  }
50
  }
51
 
52
- header('Content-Type: application/xml; charset=utf-8');
53
- echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n" . xml::urlset(xml::products(implode('',$xmlRow)), array('xmlns:g' => "http://base.google.com/ns/1.0"));
54
- die();
 
 
 
 
 
55
  }
56
  }
57
 
49
  }
50
  }
51
 
52
+ if (isset($_GET['version'])) {
53
+ echo (string) Mage::helper('swift/Data')->getExtensionInformation();
54
+ }
55
+ else {
56
+ header('Content-Type: application/xml; charset=utf-8');
57
+ echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n" . xml::urlset(xml::products(implode('',$xmlRow)), array('xmlns:g' => "http://base.google.com/ns/1.0"));
58
+ die();
59
+ }
60
  }
61
  }
62
 
app/code/community/Swift/Swiftplugin/etc/config.xml CHANGED
@@ -5,7 +5,7 @@
5
  <modules>
6
  <!-- This must exactly match the namespace and module's folder names, with directory separators replaced by underscores -->
7
  <Swift_Swiftplugin>
8
- <version>1.1.9</version>
9
  </Swift_Swiftplugin>
10
  </modules>
11
  <!-- Configure our module's behavior in the frontend scope -->
5
  <modules>
6
  <!-- This must exactly match the namespace and module's folder names, with directory separators replaced by underscores -->
7
  <Swift_Swiftplugin>
8
+ <version>1.1.10</version>
9
  </Swift_Swiftplugin>
10
  </modules>
11
  <!-- Configure our module's behavior in the frontend scope -->
app/code/community/Swift/Swiftplugin/sql/swift_setup/{upgrade-1.1.2-1.1.9.php → upgrade-1.1.2-1.1.10.php} RENAMED
File without changes
lib/SwiftAPI/SwiftAPI.php CHANGED
@@ -23,8 +23,7 @@ class SwiftAPI
23
  const OPERATION_SENDMAIL = 'sendmail';
24
  const OPERATION_UNSUBSCRIBE = 'unsubscribe';
25
 
26
- //const SWIFTAPI_CRM_URL = '//api.swiftcrm.net';
27
- const SWIFTAPI_CRM_URL = '//swiftsystem.daniel.netready.lan';
28
 
29
 
30
  //////////////////////////////////////////////////////////////////////////////
23
  const OPERATION_SENDMAIL = 'sendmail';
24
  const OPERATION_UNSUBSCRIBE = 'unsubscribe';
25
 
26
+ const SWIFTAPI_CRM_URL = '//api.swiftcrm.net';
 
27
 
28
 
29
  //////////////////////////////////////////////////////////////////////////////
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Swift_Swiftplugin</name>
4
- <version>1.1.9</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/LGPL-3.0">LGPL</license>
7
  <channel>community</channel>
@@ -20,9 +20,9 @@ The extension is easy to set up and uses Magento&#x2019;s built in features to c
20
  &lt;/p&gt;</description>
21
  <notes>Responds to Paypal Express Request</notes>
22
  <authors><author><name>Simon Cooper</name><user>Netready</user><email>simon@netready.biz</email></author></authors>
23
- <date>2015-02-23</date>
24
- <time>10:48:43</time>
25
- <contents><target name="magelib"><dir name="libXML"><file name="xml.php" hash="fc4d7c79c7b7ea2ac75f28c008cde8eb"/></dir><dir name="SwiftAPI"><file name="SwiftAPI.php" hash="3015ef2c2c18a10b60d8bd71d5f5d31a"/><file name="SwiftAPI_Exception.php" hash="879b899a7961f4de1212b7296ccafb16"/><file name="SwiftAPI_Product.php" hash="063922cccb485d81c6022de5c4e8e044"/><file name="SwiftAPI_Request.php" hash="5c80deaeca64897ca886d3e08dd2cc27"/><file name="SwiftAPI_Request_Cart.php" hash="f8955c78200ddb0512adb5214fd64bb2"/><file name="SwiftAPI_Request_Home.php" hash="9268da121dd10db50d5c2675afd1c65e"/><file name="SwiftAPI_Request_Order.php" hash="cd8ce90614468bd4347df3c541482a4b"/><file name="SwiftAPI_Request_PastOrder.php" hash="be620e2e35d6634e6a616431f5312527"/><file name="SwiftAPI_Request_Product.php" hash="e5fab27bb2dd45946ed8c143a18fe3c4"/><file name="SwiftAPI_Request_SendMail.php" hash="6e520291609cd87d95837606b0f9f7e5"/><file name="SwiftAPI_Request_Subscription.php" hash="5545738b941d8ca4dca69b6059a0cce4"/><file name="SwiftAPI_Request_Unsubscribe.php" hash="78aa37cc0ecb98d501674350a4a409c9"/><file name="SwiftAPI_Request_ViewMail.php" hash="4155b64e3d152a37750d34dfd6839130"/><dir name="doc"><file name="SwiftAPI-Specification.html" hash="093cb08b66a596ebaeb0b50b4a0f8d79"/></dir><file name="index.php" hash="82886bb98883bd5868ea04c7d8c88ba5"/><file name="php.ini" hash="ef29c923925a1d1bbc8879c22297daa4"/></dir></target><target name="magecommunity"><dir name="Swift"><dir name="Swiftplugin"><dir name="Block"><dir name="Adminhtml"><dir name="Swift"><dir name="Edit"><file name="Form.php" hash="bd80ab8170f7f2286f13ac579e5249d9"/><dir name="Tab"><file name="Form.php" hash="04a1dcfb31537ff3ab7028066ed46967"/><file name="Instruct.php" hash="2fd453261a19b833363405c4ae2bcd34"/></dir><file name="Tabs.php" hash="0c556dafe429af303e3a908ccbb859aa"/></dir><file name="Edit.php" hash="934add564cd4406ef0a439700faa73be"/></dir></dir><file name="Swiftblock.php" hash="ef4796eaf44aa8e4a9b144e5a9365166"/></dir><dir name="Helper"><file name="Data.php" hash="85c5cbc3567cc52243158a204b0897fc"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Swift"><file name="Collection.php" hash="82de0fe56cd875d3e78c8fc690424ee1"/></dir><file name="Swift.php" hash="252d5f2ecb1119804b415758d2db6800"/></dir><file name="Observer.php" hash="139db0541de06e7bed17ad9d40fcd89b"/><file name="Swift.php" hash="1f9e49d4db7f8987cfd8858061fedc6a"/><file name="XmlProduct.php" hash="39bc19d44a3c877697d06382b0ad669a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="287421a261f2a8847f9ffbe45160fb83"/></dir><file name="MailController.php" hash="511d30670177eb7286b71afc1ea5bdef"/><file name="XmlController.php" hash="97b777935db5174501034493dd561099"/></dir><dir name="etc"><file name="config.xml" hash="f18110d251b18863bbd3b463e99dfdfb"/></dir><dir name="sql"><dir name="swift_setup"><file name="install-1.1.2.php" hash="00832a00c34cb4c997a96330cb28cbfb"/><file name="upgrade-1.1.2-1.1.9.php" hash="cbe3c3fa07facb7b720d7dd518acbeca"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="swift.xml" hash="d80a5229e30cf4b76f5a5150ac1c27c3"/></dir><dir name="template"><dir name="swift"><file name="swiftplugin.phtml" hash="d4d25148e09529e457b6436d7655627b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Swift_all.xml" hash="0ae5a788c805a9fc79b402fe7a02e54d"/></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.4.0</min><max>6.0.0</max></php><extension><name>mcrypt</name><min/><max/></extension></required></dependencies>
28
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Swift_Swiftplugin</name>
4
+ <version>1.1.10</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/LGPL-3.0">LGPL</license>
7
  <channel>community</channel>
20
  &lt;/p&gt;</description>
21
  <notes>Responds to Paypal Express Request</notes>
22
  <authors><author><name>Simon Cooper</name><user>Netready</user><email>simon@netready.biz</email></author></authors>
23
+ <date>2015-03-11</date>
24
+ <time>16:29:44</time>
25
+ <contents><target name="magelib"><dir name="libXML"><file name="xml.php" hash="fc4d7c79c7b7ea2ac75f28c008cde8eb"/></dir><dir name="SwiftAPI"><file name="SwiftAPI.php" hash="69d2544d19ff2fa099acf8d45b980abd"/><file name="SwiftAPI_Exception.php" hash="879b899a7961f4de1212b7296ccafb16"/><file name="SwiftAPI_Product.php" hash="063922cccb485d81c6022de5c4e8e044"/><file name="SwiftAPI_Request.php" hash="5c80deaeca64897ca886d3e08dd2cc27"/><file name="SwiftAPI_Request_Cart.php" hash="f8955c78200ddb0512adb5214fd64bb2"/><file name="SwiftAPI_Request_Home.php" hash="9268da121dd10db50d5c2675afd1c65e"/><file name="SwiftAPI_Request_Order.php" hash="cd8ce90614468bd4347df3c541482a4b"/><file name="SwiftAPI_Request_PastOrder.php" hash="be620e2e35d6634e6a616431f5312527"/><file name="SwiftAPI_Request_Product.php" hash="e5fab27bb2dd45946ed8c143a18fe3c4"/><file name="SwiftAPI_Request_SendMail.php" hash="6e520291609cd87d95837606b0f9f7e5"/><file name="SwiftAPI_Request_Subscription.php" hash="5545738b941d8ca4dca69b6059a0cce4"/><file name="SwiftAPI_Request_Unsubscribe.php" hash="78aa37cc0ecb98d501674350a4a409c9"/><file name="SwiftAPI_Request_ViewMail.php" hash="4155b64e3d152a37750d34dfd6839130"/><dir name="doc"><file name="SwiftAPI-Specification.html" hash="093cb08b66a596ebaeb0b50b4a0f8d79"/></dir><file name="index.php" hash="82886bb98883bd5868ea04c7d8c88ba5"/><file name="php.ini" hash="ef29c923925a1d1bbc8879c22297daa4"/></dir></target><target name="magecommunity"><dir name="Swift"><dir name="Swiftplugin"><dir name="Block"><dir name="Adminhtml"><dir name="Swift"><dir name="Edit"><file name="Form.php" hash="bd80ab8170f7f2286f13ac579e5249d9"/><dir name="Tab"><file name="Form.php" hash="04a1dcfb31537ff3ab7028066ed46967"/><file name="Instruct.php" hash="2fd453261a19b833363405c4ae2bcd34"/></dir><file name="Tabs.php" hash="0c556dafe429af303e3a908ccbb859aa"/></dir><file name="Edit.php" hash="934add564cd4406ef0a439700faa73be"/></dir></dir><file name="Swiftblock.php" hash="ef4796eaf44aa8e4a9b144e5a9365166"/></dir><dir name="Helper"><file name="Data.php" hash="cad7e7ffcde09cdd3c089b42644e9d66"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Swift"><file name="Collection.php" hash="82de0fe56cd875d3e78c8fc690424ee1"/></dir><file name="Swift.php" hash="252d5f2ecb1119804b415758d2db6800"/></dir><file name="Observer.php" hash="139db0541de06e7bed17ad9d40fcd89b"/><file name="Swift.php" hash="1f9e49d4db7f8987cfd8858061fedc6a"/><file name="XmlProduct.php" hash="881b5e4a1943749994048710c29ff984"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="287421a261f2a8847f9ffbe45160fb83"/></dir><file name="MailController.php" hash="511d30670177eb7286b71afc1ea5bdef"/><file name="XmlController.php" hash="97b777935db5174501034493dd561099"/></dir><dir name="etc"><file name="config.xml" hash="a254aefe349f59f2b711208fd6d20d6c"/></dir><dir name="sql"><dir name="swift_setup"><file name="install-1.1.2.php" hash="00832a00c34cb4c997a96330cb28cbfb"/><file name="upgrade-1.1.2-1.1.10.php" hash="cbe3c3fa07facb7b720d7dd518acbeca"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="swift.xml" hash="d80a5229e30cf4b76f5a5150ac1c27c3"/></dir><dir name="template"><dir name="swift"><file name="swiftplugin.phtml" hash="d4d25148e09529e457b6436d7655627b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Swift_all.xml" hash="0ae5a788c805a9fc79b402fe7a02e54d"/></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.4.0</min><max>6.0.0</max></php><extension><name>mcrypt</name><min/><max/></extension></required></dependencies>
28
  </package>