Wmdlogincheck - Version 1.0.3

Version Notes

Installation Instructions:
http://wmdextensions.com/customer-service/
Extension Readme:
http://wmdextensions.com/wmdlogincheck-readme/

Download this release

Release Info

Developer Dominik Wyss
Extension Wmdlogincheck
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.3

app/code/community/Wmd/Wmdlogincheck/Helper/Observer.php CHANGED
@@ -45,6 +45,12 @@ class Wmd_Wmdlogincheck_Helper_Observer extends Mage_Core_Helper_Abstract
45
  // make sure the account login page remains accessible
46
  $allowedActionNames .= ',\'customer_account_login\',\'customer_account_confirm\'';
47
 
 
 
 
 
 
 
48
  // call event from observer
49
  $event = $observer->getEvent();
50
  // call action from event
45
  // make sure the account login page remains accessible
46
  $allowedActionNames .= ',\'customer_account_login\',\'customer_account_confirm\'';
47
 
48
+ if (0 == Mage::getStoreConfig('wmdlogincheck/contacts/protect'))
49
+ {
50
+ $allowedPathInfos .= ',contacts,contacts/index/';
51
+ $allowedActionNames .= ',\'contacts_index_post\',\'contacts_index\'';
52
+ }
53
+
54
  // call event from observer
55
  $event = $observer->getEvent();
56
  // call action from event
app/code/community/Wmd/Wmdlogincheck/etc/config.xml CHANGED
@@ -18,7 +18,7 @@
18
  <config>
19
  <modules>
20
  <Wmd_Wmdlogincheck>
21
- <version>1.0.2</version>
22
  </Wmd_Wmdlogincheck>
23
  </modules>
24
  <frontend>
@@ -90,6 +90,9 @@
90
  <actions>
91
  <allowed><![CDATA[/customer_account_create/,/customer_account_forgotpassword/]]></allowed>
92
  </actions>
 
 
 
93
  </wmdlogincheck>
94
  </default>
95
  </config>
18
  <config>
19
  <modules>
20
  <Wmd_Wmdlogincheck>
21
+ <version>1.0.3</version>
22
  </Wmd_Wmdlogincheck>
23
  </modules>
24
  <frontend>
90
  <actions>
91
  <allowed><![CDATA[/customer_account_create/,/customer_account_forgotpassword/]]></allowed>
92
  </actions>
93
+ <contacts>
94
+ <protect>0</protect>
95
+ </contacts>
96
  </wmdlogincheck>
97
  </default>
98
  </config>
app/code/community/Wmd/Wmdlogincheck/etc/system.xml CHANGED
@@ -87,6 +87,26 @@
87
  </allowed>
88
  </fields>
89
  </actions>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  </groups>
91
  </wmdlogincheck>
92
  </sections>
87
  </allowed>
88
  </fields>
89
  </actions>
90
+ <contacts translate="label">
91
+ <label>Contacts Page</label>
92
+ <frontend_type>text</frontend_type>
93
+ <sort_order>40</sort_order>
94
+ <show_in_default>1</show_in_default>
95
+ <show_in_website>1</show_in_website>
96
+ <show_in_store>1</show_in_store>
97
+ <fields>
98
+ <protect translate="label,comment">
99
+ <label>Login Protect</label>
100
+ <frontend_type>select</frontend_type>
101
+ <source_model>adminhtml/system_config_source_yesno</source_model>
102
+ <sort_order>1</sort_order>
103
+ <show_in_default>1</show_in_default>
104
+ <show_in_website>1</show_in_website>
105
+ <show_in_store>1</show_in_store>
106
+ <comment><![CDATA[Select 'Yes' to stop users accessing the contacts page without logging in.]]></comment>
107
+ </protect>
108
+ </fields>
109
+ </contacts>
110
  </groups>
111
  </wmdlogincheck>
112
  </sections>
app/locale/de_CH/Wmd_Wmdlogincheck.csv CHANGED
@@ -20,3 +20,6 @@
20
  "Customer Account Forgot Password","Kundenkonto Passwort vergessen"
21
  "Customer Account Confirmation","Kundenkonto Bestätigung"
22
  "System/Configuration/Web/Default Pages/CMS Home Page identifier is '%s'. You should allow this page or set CMS Home Page to some page you allow here to avoid this requests being forwarded to the Customer Login page.","System/Konfiguration/Web/Standardseiten/Startseite Bezeichner ist '%s'. Sie sollten diese Seite erlauben oder eine Standardseite festlegen die hier erlaubt ist um zu verhindern, dass Anfragen für die Standardseite auf die Kundenlogin Seite weitergeleitet werden."
 
 
 
