Optimiseweb_Redirects - Version 0.3.2

Version Notes

* Minor update to disabled products and categories URLs * Removed reporting of admin url and email * The module reports the module and Magento version for me to know about compatibility

Download this release

Release Info

Developer Kathir Vel
Extension Optimiseweb_Redirects
Version 0.3.2
Comparing to
See all releases


Code changes from version 0.3.0 to 0.3.2

app/code/community/Optimiseweb/Redirects/Block/Adminhtml/System/Config/Fieldset/Hint.php CHANGED
@@ -4,7 +4,7 @@
4
  * Optimiseweb Redirects Block Adminhtml System Config Fieldset Hint
5
  *
6
  * @package Optimiseweb_Redirects
7
- * @author Kathir Vel (sid@optimiseweb.co.uk)
8
  * @copyright Copyright (c) 2015 Kathir Vel
9
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
  */
@@ -44,11 +44,6 @@ class Optimiseweb_Redirects_Block_Adminhtml_System_Config_Fieldset_Hint extends
44
  return array();
45
  }
46
 
47
- private function getAdminEmail()
48
- {
49
- return Mage::getSingleton('admin/session')->getUser()->getEmail();
50
- }
51
-
52
  public function getOptimiseWebUrl()
53
  {
54
  $url = 'https://optimiseweb.co.uk?';
@@ -92,10 +87,7 @@ class Optimiseweb_Redirects_Block_Adminhtml_System_Config_Fieldset_Hint extends
92
  $aux = (array_key_exists('Enterprise_Enterprise', $modulesArray)) ? 'EE' : 'CE';
93
  $mageVersion = Mage::getVersion();
94
  $mage = 'Magento_' . $aux . '_' . $mageVersion;
95
- $hash = md5($ext . '_' . $mage . '_' . $ext);
96
- $url = Mage::getBaseUrl();
97
- $email = $this->getAdminEmail();
98
- return 'extension=' . $ext . '&magento=' . $mage . '&url=' . $url . '&email=' . $email . '&ctrl=' . $hash;
99
  }
100
 
101
  }
4
  * Optimiseweb Redirects Block Adminhtml System Config Fieldset Hint
5
  *
6
  * @package Optimiseweb_Redirects
7
+ * @author Kathir Vel (vkathirvel@gmail.com)
8
  * @copyright Copyright (c) 2015 Kathir Vel
9
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
  */
44
  return array();
45
  }
46
 
 
 
 
 
 
47
  public function getOptimiseWebUrl()
48
  {
49
  $url = 'https://optimiseweb.co.uk?';
87
  $aux = (array_key_exists('Enterprise_Enterprise', $modulesArray)) ? 'EE' : 'CE';
88
  $mageVersion = Mage::getVersion();
89
  $mage = 'Magento_' . $aux . '_' . $mageVersion;
90
+ return 'extension=' . $ext . '&magento=' . $mage;
 
 
 
91
  }
92
 
93
  }
app/code/community/Optimiseweb/Redirects/Model/Redirector.php CHANGED
@@ -4,7 +4,7 @@
4
  * Optimiseweb Redirects Model Redirector
5
  *
6
  * @package Optimiseweb_Redirects
7
- * @author Kathir Vel (sid@optimiseweb.co.uk)
8
  * @copyright Copyright (c) 2015 Kathir Vel
9
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
  */
@@ -29,10 +29,12 @@ class Optimiseweb_Redirects_Model_Redirector
29
 
30
  $requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . $request->getRequestUri(), '/');
31
  if ($disabledProductCheck) {
32
- $requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . '/' . $disabledProductCheck, '/');
 
33
  }
34
  if ($disabledCategoryCheck) {
35
- $requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . '/' . $disabledCategoryCheck, '/');
 
36
  }
37
 
38
  if (($actionName == 'noRoute') OR $disabledProductCheck OR $disabledCategoryCheck) {
4
  * Optimiseweb Redirects Model Redirector
5
  *
6
  * @package Optimiseweb_Redirects
7
+ * @author Kathir Vel (vkathirvel@gmail.com)
8
  * @copyright Copyright (c) 2015 Kathir Vel
9
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
  */
29
 
30
  $requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . $request->getRequestUri(), '/');
31
  if ($disabledProductCheck) {
32
+ //$requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . '/' . $disabledProductCheck, '/');
33
+ $requestUrl = rtrim(Mage::getUrl() . $disabledProductCheck, '/');
34
  }
35
  if ($disabledCategoryCheck) {
36
+ //$requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . '/' . $disabledCategoryCheck, '/');
37
+ $requestUrl = rtrim(Mage::getUrl() . $disabledCategoryCheck, '/');
38
  }
39
 
