Version Notes
V2.1.0
Download this release
Release Info
Developer | Wyomind |
Extension | BotDefender_by_Lokad |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.1.0
app/code/community/Wyomind/Botdefender/Helper/Data.php
CHANGED
@@ -48,10 +48,12 @@ class Wyomind_Botdefender_Helper_Data extends Mage_Core_Helper_Data {
|
|
48 |
$this->_webservice_url = $service_url;
|
49 |
|
50 |
$curl = curl_init($service_url);
|
|
|
51 |
curl_setopt($curl, CURLOPT_USERPWD, $username . ':' . $password);
|
52 |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
53 |
$curl_response = curl_exec($curl);
|
54 |
$info = curl_getinfo($curl);
|
|
|
55 |
if ($curl_response === false) {
|
56 |
curl_close($curl);
|
57 |
|
48 |
$this->_webservice_url = $service_url;
|
49 |
|
50 |
$curl = curl_init($service_url);
|
51 |
+
|
52 |
curl_setopt($curl, CURLOPT_USERPWD, $username . ':' . $password);
|
53 |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
54 |
$curl_response = curl_exec($curl);
|
55 |
$info = curl_getinfo($curl);
|
56 |
+
|
57 |
if ($curl_response === false) {
|
58 |
curl_close($curl);
|
59 |
|
app/code/community/Wyomind/Botdefender/Model/Observer.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
class Wyomind_Botdefender_FeedReader extends Mage_AdminNotification_Model_Feed {
|
4 |
|
5 |
public function getFeedUrl() {
|
@@ -102,6 +103,16 @@ class Wyomind_Botdefender_Item {
|
|
102 |
|
103 |
class Wyomind_Botdefender_Model_Observer {
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
public function updateAlert() {
|
106 |
Mage::getConfig()->saveConfig("botdefender/settings/alert", "0", "default", 0);
|
107 |
}
|
1 |
<?php
|
2 |
|
3 |
+
|
4 |
class Wyomind_Botdefender_FeedReader extends Mage_AdminNotification_Model_Feed {
|
5 |
|
6 |
public function getFeedUrl() {
|
103 |
|
104 |
class Wyomind_Botdefender_Model_Observer {
|
105 |
|
106 |
+
public function checkStatus() {
|
107 |
+
|
108 |
+
if (Mage::getStoreConfig("botdefender/settings/alert") == 1) {
|
109 |
+
if (Mage::helper("botdefender")->apiCall()) {
|
110 |
+
Mage::getConfig()->saveConfig("botdefender/settings/enabled", "1", "default", 0);
|
111 |
+
Mage::getConfig()->saveConfig("botdefender/settings/alert", "0", "default", 0);
|
112 |
+
}
|
113 |
+
}
|
114 |
+
}
|
115 |
+
|
116 |
public function updateAlert() {
|
117 |
Mage::getConfig()->saveConfig("botdefender/settings/alert", "0", "default", 0);
|
118 |
}
|
app/code/community/Wyomind/Botdefender/etc/config.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Wyomind_Botdefender>
|
6 |
-
<version>2.0
|
7 |
</Wyomind_Botdefender>
|
8 |
</modules>
|
9 |
<default>
|
@@ -121,5 +121,22 @@
|
|
121 |
<class>Wyomind_Botdefender_Helper</class>
|
122 |
</botdefender>
|
123 |
</helpers>
|
|
|
|
|
|
|
|
|
|
|
124 |
</global>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
</config>
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Wyomind_Botdefender>
|
6 |
+
<version>2.1.0</version>
|
7 |
</Wyomind_Botdefender>
|
8 |
</modules>
|
9 |
<default>
|
121 |
<class>Wyomind_Botdefender_Helper</class>
|
122 |
</botdefender>
|
123 |
</helpers>
|
124 |
+
<models>
|
125 |
+
<botdefender>
|
126 |
+
<class>Wyomind_Botdefender_Model</class>
|
127 |
+
</botdefender>
|
128 |
+
</models>
|
129 |
</global>
|
130 |
+
<crontab>
|
131 |
+
<jobs>
|
132 |
+
<botdefender_checkstatus>
|
133 |
+
<schedule>
|
134 |
+
<cron_expr>* * * * *</cron_expr>
|
135 |
+
</schedule>
|
136 |
+
<run>
|
137 |
+
<model>botdefender/observer::checkStatus</model>
|
138 |
+
</run>
|
139 |
+
</botdefender_checkstatus>
|
140 |
+
</jobs>
|
141 |
+
</crontab>
|
142 |
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BotDefender_by_Lokad</name>
|
4 |
-
<version>2.0
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.wyomind.com/terms-and-conditions.html">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -12,11 +12,11 @@ Stop being outpriced every time you make a move. Best suited for retailers.</sum
|
|
12 |
<span style="font-size:140%">stop being outpriced</span> customer acquisition costs are higher than ever. Why should you lose a costly customer acquisition just because your competitor always aligns itself $1 below your price?<br><br><span style="font-size:140%">stop price wars</span> if your competitors react in near real-time to your prices, then anytime you lower a price, they will lower their price as well. Let competitors pick other opponents to run their price wars.<br><br><span style="font-size:140%">drive competition crazy</span> reverse-engineering BotDefender takes 1000 more time than setting it up. Keep competition distracted for months, while you make decisive moves on your core business.<br><br><span style="font-size:140%">it's free, no catch</span> the Express Plan is free and does not expire. No hidden costs or catch involved. We have a paid plan with extra features but the Express Plan is fully functional.<br><br><h2 class="thin">Obfuscation (Enterprise Plan)</h2>
|
13 |
Obfuscation is a more advanced protection method only made available in the Enterprise Plan. The snippet returned by BotDefender is an intricate price of HTML and JavaScript designed to be very hard to decipher, no matter if it's the raw HTML or the DOM (Domain Object Model) that are analyzed.<br><br>Advantages of obfuscation over tar pitting are:<br><br><ul><li><b>Zero overhead</b> caused by an extra HTTP request to be made by the end-user. The snippet is self-contained and does not require any external resources to be rendered as the price.</li><li><b>Zero liability</b> as the snippet is self-contained; it does not matter whether the BotDefender servers are up or down: the mechanism keeps working without any dependency on BotDefender.</li><li><b>Zero leakage</b> when obfuscation is used Lokad <i>cannot</i> collect any information about your web traffic. As far data leakage is concerned, it can't be made more secure than that.<br></li></ul><br>Lokad recommends obfuscation for high-traffic websites.
|
14 |
</description>
|
15 |
-
<notes>V2.0
|
16 |
<authors><author><name>Wyomind</name><user>Wyomind</user><email>contact@wyomind.com</email></author></authors>
|
17 |
-
<date>2014-
|
18 |
-
<time>
|
19 |
-
<contents><target name="magecommunity"><dir><dir name="Wyomind"><dir name="Botdefender"><dir name="Block"><dir name="Adminhtml"><file name="Notifications.php" hash="2e3e3df0081163f43c8ede37fbd5fa95"/></dir></dir><dir name="Helper"><file name="Data.php" hash="
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BotDefender_by_Lokad</name>
|
4 |
+
<version>2.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.wyomind.com/terms-and-conditions.html">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
12 |
<span style="font-size:140%">stop being outpriced</span> customer acquisition costs are higher than ever. Why should you lose a costly customer acquisition just because your competitor always aligns itself $1 below your price?<br><br><span style="font-size:140%">stop price wars</span> if your competitors react in near real-time to your prices, then anytime you lower a price, they will lower their price as well. Let competitors pick other opponents to run their price wars.<br><br><span style="font-size:140%">drive competition crazy</span> reverse-engineering BotDefender takes 1000 more time than setting it up. Keep competition distracted for months, while you make decisive moves on your core business.<br><br><span style="font-size:140%">it's free, no catch</span> the Express Plan is free and does not expire. No hidden costs or catch involved. We have a paid plan with extra features but the Express Plan is fully functional.<br><br><h2 class="thin">Obfuscation (Enterprise Plan)</h2>
|
13 |
Obfuscation is a more advanced protection method only made available in the Enterprise Plan. The snippet returned by BotDefender is an intricate price of HTML and JavaScript designed to be very hard to decipher, no matter if it's the raw HTML or the DOM (Domain Object Model) that are analyzed.<br><br>Advantages of obfuscation over tar pitting are:<br><br><ul><li><b>Zero overhead</b> caused by an extra HTTP request to be made by the end-user. The snippet is self-contained and does not require any external resources to be rendered as the price.</li><li><b>Zero liability</b> as the snippet is self-contained; it does not matter whether the BotDefender servers are up or down: the mechanism keeps working without any dependency on BotDefender.</li><li><b>Zero leakage</b> when obfuscation is used Lokad <i>cannot</i> collect any information about your web traffic. As far data leakage is concerned, it can't be made more secure than that.<br></li></ul><br>Lokad recommends obfuscation for high-traffic websites.
|
14 |
</description>
|
15 |
+
<notes>V2.1.0</notes>
|
16 |
<authors><author><name>Wyomind</name><user>Wyomind</user><email>contact@wyomind.com</email></author></authors>
|
17 |
+
<date>2014-04-16</date>
|
18 |
+
<time>09:36:54</time>
|
19 |
+
<contents><target name="magecommunity"><dir><dir name="Wyomind"><dir name="Botdefender"><dir name="Block"><dir name="Adminhtml"><file name="Notifications.php" hash="2e3e3df0081163f43c8ede37fbd5fa95"/></dir></dir><dir name="etc"><file name="config.xml" hash="73466e714ea1c231f6250e006d2266f5"/><file name="system.xml" hash="c0c90210c030a8531db9144b34445146"/></dir><dir name="Helper"><file name="Data.php" hash="a9622bea9baab5ba0379f7b13fa81edc"/></dir><dir name="Model"><file name="Observer.php" hash="9b5c2cc668b6e9fdee38c9b9c9b59e83"/><dir name="Resource"><file name="Setup.php" hash="31e494bb0f0d0e6c56ab1df0a5930efb"/></dir></dir><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Installation.php" hash="9cb39374d4788934f028c23c8be38f92"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wyomind_Botdefender.xml" hash="6961224077915480f64d4c30c6a1e3fa"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="botdefender.xml" hash="e75f14ad7cb6a185f472831cf40a17be"/></dir><dir name="template"><dir name="botdefender"><dir><dir name="bundle"><dir name="catalog"><dir name="product"><file name="price.phtml" hash="893eed0a24df8c168b83250447e5ed83"/><dir name="view"><file name="price.phtml" hash="bf7e73a0038d1aadbf31da8820523ce9"/></dir></dir></dir></dir><dir name="catalog"><dir name="product"><file name="price.phtml" hash="99ad8fa9ddbdbedfb2626ab33abe69b9"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="botdefender.xml" hash="db56f289d4ba772caaff40d4968c1edf"/></dir></dir></dir></dir></target><target name="mageweb"><dir name="lib"><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Botdefender.php" hash="03bf9c9f7bfddded751dbdb024bf384c"/></dir></dir></dir></dir></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
22 |
</package>
|