From d23b82fac030033e804e658699ecb072c25b572c Mon Sep 17 00:00:00 2001 From: "Open Tools, Reinhold Kainhofer" <office@open-tools.net> Date: Tue, 2 Aug 2016 14:52:07 +0200 Subject: [PATCH] Update to the latest versions, do not log request from the OpenTools server --- .gitignore | 2 ++ Joomla/AdvancedShippingByRules.tmpl | 2 +- Joomla/AutoParentCategories.tmpl | 2 +- Joomla/BuyerAssignGroups.tmpl | 2 +- Joomla/DownloadsForSale.tmpl | 2 +- Joomla/EURecap.tmpl | 2 +- Joomla/Ordernumber.tmpl | 2 +- Joomla/ShippingByRules.tmpl | 2 +- Joomla/TaxReport.tmpl | 2 +- WooCommerce/AdvancedOrdernumbers.tmpl | 16 +++++++++++++--- WooCommerce/AdvancedShippingByRules.tmpl | 9 ++++----- WooCommerce/ShippingByRules.tmpl | 17 ----------------- index.php | 12 +++++++----- 13 files changed, 34 insertions(+), 38 deletions(-) create mode 100644 .gitignore delete mode 100644 WooCommerce/ShippingByRules.tmpl diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b9f5efe --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +logs/*.log + diff --git a/Joomla/AdvancedShippingByRules.tmpl b/Joomla/AdvancedShippingByRules.tmpl index 3549ebe..1459151 100644 --- a/Joomla/AdvancedShippingByRules.tmpl +++ b/Joomla/AdvancedShippingByRules.tmpl @@ -8,7 +8,7 @@ <type>plugin</type> <folder>vmshipment</folder> <client>0</client><!-- Plugins use client_id=0 (FrontEnd), default would be 1 --> - <version>5.7</version> + <version>6.1.5</version> <infourl title="Advanced Shiping by Rules for VirtueMart">http://open-tools.net/documentation/shipping-by-rules-plugins-for-virtuemart.html#changelog</infourl> <downloads> <downloadurl type="full" format="zip">http://open-tools.net/index.php?option=com_virtuemart&view=plugin&name=downloads_for_sale&customfield_id=12&order_number=${order_number}&order_pass=${order_pass}</downloadurl> diff --git a/Joomla/AutoParentCategories.tmpl b/Joomla/AutoParentCategories.tmpl index 568e8ba..a1eced0 100644 --- a/Joomla/AutoParentCategories.tmpl +++ b/Joomla/AutoParentCategories.tmpl @@ -8,7 +8,7 @@ <type>plugin</type> <folder>system</folder> <client>0</client><!-- Plugins use client_id=0 (FrontEnd), default would be 1 --> - <version>1.3.1</version> + <version>1.3.2</version> <infourl title="Auto Parent Categories for VirtueMart">http://open-tools.net/virtuemart/auto-parent-categories.html#changelog</infourl> <downloads> <downloadurl type="full" format="zip">http://open-tools.net/index.php?option=com_virtuemart&view=plugin&name=downloads_for_sale&customfield_id=11</downloadurl> diff --git a/Joomla/BuyerAssignGroups.tmpl b/Joomla/BuyerAssignGroups.tmpl index 4bbcc81..d7b7db1 100644 --- a/Joomla/BuyerAssignGroups.tmpl +++ b/Joomla/BuyerAssignGroups.tmpl @@ -9,7 +9,7 @@ <type>plugin</type> <folder>vmcustom</folder> <client>0</client><!-- Plugins use client_id=0 (FrontEnd), default would be 1 --> - <version>1.6</version> + <version>1.6.2</version> <infourl title="Add Buyers to Joomla Groups for VirtueMart">http://open-tools.net/virtuemart/add-buyers-to-joomla-groups.html#changelog</infourl> <downloads> <downloadurl type="full" format="zip">http://open-tools.net/index.php?option=com_virtuemart&view=plugin&name=downloads_for_sale&customfield_id=50&order_number=${order_number}&order_pass=${order_pass}</downloadurl> diff --git a/Joomla/DownloadsForSale.tmpl b/Joomla/DownloadsForSale.tmpl index c7656a8..0b04854 100644 --- a/Joomla/DownloadsForSale.tmpl +++ b/Joomla/DownloadsForSale.tmpl @@ -8,7 +8,7 @@ <type>plugin</type> <folder>vmcustom</folder> <client>0</client><!-- Plugins use client_id=0 (FrontEnd), default would be 1 --> - <version>1.8</version> + <version>1.8.2</version> <infourl title="Downloads for Sale for VirtueMart">http://open-tools.net/documentation/downloads-for-sale-plugin-for-virtuemart.html#changelog</infourl> <downloads> <downloadurl type="full" format="zip">http://open-tools.net/index.php?option=com_virtuemart&view=plugin&name=downloads_for_sale&customfield_id=9&order_number=${order_number}&order_pass=${order_pass}</downloadurl> diff --git a/Joomla/EURecap.tmpl b/Joomla/EURecap.tmpl index d9f734b..d645e95 100644 --- a/Joomla/EURecap.tmpl +++ b/Joomla/EURecap.tmpl @@ -8,7 +8,7 @@ <type>plugin</type> <folder>vmextended</folder> <client>0</client><!-- Plugins use client_id=0 (FrontEnd), default would be 1 --> - <version>0.4</version> + <version>0.6</version> <infourl title="EU Sales Reports for VirtueMart">http://open-tools.net/virtuemart/vm-eu-sales-reports.html#changelog</infourl> <downloads> <downloadurl type="full" format="zip">http://open-tools.net/index.php?option=com_virtuemart&view=plugin&name=downloads_for_sale&customfield_id=142</downloadurl> diff --git a/Joomla/Ordernumber.tmpl b/Joomla/Ordernumber.tmpl index 7453ff8..6301663 100644 --- a/Joomla/Ordernumber.tmpl +++ b/Joomla/Ordernumber.tmpl @@ -8,7 +8,7 @@ <type>plugin</type> <folder>vmshopper</folder> <client>0</client><!-- Plugins use client_id=0 (FrontEnd), default would be 1 --> - <version>3.7</version> + <version>4.0.3</version> <infourl title="Advanced Ordernumbers for VirtueMart">http://open-tools.net/documentation/ordernumber-plugin-for-virtuemart.html#versions</infourl> <downloads> <downloadurl type="full" format="zip">http://open-tools.net/index.php?option=com_virtuemart&view=plugin&name=downloads_for_sale&customfield_id=13</downloadurl> diff --git a/Joomla/ShippingByRules.tmpl b/Joomla/ShippingByRules.tmpl index b8a776f..35c1b80 100644 --- a/Joomla/ShippingByRules.tmpl +++ b/Joomla/ShippingByRules.tmpl @@ -8,7 +8,7 @@ <type>plugin</type> <folder>vmshipment</folder> <client>0</client><!-- Plugins use client_id=0 (FrontEnd), default would be 1 --> - <version>5.7</version> + <version>6.1.5</version> <infourl title="Shiping by Rules for VirtueMart">http://open-tools.net/documentation/shipping-by-rules-plugins-for-virtuemart.html#changelog</infourl> <downloads> <downloadurl type="full" format="zip">http://open-tools.net/index.php?option=com_virtuemart&view=plugin&name=downloads_for_sale&customfield_id=10</downloadurl> diff --git a/Joomla/TaxReport.tmpl b/Joomla/TaxReport.tmpl index b95804d..779d04f 100644 --- a/Joomla/TaxReport.tmpl +++ b/Joomla/TaxReport.tmpl @@ -8,7 +8,7 @@ <type>plugin</type> <folder>vmextended</folder> <client>0</client><!-- Plugins use client_id=0 (FrontEnd), default would be 1 --> - <version>0.1</version> + <version>0.2</version> <infourl title="Advanced Ordernumbers for VirtueMart">http://open-tools.net/documentation/TODO</infourl> <downloads> <downloadurl type="full" format="zip">http://open-tools.net/index.php?option=com_virtuemart&view=plugin&name=downloads_for_sale&customfield_id=TODO</downloadurl> diff --git a/WooCommerce/AdvancedOrdernumbers.tmpl b/WooCommerce/AdvancedOrdernumbers.tmpl index 2c568b3..bd7edbb 100644 --- a/WooCommerce/AdvancedOrdernumbers.tmpl +++ b/WooCommerce/AdvancedOrdernumbers.tmpl @@ -3,13 +3,23 @@ "slug": "woocommerce-advanced-ordernumbers", "homepage" : "http://open-tools.net/woocommerce/advanced-ordernumbers-for-woocommerce.html", "download_url": "http://www.open-tools.net/index.php?option=com_virtuemart&view=plugin&name=downloads_for_sale&customfield_id=149&order_number=${order_number}&order_pass=${order_pass}", - "version": "1.2.1", - "upgrade_notice" : "Automatic upgrades", + "version": "1.3.6", + "upgrade_notice" : "1.3.6: Fix for old orders, fix JS for update credentials", "author": "Open Tools", "author_homepage" : "http://www.open-tools.net/", "sections": { "description": "The most flexible and complete solution for WooCommerce to customize your order and invoice numbers!", - "changelog" : "See <a href='http://open-tools.net/documentation/advanced-order-numbers-for-woocommerce.html#changelog'>the ChangeLog at open-tools.net</a>." + "changelog" : "See <a href='http://open-tools.net/documentation/advanced-order-numbers-for-woocommerce.html#changelog'>the ChangeLog at open-tools.net</a>. + <br> + <br> + <ul> + <li>1.3.6: Fix for old orders, fix JS for update credentials</li> + <li>1.3.5: New date-releated variables added</li> + <li>1.3.4: Fix php 5.3, fix timezone issues</li> + <li>1.3.3: Fix order tracking</li> + <li>1.3.2: Fix for pdf invoices and packaging slips plugin</li> + <li>1.3: Support for multi-vendor plugins (WC Product Vendors, WC Vendors and YITH WC Multi Vendor)</li> + </ul>" } } diff --git a/WooCommerce/AdvancedShippingByRules.tmpl b/WooCommerce/AdvancedShippingByRules.tmpl index 6b0a29f..346d476 100644 --- a/WooCommerce/AdvancedShippingByRules.tmpl +++ b/WooCommerce/AdvancedShippingByRules.tmpl @@ -3,15 +3,14 @@ "slug": "woocommerce-advanced-shipping-by-rules", "homepage" : "http://www.open-tools.net/woocommerce/advanced-shipping-by-rules-for-woocommerce.html", "download_url": "http://www.open-tools.net/index.php?option=com_virtuemart&view=plugin&name=downloads_for_sale&customfield_id=157&order_number=${order_number}&order_pass=${order_pass}", - "version": "1.0", - "upgrade_notice" : "Here's why you should upgrade...", + "version": "1.2.3", + "upgrade_notice" : "V1.2.3: Fix several PHP errors, update credentials input, etc.; V1.2.2: Fix warning about function signature mismatch<br>V1.2.1: Fix for warning with empty lines<br>V1.2: Support for multi-vendor plugins<br>V1.1.2: Fix for UK postcodes<br>V1.1.1: Fix for PHP 5.3; fix evaluate_for_XXX functions<br>", "author": "Open Tools", "author_homepage" : "http://www.open-tools.net/", "sections": { "description": "", - "installation" : "(Recommended) Installation instructions.", - "changelog" : "(Recommended) Changelog. <p>This section will be opened by default when the user clicks 'View version XYZ details'.</p>", - "custom_section" : "This is a custom section labeled 'Custom Section'." + "installation" : "Simply click Update to install the new version. ", + "changelog" : "<ul><li>V1.1.2: Fix for UK postcodes</li><li>V1.1.1: Fix for PHP 5.3, fix evaluate_for_XXX functions</li></ul>" } } diff --git a/WooCommerce/ShippingByRules.tmpl b/WooCommerce/ShippingByRules.tmpl deleted file mode 100644 index ac14dec..0000000 --- a/WooCommerce/ShippingByRules.tmpl +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "WooCommerce Shipping by Rules", - "slug": "woocommerce-shipping-by-rules", - "homepage" : "http://www.open-tools.net/woocommerce/shipping-by-rules-for-woocommerce.html", - "download_url": "http://www.open-tools.net/index.php?option=com_virtuemart&view=plugin&name=downloads_for_sale&customfield_id=176", - "version": "1.0", - "upgrade_notice" : "Here's why you should upgrade...", - - "author": "Open Tools", - "author_homepage" : "http://www.open-tools.net/", - "sections": { - "description": "Plugin description here, basic HTML allowed", - "installation" : "(Recommended) Installation instructions.", - "changelog" : "(Recommended) Changelog. <p>This section will be opened by default when the user clicks 'View version XYZ details'.</p>", - "custom_section" : "This is a custom section labeled 'Custom Section'." - } -} diff --git a/index.php b/index.php index ddeba27..339dfff 100755 --- a/index.php +++ b/index.php @@ -22,11 +22,13 @@ $order_number = get_query_arg('order_number'); $order_pass = get_query_arg('order_pass'); // Log all update queries -file_put_contents( - __DIR__.'/logs/access_'.date("Y-m-d").'.log', - date("c") . ", " . $_SERVER['REMOTE_ADDR'] . ", $package/$extension, $order_number, $order_pass\n", - FILE_APPEND -); +if ($_SERVER['REMOTE_ADDR'] != '5.9.51.179') { + file_put_contents( + __DIR__.'/logs/access_'.date("Y-m-d").'.log', + date("c") . ", " . $_SERVER['REMOTE_ADDR'] . ", $package/$extension, $order_number, $order_pass\n", + FILE_APPEND + ); +} $tmplfile = __DIR__ . '/' . $package . '/' . $extension . '.tmpl'; if (file_exists($tmplfile)) { -- GitLab