20
  "Customer Account Forgot Password","Kundenkonto Passwort vergessen"
21
  "Customer Account Confirmation","Kundenkonto Bestätigung"
22
  "System/Configuration/Web/Default Pages/CMS Home Page identifier is '%s'. You should allow this page or set CMS Home Page to some page you allow here to avoid this requests being forwarded to the Customer Login page.","System/Konfiguration/Web/Standardseiten/Startseite Bezeichner ist '%s'. Sie sollten diese Seite erlauben oder eine Standardseite festlegen die hier erlaubt ist um zu verhindern, dass Anfragen für die Standardseite auf die Kundenlogin Seite weitergeleitet werden."
23
+ "Contacts Page","Kontakt Seite"
24
+ "Login Protect","Login geschützt"
25
+ "Select 'Yes' to stop users accessing the contacts page without logging in.","'Ja' anwählen um nur angemeldeten Nutzern Zugang zur Kontakt Seite zu gewähren."
app/locale/de_DE/Wmd_Wmdlogincheck.csv CHANGED
@@ -20,3 +20,6 @@
20
  "Customer Account Forgot Password","Kundenkonto Passwort vergessen"
21
  "Customer Account Confirmation","Kundenkonto Bestätigung"
22
  "System/Configuration/Web/Default Pages/CMS Home Page identifier is '%s'. You should allow this page or set CMS Home Page to some page you allow here to avoid this requests being forwarded to the Customer Login page.","System/Konfiguration/Web/Standardseiten/Startseite Bezeichner ist '%s'. Sie sollten diese Seite erlauben oder eine Standardseite festlegen die hier erlaubt ist um zu verhindern, dass Anfragen für die Standardseite auf die Kundenlogin Seite weitergeleitet werden."
 
 
 
20
  "Customer Account Forgot Password","Kundenkonto Passwort vergessen"
21
  "Customer Account Confirmation","Kundenkonto Bestätigung"
22
  "System/Configuration/Web/Default Pages/CMS Home Page identifier is '%s'. You should allow this page or set CMS Home Page to some page you allow here to avoid this requests being forwarded to the Customer Login page.","System/Konfiguration/Web/Standardseiten/Startseite Bezeichner ist '%s'. Sie sollten diese Seite erlauben oder eine Standardseite festlegen die hier erlaubt ist um zu verhindern, dass Anfragen für die Standardseite auf die Kundenlogin Seite weitergeleitet werden."
23
+ "Contacts Page","Kontakt Seite"
24
+ "Login Protect","Login geschützt"
25
+ "Select 'Yes' to stop users accessing the contacts page without logging in.","'Ja' anwählen um nur angemeldeten Nutzern Zugang zur Kontakt Seite zu gewähren."
app/locale/en_US/Wmd_Wmdlogincheck.csv CHANGED
@@ -20,3 +20,6 @@
20
  "Customer Account Forgot Password","Customer Account Forgot Password"
21
  "Customer Account Confirmation","Customer Account Confirmation"
22
  "System/Configuration/Web/Default Pages/CMS Home Page identifier is '%s'. You should allow this page or set CMS Home Page to some page you allow here to avoid this requests being forwarded to the Customer Login page.","System/Configuration/Web/Default Pages/CMS Home Page identifier is '%s'. You should allow this page or set CMS Home Page to some page you allow here to avoid this requests being forwarded to the Customer Login page."
 
 
 
20
  "Customer Account Forgot Password","Customer Account Forgot Password"
21
  "Customer Account Confirmation","Customer Account Confirmation"
22
  "System/Configuration/Web/Default Pages/CMS Home Page identifier is '%s'. You should allow this page or set CMS Home Page to some page you allow here to avoid this requests being forwarded to the Customer Login page.","System/Configuration/Web/Default Pages/CMS Home Page identifier is '%s'. You should allow this page or set CMS Home Page to some page you allow here to avoid this requests being forwarded to the Customer Login page."
23
+ "Contacts Page","Contacts Page"
24
+ "Login Protect","Login Protect"
25
+ "Select 'Yes' to stop users accessing the contacts page without logging in.","Select 'Yes' to stop users accessing the contacts page without logging in."
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Wmdlogincheck</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://eklatant.ch/WMD-License-Community.txt">EULA</license>
7
  <channel>community</channel>