40
  if (($actionName == 'noRoute') OR $disabledProductCheck OR $disabledCategoryCheck) {
app/code/community/Optimiseweb/Redirects/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <!--
3
  /**
4
  * @package Optimiseweb_Redirects
5
- * @author Kathir Vel (sid@optimiseweb.co.uk)
6
  * @copyright Copyright (c) 2015 Kathir Vel
7
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
  */
@@ -11,7 +11,7 @@
11
 
12
  <modules>
13
  <Optimiseweb_Redirects>
14
- <version>0.3.0</version>
15
  </Optimiseweb_Redirects>
16
  </modules>
17
 
2
  <!--
3
  /**
4
  * @package Optimiseweb_Redirects
5
+ * @author Kathir Vel (vkathirvel@gmail.com)
6
  * @copyright Copyright (c) 2015 Kathir Vel
7
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
  */
11
 
12
  <modules>
13
  <Optimiseweb_Redirects>
14
+ <version>0.3.2</version>
15
  </Optimiseweb_Redirects>
16
  </modules>
17
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Optimiseweb_Redirects</name>
4
- <version>0.3.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Set up bulk 301 redirects for 404 pages by uploading the URL data in a CSV file. No HTACCESS or DB changes!</summary>
10
  <description>Set up bulk 301 redirects for 404 pages by uploading the URL data in a CSV file. No HTACCESS or DB changes!</description>
11
- <notes>* Added functionality to redirect disabled categories and products</notes>
12
  <authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
13
- <date>2015-05-20</date>
14
- <time>10:55:39</time>
15
- <contents><target name="magecommunity"><dir name="Optimiseweb"><dir name="Redirects"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="c3354a9a5fa6e585ccf01bb344286f16"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Download.php" hash="271ee03fca9ecce398eeb174bc3f1c32"/><file name="Download1.php" hash="da149ec109a496ebabc0444d5bf53232"/><file name="Downloadquerystringfile.php" hash="e458890aa9fba432f97ed4f38985a7da"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="69ad76fea40d7c3a73e24210b83c52ad"/></dir><dir name="Model"><file name="Redirector.php" hash="7d51d90d7e02947bf0487925c5f13fc5"/></dir><dir name="doc"><file name="Readme.html" hash="14bbc48e3864e316759b8dfde12c2d58"/></dir><dir name="etc"><file name="adminhtml.xml" hash="513115a18f7dc90511466fdb3ffc5ddc"/><file name="config.xml" hash="32acd1e7109479a7004220b4c4a326db"/><file name="system.xml" hash="f2f912c491e5f9a3dd9601a5bb197587"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Optimiseweb_Redirects.xml" hash="fc570b2799c319db61907ac4794f99d5"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Optimiseweb_Redirects.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="optimiseweb"><dir name="redirects"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="79322c0ba284256e1696c40b6bf466ff"/></dir></dir></dir></dir></dir></dir></dir></dir></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>Optimiseweb_Redirects</name>
4
+ <version>0.3.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Set up bulk 301 redirects for 404 pages by uploading the URL data in a CSV file. No HTACCESS or DB changes!</summary>
10
  <description>Set up bulk 301 redirects for 404 pages by uploading the URL data in a CSV file. No HTACCESS or DB changes!</description>
11
+ <notes>* Minor update to disabled products and categories URLs * Removed reporting of admin url and email * The module reports the module and Magento version for me to know about compatibility</notes>
12
  <authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
13
+ <date>2015-06-19</date>
14
+ <time>08:49:57</time>
15
+ <contents><target name="magecommunity"><dir name="Optimiseweb"><dir name="Redirects"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="53015cb55a9e674995a99ce621b27de8"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Download.php" hash="271ee03fca9ecce398eeb174bc3f1c32"/><file name="Download1.php" hash="da149ec109a496ebabc0444d5bf53232"/><file name="Downloadquerystringfile.php" hash="e458890aa9fba432f97ed4f38985a7da"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="69ad76fea40d7c3a73e24210b83c52ad"/></dir><dir name="Model"><file name="Redirector.php" hash="ba29d3eeefb072387fe85da9eb4c0a1e"/></dir><dir name="doc"><file name="Readme.html" hash="14bbc48e3864e316759b8dfde12c2d58"/></dir><dir name="etc"><file name="adminhtml.xml" hash="513115a18f7dc90511466fdb3ffc5ddc"/><file name="config.xml" hash="c5d5d6b9dbdf5d99daba0342070e83be"/><file name="system.xml" hash="f2f912c491e5f9a3dd9601a5bb197587"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Optimiseweb_Redirects.xml" hash="fc570b2799c319db61907ac4794f99d5"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Optimiseweb_Redirects.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="optimiseweb"><dir name="redirects"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="79322c0ba284256e1696c40b6bf466ff"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>