Version Notes
Added autodetecting of secure mode. Modified labels of config options.
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | contactsformcaptcha |
| Version | 1.3.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.3.0 to 1.3.1
app/code/community/OlegKoval/ContactsFormCaptcha/controllers/IndexController.php
CHANGED
|
@@ -38,7 +38,7 @@ class OlegKoval_ContactsFormCaptcha_IndexController extends Mage_Contacts_IndexC
|
|
| 38 |
|
| 39 |
//create captcha html-code
|
| 40 |
$publickey = Mage::getStoreConfig(self::XML_PATH_CFC_PUBLIC_KEY);
|
| 41 |
-
$captcha_code = recaptcha_get_html($publickey);
|
| 42 |
|
| 43 |
//get reCaptcha theme name
|
| 44 |
$theme = Mage::getStoreConfig(self::XML_PATH_CFC_THEME);
|
|
@@ -107,4 +107,4 @@ class OlegKoval_ContactsFormCaptcha_IndexController extends Mage_Contacts_IndexC
|
|
| 107 |
//everything is OK - call parent action
|
| 108 |
parent::postAction();
|
| 109 |
}
|
| 110 |
-
}
|
| 38 |
|
| 39 |
//create captcha html-code
|
| 40 |
$publickey = Mage::getStoreConfig(self::XML_PATH_CFC_PUBLIC_KEY);
|
| 41 |
+
$captcha_code = recaptcha_get_html($publickey, null, Mage::app()->getStore()->isCurrentlySecure());
|
| 42 |
|
| 43 |
//get reCaptcha theme name
|
| 44 |
$theme = Mage::getStoreConfig(self::XML_PATH_CFC_THEME);
|
| 107 |
//everything is OK - call parent action
|
| 108 |
parent::postAction();
|
| 109 |
}
|
| 110 |
+
}
|
app/code/community/OlegKoval/ContactsFormCaptcha/etc/config.xml
CHANGED
|
@@ -10,14 +10,14 @@
|
|
| 10 |
*/
|
| 11 |
-->
|
| 12 |
<config>
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
|
| 22 |
<global>
|
| 23 |
<blocks>
|
|
@@ -33,8 +33,8 @@
|
|
| 33 |
</models>
|
| 34 |
</global>
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
<contacts>
|
| 39 |
<args>
|
| 40 |
<modules>
|
|
@@ -43,14 +43,14 @@
|
|
| 43 |
</args>
|
| 44 |
</contacts>
|
| 45 |
</routers>
|
| 46 |
-
<translate>
|
| 47 |
-
<modules>
|
| 48 |
-
<OlegKoval_ContactsFormCaptcha>
|
| 49 |
-
<files>
|
| 50 |
-
<default>OlegKoval_ContactsFormCaptcha.csv</default>
|
| 51 |
-
</files>
|
| 52 |
-
</OlegKoval_ContactsFormCaptcha>
|
| 53 |
-
</modules>
|
| 54 |
</translate>
|
| 55 |
<layout>
|
| 56 |
<updates>
|
|
@@ -62,14 +62,14 @@
|
|
| 62 |
</frontend>
|
| 63 |
|
| 64 |
<adminhtml>
|
| 65 |
-
<translate>
|
| 66 |
-
<modules>
|
| 67 |
-
<OlegKoval_ContactsFormCaptcha>
|
| 68 |
-
<files>
|
| 69 |
-
<default>OlegKoval_ContactsFormCaptcha.csv</default>
|
| 70 |
-
</files>
|
| 71 |
-
</OlegKoval_ContactsFormCaptcha>
|
| 72 |
-
</modules>
|
| 73 |
</translate>
|
| 74 |
-
|
| 75 |
</config>
|
| 10 |
*/
|
| 11 |
-->
|
| 12 |
<config>
|
| 13 |
+
<modules>
|
| 14 |
+
<OlegKoval_ContactsFormCaptcha>
|
| 15 |
+
<version>1.3.1</version>
|
| 16 |
+
<depends>
|
| 17 |
+
<Mage_Contacts/>
|
| 18 |
+
</depends>
|
| 19 |
+
</OlegKoval_ContactsFormCaptcha>
|
| 20 |
+
</modules>
|
| 21 |
|
| 22 |
<global>
|
| 23 |
<blocks>
|
| 33 |
</models>
|
| 34 |
</global>
|
| 35 |
|
| 36 |
+
<frontend>
|
| 37 |
+
<routers>
|
| 38 |
<contacts>
|
| 39 |
<args>
|
| 40 |
<modules>
|
| 43 |
</args>
|
| 44 |
</contacts>
|
| 45 |
</routers>
|
| 46 |
+
<translate>
|
| 47 |
+
<modules>
|
| 48 |
+
<OlegKoval_ContactsFormCaptcha>
|
| 49 |
+
<files>
|
| 50 |
+
<default>OlegKoval_ContactsFormCaptcha.csv</default>
|
| 51 |
+
</files>
|
| 52 |
+
</OlegKoval_ContactsFormCaptcha>
|
| 53 |
+
</modules>
|
| 54 |
</translate>
|
| 55 |
<layout>
|
| 56 |
<updates>
|
| 62 |
</frontend>
|
| 63 |
|
| 64 |
<adminhtml>
|
| 65 |
+
<translate>
|
| 66 |
+
<modules>
|
| 67 |
+
<OlegKoval_ContactsFormCaptcha>
|
| 68 |
+
<files>
|
| 69 |
+
<default>OlegKoval_ContactsFormCaptcha.csv</default>
|
| 70 |
+
</files>
|
| 71 |
+
</OlegKoval_ContactsFormCaptcha>
|
| 72 |
+
</modules>
|
| 73 |
</translate>
|
| 74 |
+
</adminhtml>
|
| 75 |
</config>
|
app/code/community/OlegKoval/ContactsFormCaptcha/etc/system.xml
CHANGED
|
@@ -32,7 +32,7 @@
|
|
| 32 |
<show_in_store>1</show_in_store>
|
| 33 |
</enabled>
|
| 34 |
<public_key translate="label">
|
| 35 |
-
<label>
|
| 36 |
<comment>You got this from the signup page: https://www.google.com/recaptcha/admin/create</comment>
|
| 37 |
<frontend_type>text</frontend_type>
|
| 38 |
<sort_order>20</sort_order>
|
|
@@ -41,7 +41,7 @@
|
|
| 41 |
<show_in_store>1</show_in_store>
|
| 42 |
</public_key>
|
| 43 |
<private_key translate="label">
|
| 44 |
-
<label>
|
| 45 |
<comment>You got this from the signup page: https://www.google.com/recaptcha/admin/create</comment>
|
| 46 |
<frontend_type>text</frontend_type>
|
| 47 |
<sort_order>30</sort_order>
|
| 32 |
<show_in_store>1</show_in_store>
|
| 33 |
</enabled>
|
| 34 |
<public_key translate="label">
|
| 35 |
+
<label>Site Key</label>
|
| 36 |
<comment>You got this from the signup page: https://www.google.com/recaptcha/admin/create</comment>
|
| 37 |
<frontend_type>text</frontend_type>
|
| 38 |
<sort_order>20</sort_order>
|
| 41 |
<show_in_store>1</show_in_store>
|
| 42 |
</public_key>
|
| 43 |
<private_key translate="label">
|
| 44 |
+
<label>Secret Key</label>
|
| 45 |
<comment>You got this from the signup page: https://www.google.com/recaptcha/admin/create</comment>
|
| 46 |
<frontend_type>text</frontend_type>
|
| 47 |
<sort_order>30</sort_order>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>contactsformcaptcha</name>
|
| 4 |
-
<version>1.3.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -9,12 +9,14 @@
|
|
| 9 |
<summary>Add captcha to "Contact Us" form.</summary>
|
| 10 |
<description>"Contacts Form Captcha" extension add in easy way the captcha to "Contact Us" form.
|
| 11 |

