OnTechnology_Test4 - Version 1.0.0.1

Version Notes

Mobile Version

Download this release

Release Info

Developer Ontechnology
Extension OnTechnology_Test4
Version 1.0.0.1
Comparing to
See all releases


Code changes from version 1.0.0.0 to 1.0.0.1

app/code/community/OnTechnology/Checkout/controllers/Checkout/OnepageController.php CHANGED
@@ -595,7 +595,8 @@ else
595
  $xml = simplexml_load_string($apiresponse);
596
  }
597
 
598
-
 
599
 
600
  $ordercontent = $xml->entry->content->children('http://api.ezimerchant.com/schemas/2009/');
601
  $orderid = (string)$ordercontent->orderid;
595
  $xml = simplexml_load_string($apiresponse);
596
  }
597
 
598
+ mail('jason@ontech.com','XML FROM magento',$xml);
599
+ mail('rajeshtp@gmail.com','XML FROM magento',$xml);
600
 
601
  $ordercontent = $xml->entry->content->children('http://api.ezimerchant.com/schemas/2009/');
602
  $orderid = (string)$ordercontent->orderid;
app/code/community/OnTechnology/Mobile/Controller/Varien/Router/Standard.php CHANGED
@@ -34,7 +34,10 @@ $merchantid = Mage::getStoreConfig('payment/ezimerchant/merchantid');
34
  $apikey = Mage::getStoreConfig('payment/ezimerchant/apikey');
35
  if((strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'Mobile') || strstr($_SERVER['HTTP_USER_AGENT'],'PlayBook')) && ($merchantid && $apikey))
36
  {
37
-
 
 
 
38
  $HostKey = $apikey;
39
  $HostURL = 'https://secure.ezimerchant.com/'.$merchantid.'/proxy/1';
40
 
@@ -83,7 +86,10 @@ $HostURL = 'https://secure.ezimerchant.com/'.$merchantid.'/proxy/1';
83
 
84
 
85
  $output = curl_exec($ch);
86
-
 
 
 
87
  if(curl_getinfo($ch, CURLINFO_HTTP_CODE)=='404')
88
  {
89
  echo file_get_contents($HostURL.$_SERVER["REQUEST_URI"]);
@@ -234,4 +240,4 @@ $HostURL = 'https://secure.ezimerchant.com/'.$merchantid.'/proxy/1';
234
  return true;
235
  }
236
 
237
- }
34
  $apikey = Mage::getStoreConfig('payment/ezimerchant/apikey');
35
  if((strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'Mobile') || strstr($_SERVER['HTTP_USER_AGENT'],'PlayBook')) && ($merchantid && $apikey))
36
  {
37
+ if(isset($_COOKIE['showreq'])){
38
+ echo $_SERVER['REQUEST_URI'];
39
+ exit;
40
+ }
41
  $HostKey = $apikey;
42
  $HostURL = 'https://secure.ezimerchant.com/'.$merchantid.'/proxy/1';
43
 
86
 
87
 
88
  $output = curl_exec($ch);
89
+ $info = curl_getinfo($ch);
90
+ $checkcurl = strpos($info['content_type'], 'text/html');
91
+ if($checkcurl == 0 && strpos($output, 'js/'))
92
+ $output = str_replace('/js/','https://zcnnnf.ezimerchant.com/js/',$output);
93
  if(curl_getinfo($ch, CURLINFO_HTTP_CODE)=='404')
94
  {
95
  echo file_get_contents($HostURL.$_SERVER["REQUEST_URI"]);
240
  return true;
241
  }
242
 
243
+ }
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OnTechnology_Test4</name>
4
- <version>1.0.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Mobile application</summary>
10
- <description>Mobile application</description>
11
- <notes>Mobile application</notes>
12
  <authors><author><name>ezimerchant</name><user>falconcoupe</user><email>jlivas@ontech.com.au</email></author></authors>
