This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlnn | |
| s:xsd="http://www.w3.org/2001/XMLSchema"xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><PLGG | |
| etOrderStatusResponse xmlns="http://prolog3pl.com/"><PLGetOrderStatusResult><Orders><PLOrderStatusHeader><ProLL | |
| ogOrderId>494478</ProLogOrderId><OrderNumber>12210</OrderNumber><Status>SHIPPED</Status><CompletedDate>15-01-00 | |
| 5T00:00:00.00</CompletedDate><ShippingService>UPSG</ShippingService><LastUpdatedDate>2015-01-05T14:43:00.00</LL | |
| astUpdatedDate><Lines><PLOrderStatusLine><ProLogLineId>1</ProLogLineId><LineNumber>1</LineNumber><Product>SWB-- | |
| RED06</Product><QuantityOrdered>1</QuantityOrdered><QuantityShipped>1</QuantityShipped><QuantityBackordered>0<< | |
| /QuantityBackordered></PLOrderStatusLine></Lines><Shipments><PLOrderStatusShipment><ProLogShipmentId>494478</PP | |
| roLogShipmentId><Warehouse>NEVADA DISTRIBUTION</Warehouse><ShippingService>UPSG</ShippingService><Status>SHIPPP | |
| ED</Status><Ship |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $data = '<soap:Header><soap:Header/><soap:Body><PLGetOrderStatusResponse xmlns="http://prolog3pl.com/"><PLGetOrderStatusResult><Orders><PLOrderStatusHeader><ProLogOrderId>494478</ProLogOrderId><OrderNumber>12210</OrderNumber><Status>SHIPPED</Status><CompletedDate>15-01-05T00:00:00.00</CompletedDate><ShippingService>UPSG</ShippingService><LastUpdatedDate>2015-01-05T14:43:00.00</LastUpdatedDate><Lines><PLOrderStatusLine><ProLogLineId>1</ProLogLineId><LineNumber>1</LineNumber><Product>SWB-RED06</Product><QuantityOrdered>1</QuantityOrdered><QuantityShipped>1</QuantityShipped><QuantityBackordered>0</QuantityBackordered></PLOrderStatusLine></Lines><Shipments><PLOrderStatusShipment><ProLogShipmentId>494478</ProLogShipmentId><Warehouse>NEVADA DISTRIBUTION</Warehouse><ShippingService>UPSG</ShippingService><Status>SHIPPED</Status><ShippedDate>15-01-05T00:00:00.00</ShippedDate><Packages><PLOrderStatusPackage><ProLogTrackingNumber>1ZE31843YW46367974</ProLogTrackingNumber><TrackingNumber>1ZE31843YW46367974</TrackingNumber |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if($shipp == 'International (excl. Canada)') { | |
| $shipmethod = 'UPSIS'; | |
| } | |
| else if($shipp == 'Canada') { | |
| $shipmethod = 'UPSIS'; | |
| } | |
| else if ($shipp == 'Alaska and Hawaii') { | |
| $shipmethod = 'UPS3'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| started | |
| [Fri Nov 21 03:34:01 2014] [notice] Digest: generating secret for digest authentication ... | |
| [Fri Nov 21 03:34:01 2014] [notice] Digest: done | |
| [Fri Nov 21 03:34:01 2014] [notice] Apache/2.2.25 (Unix) DAV/2 mod_ssl/2.2.25 OpenSSL/1.0.0-fips configured -- resuming normal operations | |
| [Fri Nov 21 03:36:53 2014] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/blog | |
| -- | |
| ended | |
| [Sat Nov 22 03:37:03 2014] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/xmlrpc.php, referer: http://www.swellbottle.com/ | |
| [Sat Nov 22 03:37:03 2014] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/xmlrpc.php, referer: http://www.swellbottle.com/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTTP/1.1 200 OK | |
| Date: Thu, 20 Nov 2014 23:15:37 GMT | |
| Server: Apache | |
| Content-Length: 4170 | |
| Connection: close | |
| Content-Type: text/xml; charset=ISO-8859-1 | |
| <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header/><soap:Body><PLGetOrderStatusResponse xmlns="http://prolog3pl.com/"><PLGetOrderStatusResult><Orders><PLOrderStatusHeader><ProLogOrderId>7837356</ProLogOrderId><OrderNumber>AWSWP0005</OrderNumber><Status>ENTERED</Status><CompletedDate>40-01-01T00:00:00.00</CompletedDate><ShippingService>TBA</ShippingService><LastUpdatedDate>2014-11-20T14:57:00.00</LastUpdatedDate><Lines><PLOrderStatusLine><ProLogLineId>1</ProLogLineId><LineNumber>1</LineNumber><Product>FWB-GRP</Product><QuantityOrdered>1</QuantityOrdered><QuantityShipped>1</QuantityShipped><QuantityBackordered>0</QuantityBackordered></PLOrderStatusLine><PLOrderStatusLine><ProLogLineId>2</ProLogLineI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [root@ip-10-0-100-244 plugins]# php -f PLGetOrderStatusNew.php | |
| HTTP/1.1 200 OK | |
| Date: Thu, 20 Nov 2014 22:41:32 GMT | |
| Server: Apache | |
| Content-Length: 0 | |
| Connection: close | |
| Content-Type: text/xml; charset=ISO-8859-1 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| $fedex = array('FedEx: Priority Overnight' => 'FEDEX1P', | |
| 'FedEx: 2-Day' => 'FEDEX2', | |
| 'FedEx: Standard Overnight' => 'FEDEX1S', | |
| 'FedEx: Express Saver' => 'FEDEX3', | |
| 'FedEx: Home Delivery' => 'FEDEXGH', | |
| 'FedEx: Ground [Canada]' =>'FEDEXGC', | |
| 'FedEx: Ground' => 'FEDEXG', | |
| 'FedEx: International Priority' => 'FEDEXINTLP', | |
| 'FedEx: International Economy'=> 'FEDEXINTLE', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $shipp = str_replace(' ','',$data['shipping_option']); | |
| if($shipp == 'InternationalRate'){ | |
| $shipmethod = 'USPSINTLFC'; | |
| } else if($shipp == 'InternationalPriority'){ | |
| $shipmethod = 'USPSINTLFC'; | |
| } else if($shipp == 'InternationalEconomy'){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 11 function getBody ($httpResponse) { | |
| $lines = preg_split('/(\r\n|\r|\n)/', $httpResponse); | |
| ... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| On 10.0.100.135, php.ini includes, note all commented out | |
| ;extension=mcrypt.so | |
| ;zend_extension = /usr/lib/php5/20121212/ioncube_loader_lin_5.3.so | |
| ;extension=curl.so | |
| ;extension=pdo.so | |
| ;extension=pdo_sqlite.so | |
| ;extension=sqlite.so | |
| ;extension=pdo_mysql.so |