@@ -16,13 +16,15 @@
16
  - Control the customer account actions that can be taken by users.&#xD;
17
  &#xD;
18
  </description>
19
- <notes>Installation Instructions:&#xD;
20
- http://wmdextensions.com/customer-service/&#xD;
 
 
21
  </notes>
22
  <authors><author><name>Dominik Wyss</name><user>justanother</user><email>info@digiswiss.ch</email></author></authors>
23
- <date>2012-04-14</date>
24
- <time>08:58:25</time>
25
- <contents><target name="magecommunity"><dir name="Wmd"><dir name="Wmdlogincheck"><dir name="Helper"><file name="Data.php" hash="a1568cdc2e1fd0af8ef0abd250bfc946"/><file name="Observer.php" hash="449d169f5827b0fad396053f8852f939"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Backend"><dir name="Wmdlogincheck"><dir name="Pages"><file name="Allowed.php" hash="932395ced40e4e931e925a1f32bf0c51"/></dir></dir></dir><dir name="Source"><dir name="Customer"><dir name="Logincheck"><file name="Actions.php" hash="1ed14d757b15812d43205f4667c432a3"/></dir></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="eb6ffd6da662b25c775ab21f6b2941dc"/><file name="system.xml" hash="7b0d8f14a2b62fb860554a834a2dafc4"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wmd_Wmdlogincheck.xml" hash="c1914255456abe4874374b07425a8532"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Wmd_Wmdlogincheck.csv" hash="5e3561a10e38d4265f75d2c863fecfce"/></dir><dir name="de_DE"><file name="Wmd_Wmdlogincheck.csv" hash="bf78e299ed112f6bdd36dac659dd5e06"/></dir><dir name="de_CH"><file name="Wmd_Wmdlogincheck.csv" hash="bf78e299ed112f6bdd36dac659dd5e06"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="customer"><dir name="form"><file name="login.phtml" hash="78ee7289350c77241a3916a40281fd8b"/></dir></dir><dir name="persistent"><dir name="customer"><dir name="form"><file name="login.phtml" hash="990bf665b00a93baea74017390444893"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Wmdlogincheck</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://eklatant.ch/WMD-License-Community.txt">EULA</license>
7
  <channel>community</channel>
16
  - Control the customer account actions that can be taken by users.&#xD;
17
  &#xD;
18
  </description>
19
+ <notes>Installation Instructions: &#xD;
20
+ http://wmdextensions.com/customer-service/ &#xD;
21
+ Extension Readme: &#xD;
22
+ http://wmdextensions.com/wmdlogincheck-readme/ &#xD;
23
  </notes>
24
  <authors><author><name>Dominik Wyss</name><user>justanother</user><email>info@digiswiss.ch</email></author></authors>
25
+ <date>2012-05-30</date>
26
+ <time>12:46:42</time>
27
+ <contents><target name="magecommunity"><dir name="Wmd"><dir name="Wmdlogincheck"><dir name="Helper"><file name="Data.php" hash="a1568cdc2e1fd0af8ef0abd250bfc946"/><file name="Observer.php" hash="fe15171a0f6476cbb28cff66bca68f4f"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Backend"><dir name="Wmdlogincheck"><dir name="Pages"><file name="Allowed.php" hash="932395ced40e4e931e925a1f32bf0c51"/></dir></dir></dir><dir name="Source"><dir name="Customer"><dir name="Logincheck"><file name="Actions.php" hash="1ed14d757b15812d43205f4667c432a3"/></dir></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="2e2709f6a79052d9de7bdc3752333160"/><file name="system.xml" hash="ef36e95f16fc75cd4ce26889ffb6d775"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wmd_Wmdlogincheck.xml" hash="c1914255456abe4874374b07425a8532"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Wmd_Wmdlogincheck.csv" hash="b475aab2ecbdb0bf25964274faef5148"/></dir><dir name="de_DE"><file name="Wmd_Wmdlogincheck.csv" hash="b3b75a40fe9903b1585fb6930fd1d05d"/></dir><dir name="de_CH"><file name="Wmd_Wmdlogincheck.csv" hash="b3b75a40fe9903b1585fb6930fd1d05d"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="customer"><dir name="form"><file name="login.phtml" hash="78ee7289350c77241a3916a40281fd8b"/></dir></dir><dir name="persistent"><dir name="customer"><dir name="form"><file name="login.phtml" hash="990bf665b00a93baea74017390444893"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
28
  <compatible/>
29
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
30
  </package>