|
|
|
|
|
|
|
| 12 |
This extension uses reCaptcha library (http://www.google.com/recaptcha).</description>
|
| 13 |
-
<notes>
|
| 14 |
<authors><author><name>Oleg Koval</name><user>auto-converted</user><email>oleh.koval@gmail.com</email></author></authors>
|
| 15 |
-
<date>
|
| 16 |
-
<time>
|
| 17 |
-
<contents><target name="magecommunity"><dir name="OlegKoval"><dir name="ContactsFormCaptcha"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Lang.php" hash="c3b3814ccfc3f97fb8807f0d4ad69d8c"/><file name="Theme.php" hash="c0a7eb1ad6e2157b5f822d0a5d30022c"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="
|
| 18 |
<compatible/>
|
| 19 |
<dependencies/>
|
| 20 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>contactsformcaptcha</name>
|
| 4 |
+
<version>1.3.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 9 |
<summary>Add captcha to "Contact Us" form.</summary>
|
| 10 |
<description>"Contacts Form Captcha" extension add in easy way the captcha to "Contact Us" form.
|
| 11 |

|
| 12 |
+

|
| 13 |
+

|
| 14 |
This extension uses reCaptcha library (http://www.google.com/recaptcha).</description>
|
| 15 |
+
<notes>Added autodetecting of secure mode. Modified labels of config options.</notes>
|
| 16 |
<authors><author><name>Oleg Koval</name><user>auto-converted</user><email>oleh.koval@gmail.com</email></author></authors>
|
| 17 |
+
<date>2016-01-09</date>
|
| 18 |
+
<time>14:46:57</time>
|
| 19 |
+
<contents><target name="magecommunity"><dir name="OlegKoval"><dir name="ContactsFormCaptcha"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Lang.php" hash="c3b3814ccfc3f97fb8807f0d4ad69d8c"/><file name="Theme.php" hash="c0a7eb1ad6e2157b5f822d0a5d30022c"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="20cd5985f31d0c960a10ed2581350368"/></dir><dir name="etc"><file name="config.xml" hash="1d43e3e113e335f3aed32071fd73b0e3"/><file name="system.xml" hash="8dfefc416bfb626600a79115dfa5ddd6"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OlegKoval_ContactsFormCaptcha.xml" hash="9b7cbc1587fc43d6a0cd1106bc19a4fc"/></dir></target><target name="magelib"><dir name="reCaptcha"><file name="recaptchalib.php" hash="f80a9f01727de68aba8e98f1e37345a9"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="contactsformcaptcha.xml" hash="c51cd3c07d757ee1985653544fffb2fd"/></dir><dir name="template"><dir name="contactsformcaptcha"><file name="form.phtml" hash="bb89546be7a1730937089f1769438ffc"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="OlegKoval_ContactsFormCaptcha.csv" hash="5e430d77c352109bf67305e56b4a3845"/></dir></target></contents>
|
| 20 |
<compatible/>
|
| 21 |
<dependencies/>
|
| 22 |
</package>
|