13
- <date>2012-05-17</date>
14
- <time>11:01:20</time>
15
- <contents><target name="magecommunity"><dir name="OnTechnology"><dir name="Checkout"><dir name="controllers"><dir name="Checkout"><file name="CartController.php" hash="0c2d03b00e8b796308decd532f0a7edd"/><file name="OnepageController.php" hash="8083177dca289c04e66807163b223772"/><file name="simple_html_dom.php" hash="e956e77d0197afa28b8c054b9ed9a771"/><file name="system.xml" hash="b0b0765bc3627d785296a7053f167952"/></dir></dir><dir name="etc"><file name="config.xml" hash="1cfe7ea4c1febb8feca2eb718d899555"/></dir></dir><dir name="Ezimerchant"><dir name="Block"><dir name="Paystep"><file name="Form.php" hash="da582046e00055c963383aeef61cc472"/></dir></dir><dir name="Helper"><file name="Data.php" hash="dc2ac95acc26bde4e59cfd3bb0b66bdc"/></dir><dir name="Model"><dir name="Config"><file name="CustomerGroupAccess.php" hash="106115420e07b43fb8f661a4dbf1a0fc"/><file name="CustomerGroups.php" hash="9f99902a834106da10d8bd85dfca9585"/></dir><dir name="Paystep"><file name="PaymentAction.php" hash="854d96febec7b085fc01f1e78254cc87"/></dir><file name="Paystep.php" hash="02581fd927f4fec8cd6baf152ab2240d"/><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="8652118e319615cd9c00a7a04e47dfe8"/></dir></dir></dir><dir name="controllers"><file name="PaystepController.php" hash="a2a3c8fd2bc21c8b3066089daed30e51"/></dir><dir name="etc"><file name="config.xml" hash="0a03823c8fc85910121749e87635b2c3"/><file name="system.xml" hash="cffdf1c89fee07377504a352a16d377d"/></dir><dir name="sql"><dir name="ezimerchant_setup"><file name="mysql4-install-1.0.php" hash="eac7024d3f8aa995b45a085ae8c9372f"/></dir></dir></dir><dir name="Mobile"><dir name="Controller"><dir name="Varien"><dir name="Router"><file name="Standard.php" hash="ddec5476d372f5260119eb4e230e0ae4"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="c1465977bec8ccb4de3b0b472262537e"/></dir></dir><dir name="Paypal"><dir name="controllers"><dir name="Paypal"><file name="ExpressController.php" hash="aa18521ba779fbe0bbadbd8c21176f1b"/></dir></dir><dir name="etc"><file name="config.xml" hash="871f6bdd46135d7d53a70d2046062607"/></dir></dir><dir name="Sales"><dir name="Model"><dir name="Order"><file name="Creditmemo.php" hash="6a85a5efd7a8166a50939c7fe8040265"/></dir></dir><dir name="etc"><file name="config.xml" hash="de7659ab764533ac87c8a5fa2bd255f1"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OnTechnology_All.xml" hash="0d8a87b3af1cd99e9081bd5e0549a6ee"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OnTechnology_Test4</name>
4
+ <version>1.0.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Mobile Version</summary>
10
+ <description>Mobile Version</description>
11
+ <notes>Mobile Version</notes>
12
  <authors><author><name>ezimerchant</name><user>falconcoupe</user><email>jlivas@ontech.com.au</email></author></authors>
13
+ <date>2012-05-25</date>
14
+ <time>12:13:52</time>
15
+ <contents><target name="magecommunity"><dir name="OnTechnology"><dir name="Checkout"><dir name="controllers"><dir name="Checkout"><file name="CartController.php" hash="0c2d03b00e8b796308decd532f0a7edd"/><file name="OnepageController.php" hash="c5b1cc4d74fa21bcf2e86ec06c94225d"/><file name="simple_html_dom.php" hash="e956e77d0197afa28b8c054b9ed9a771"/><file name="system.xml" hash="b0b0765bc3627d785296a7053f167952"/></dir></dir><dir name="etc"><file name="config.xml" hash="1cfe7ea4c1febb8feca2eb718d899555"/></dir></dir><dir name="Ezimerchant"><dir name="Block"><dir name="Paystep"><file name="Form.php" hash="da582046e00055c963383aeef61cc472"/></dir></dir><dir name="Helper"><file name="Data.php" hash="dc2ac95acc26bde4e59cfd3bb0b66bdc"/></dir><dir name="Model"><dir name="Config"><file name="CustomerGroupAccess.php" hash="106115420e07b43fb8f661a4dbf1a0fc"/><file name="CustomerGroups.php" hash="9f99902a834106da10d8bd85dfca9585"/></dir><dir name="Paystep"><file name="PaymentAction.php" hash="854d96febec7b085fc01f1e78254cc87"/></dir><file name="Paystep.php" hash="02581fd927f4fec8cd6baf152ab2240d"/><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="8652118e319615cd9c00a7a04e47dfe8"/></dir></dir></dir><dir name="controllers"><file name="PaystepController.php" hash="a2a3c8fd2bc21c8b3066089daed30e51"/></dir><dir name="etc"><file name="config.xml" hash="0a03823c8fc85910121749e87635b2c3"/><file name="system.xml" hash="cffdf1c89fee07377504a352a16d377d"/></dir><dir name="sql"><dir name="ezimerchant_setup"><file name="mysql4-install-1.0.php" hash="eac7024d3f8aa995b45a085ae8c9372f"/></dir></dir></dir><dir name="Mobile"><dir name="Controller"><dir name="Varien"><dir name="Router"><file name="Standard.php" hash="a76b3407fec0e2ab5460b7edd9002a85"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="c1465977bec8ccb4de3b0b472262537e"/></dir></dir><dir name="Paypal"><dir name="controllers"><dir name="Paypal"><file name="ExpressController.php" hash="aa18521ba779fbe0bbadbd8c21176f1b"/></dir></dir><dir name="etc"><file name="config.xml" hash="871f6bdd46135d7d53a70d2046062607"/></dir></dir><dir name="Sales"><dir name="Model"><dir name="Order"><file name="Creditmemo.php" hash="6a85a5efd7a8166a50939c7fe8040265"/></dir></dir><dir name="etc"><file name="config.xml" hash="de7659ab764533ac87c8a5fa2bd255f1"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OnTechnology_All.xml" hash="0d8a87b3af1cd99e9081bd5e0549a6ee"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>