Yireo_DisableLog - Version 0.0.6

Version Notes

No notes

Download this release

Release Info

Developer Yireo
Extension Yireo_DisableLog
Version 0.0.6
Comparing to
See all releases


Code changes from version 0.0.4 to 0.0.6

app/code/community/Yireo/DisableLog/Helper/Data.php CHANGED
@@ -4,8 +4,8 @@
4
  *
5
  * @package Yireo_DisableLog
6
  * @author Yireo (http://www.yireo.com/)
7
- * @copyright Copyright (c) 2013 Yireo (http://www.yireo.com/)
8
- * @license Open Software License
9
  */
10
 
11
  /**
4
  *
5
  * @package Yireo_DisableLog
6
  * @author Yireo (http://www.yireo.com/)
7
+ * @copyright Copyright (C) 2014 Yireo (http://www.yireo.com/)
8
+ * @license Open Source License (OSL v3)
9
  */
10
 
11
  /**
app/code/community/Yireo/DisableLog/Model/Feed.php CHANGED
@@ -4,8 +4,8 @@
4
  *
5
  * @author Yireo
6
  * @package Yireo_Common
7
- * @copyright Copyright 2013
8
- * @license Open Source License (OSL)
9
  * @link http://www.yireo.com
10
  */
11
 
4
  *
5
  * @author Yireo
6
  * @package Yireo_Common
7
+ * @copyright Copyright 2014
8
+ * @license Open Source License (OSL v3) (OSL)
9
  * @link http://www.yireo.com
10
  */
11
 
app/code/community/Yireo/DisableLog/Model/Observer.php CHANGED
@@ -4,8 +4,8 @@
4
  *
5
  * @author Yireo
6
  * @package DisableLog
7
- * @copyright Copyright 2013
8
- * @license Open Software License
9
  * @link http://www.yireo.com
10
  */
11
 
4
  *
5
  * @author Yireo
6
  * @package DisableLog
7
+ * @copyright Copyright 2014
8
+ * @license Open Source License (OSL v3)
9
  * @link http://www.yireo.com
10
  */
11
 
app/code/community/Yireo/DisableLog/Model/Rewrite/Catalogsearch/Query.php CHANGED
@@ -4,8 +4,8 @@
4
  *
5
  * @package Yireo_DisableLog
6
  * @author Yireo (http://www.yireo.com/)
7
- * @copyright Copyright (c) 2013 Yireo (http://www.yireo.com/)
8
- * @license Open Software License
9
  */
10
 
11
  class Yireo_DisableLog_Model_Rewrite_Catalogsearch_Query extends Mage_CatalogSearch_Model_Query
4
  *
5
  * @package Yireo_DisableLog
6
  * @author Yireo (http://www.yireo.com/)
7
+ * @copyright Copyright (C) 2014 Yireo (http://www.yireo.com/)
8
+ * @license Open Source License (OSL v3)
9
  */
10
 
11
  class Yireo_DisableLog_Model_Rewrite_Catalogsearch_Query extends Mage_CatalogSearch_Model_Query
app/code/community/Yireo/DisableLog/Model/Rewrite/Log/Visitor.php CHANGED
@@ -4,8 +4,8 @@
4
  *
5
  * @package Yireo_DisableLog
6
  * @author Yireo (http://www.yireo.com/)
7
- * @copyright Copyright (c) 2013 Yireo (http://www.yireo.com/)
8
- * @license Open Software License
9
  */
10
 
11
  class Yireo_DisableLog_Model_Rewrite_Log_Visitor extends Mage_Log_Model_Visitor
@@ -43,4 +43,25 @@ class Yireo_DisableLog_Model_Rewrite_Log_Visitor extends Mage_Log_Model_Visitor
43
 
44
  return $rt;
45
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
4
  *
5
  * @package Yireo_DisableLog
6
  * @author Yireo (http://www.yireo.com/)
7
+ * @copyright Copyright (C) 2014 Yireo (http://www.yireo.com/)
8
+ * @license Open Source License (OSL v3)
9
  */
10
 
11
  class Yireo_DisableLog_Model_Rewrite_Log_Visitor extends Mage_Log_Model_Visitor
43
 
44
  return $rt;
45
  }
46
+
47
+ /*
48
+ * Trick to get an unique visitor-ID anyway
49
+ */
50
+ public function getId()
51
+ {
52
+ if($this->_skipRequestLogging == false) {
53
+ return parent::getId();
54
+ }
55
+
56
+ // Return a bogus visitor-ID that is not logged at all, but used in various buggy Magento parts
57
+ return abs(crc32(Mage::getModel('core/session')->getSessionId()));
58
+ }
59
+
60
+ /*
61
+ * Trick to get an unique visitor-ID anyway
62
+ */
63
+ public function getVisitorId()
64
+ {
65
+ return $this->getId();
66
+ }
67
  }
app/code/community/Yireo/DisableLog/etc/config.xml CHANGED
@@ -5,15 +5,15 @@
5
  *
6
  * @package Yireo_DisableLog
7
  * @author Yireo (http://www.yireo.com/)
8
- * @copyright Copyright (c) 2013 Yireo (http://www.yireo.com/)
9
- * @license Open Software License
10
  */
11
  -->
12
  <config>
13
 
14
  <modules>
15
  <Yireo_DisableLog>
16
- <version>0.0.4</version>
17
  </Yireo_DisableLog>
18
  </modules>
19
 
@@ -129,6 +129,21 @@
129
  </events>
130
  </adminhtml>
131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  <default>
133
  <disablelog>
134
  <settings>
5
  *
6
  * @package Yireo_DisableLog
7
  * @author Yireo (http://www.yireo.com/)
8
+ * @copyright Copyright (C) 2014 Yireo (http://www.yireo.com/)
9
+ * @license Open Source License (OSL v3)
10
  */
11
  -->
12
  <config>
13
 
14
  <modules>
15
  <Yireo_DisableLog>
16
+ <version>0.0.6</version>
17
  </Yireo_DisableLog>
18
  </modules>
19
 
129
  </events>
130
  </adminhtml>
131
 
132
+ <frontend>
133
+ <events>
134
+ <controller_action_predispatch>
135
+ <observers>
136
+ <log><type>disabled</type></log>
137
+ </observers>
138
+ </controller_action_predispatch>
139
+ <controller_action_postdispatch>
140
+ <observers>
141
+ <log><type>disabled</type></log>
142
+ </observers>
143
+ </controller_action_postdispatch>
144
+ </events>
145
+ </frontend>
146
+
147
  <default>
148
  <disablelog>
149
  <settings>
app/code/community/Yireo/DisableLog/etc/system.xml CHANGED
@@ -5,8 +5,8 @@
5
  *
6
  * @package Yireo_DisableLog
7
  * @author Yireo (http://www.yireo.com/)
8
- * @copyright Copyright (c) 2012 Yireo (http://www.yireo.com/)
9
- * @license Open Software License
10
  */
11
  -->
12
  <config>
5
  *
6
  * @package Yireo_DisableLog
7
  * @author Yireo (http://www.yireo.com/)
8
+ * @copyright Copyright (C) 2014 Yireo (http://www.yireo.com/)
9
+ * @license Open Source License (OSL v3)
10
  */
11
  -->
12
  <config>
package.xml CHANGED
@@ -1,2 +1,2 @@
1
  <?xml version="1.0"?>
2
- <package><name>Yireo_DisableLog</name><version>0.0.4</version><stability>stable</stability><license>Open Source License</license><channel>community</channel><extends></extends><summary>No summary</summary><description>No description</description><notes>No notes</notes><authors><author><name>Yireo</name><user>yireo</user><email>info@yireo.com</email></author></authors><date>2013-09-14</date><time>9:21:09</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Yireo_DisableLog.xml" hash="0401f1790db89417d732f4b13f605a85"/></dir></dir><dir name="code"><dir name="community"><dir name="Yireo"><dir name="DisableLog"><dir name="etc"><file name="config.xml" hash="3bfb483e19bed68251e440ce9a7c71aa"/><file name="system.xml" hash="66c07d087dd0f8499332378db576d1ff"/></dir><dir name="Helper"><file name="Data.php" hash="b5a84b5d039ecc1e09286584aeb1ba29"/></dir><dir name="Model"><file name="Feed.php" hash="45cec351c081211c8fbc7e089905795e"/><file name="Observer.php" hash="fe13dc1d29a7f82d110811d3679b1678"/><dir name="Rewrite"><dir name="Log"><file name="Visitor.php" hash="d2428f2ec4d3a6e8f2ab77d32ce0a86f"/></dir><dir name="Catalogsearch"><file name="Query.php" hash="347b4a45d3b72d0d400cd16862a40ef3"/></dir></dir></dir></dir></dir></dir></dir></dir></target></contents></package>
1
  <?xml version="1.0"?>
2
+ <package><name>Yireo_DisableLog</name><version>0.0.6</version><stability>stable</stability><license>Open Source License</license><channel>community</channel><extends></extends><summary>No summary</summary><description>No description</description><notes>No notes</notes><authors><author><name>Yireo</name><user>yireo</user><email>info@yireo.com</email></author></authors><date>2014-11-15</date><time>2:54:40</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Yireo_DisableLog.xml" hash="0401f1790db89417d732f4b13f605a85"/></dir></dir><dir name="code"><dir name="community"><dir name="Yireo"><dir name="DisableLog"><dir name="etc"><file name="config.xml" hash="e31373a510004370ee2b4276284ea165"/><file name="system.xml" hash="895cb0df34266aff883070f162c05dc3"/></dir><dir name="Model"><file name="Feed.php" hash="ffc1165b848a842fa32138020b3acabf"/><file name="Observer.php" hash="86c9ad4839b0aacd95cc2b8923dfc22b"/><dir name="Rewrite"><dir name="Log"><file name="Visitor.php" hash="e2e65f7b81197490aedad0ff5c69a897"/></dir><dir name="Catalogsearch"><file name="Query.php" hash="1f54ad91b51db20672eebef6ad16a477"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="a6c117444f5175ebfa9f7ae10cbc5df3"/></dir></dir></dir></dir></dir></dir></target></contents></package>