Private_Store - Version 0.1.0

Version Notes

none

Download this release

Release Info

Developer Magento Core Team
Extension Private_Store
Version 0.1.0
Comparing to
See all releases


Version 0.1.0

app/code/local/Mage/Nopeeking/etc/config.xml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Mage_Nopeeking>
5
+ <version>0.1.0</version>
6
+ </Mage_Nopeeking>
7
+ </modules>
8
+
9
+ <frontend>
10
+ <layout>
11
+ <updates>
12
+ <nopeeking>
13
+ <file>nopeeking.xml</file>
14
+ </nopeeking>
15
+ </updates>
16
+ </layout>
17
+ <routers>
18
+ <nopeeking>
19
+ <use>standard</use>
20
+ <args>
21
+ <module>Mage_Nopeeking</module>
22
+ <frontName>nopeeking</frontName>
23
+ </args>
24
+ </nopeeking>
25
+ </routers>
26
+ </frontend>
27
+ </config>
app/design/frontend/default/default/layout/nopeeking.xml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout>
3
+ <default>
4
+ </default>
5
+ <customer_logged_out>
6
+ <reference name="root">
7
+ <action method="setTemplate"><template>page/empty.phtml</template></action>
8
+ <reference name="content">
9
+ <action method="unsetChildren"></action>
10
+ <block type="customer/form_login" name="test" template="nopeeking/login.phtml" />
11
+ </reference>
12
+ </reference>
13
+ </customer_logged_out>
14
+ </layout>
app/design/frontend/default/default/template/nopeeking/login.phtml ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Customer login form template
30
+ *
31
+ * @see Mage_Customer_Block_Form_Login
32
+ */
33
+ ?>
34
+ <div class="account-login">
35
+ <div class="page-title">
36
+ <h1><?php echo $this->__('Login to your Account') ?></h1>
37
+ </div>
38
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
39
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-form">
40
+ <div class="col2-set">
41
+ <div class="registered-users">
42
+ <div class="content">
43
+ <h2><?php echo $this->__('Registered Customers') ?></h2>
44
+ <p><?php echo $this->__('If you have an account with us, please log in.') ?></p>
45
+ <ul class="form-list">
46
+ <li>
47
+ <label for="email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
48
+ <div class="input-box">
49
+ <input type="text" name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" id="email" class="input-text required-entry validate-email" title="<?php echo $this->__('Email Address') ?>" />
50
+ </div>
51
+ </li>
52
+ <li>
53
+ <label for="pass" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
54
+ <div class="input-box">
55
+ <input type="password" name="login[password]" class="input-text required-entry validate-password" id="pass" title="<?php echo $this->__('Password') ?>" />
56
+ </div>
57
+ </li>
58
+ </ul>
59
+ <p class="required"><?php echo $this->__('* Required Fields') ?></p>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ <div class="col2-set">
64
+ <div class="registered-users">
65
+ <div class="buttons-set">
66
+ <a href="<?php echo $this->getForgotPasswordUrl() ?>" class="f-left"><?php echo $this->__('Forgot Your Password?') ?></a>
67
+ <button type="submit" class="button" title="<?php echo $this->__('Login') ?>" name="send" id="send2"><span><span><?php echo $this->__('Login') ?></span></span></button>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </form>
72
+ <script type="text/javascript">
73
+ //<![CDATA[
74
+ var dataForm = new VarienForm('login-form', true);
75
+ //]]>
76
+ </script>
77
+ </div>
app/etc/modules/Mage_Nopeeking.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Mage_Nopeeking>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ </Mage_Nopeeking>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Private_Store</name>
4
+ <version>0.1.0</version>
5
+ <stability>stable</stability>
6
+ <license>GPL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Only allow registered users that are logged in to view your store.</summary>
10
+ <description>Only allow registered users that are logged in to view your store. It will block all functionaility until the user is logged in. This is ideal for developers creating non-public B2B websites, or internal catalogs.
11
+
12
+ DONT WASTE 110 EURO ON ALTERNATIVES THAT DO THE SAME THING, seriously, if you know what you're doing this is not a hard trick and you're getting ripped off.</description>
13
+ <notes>none</notes>
14
+ <authors><author><name>Brad Zasada</name><user>auto-converted</user><email>zasadab03@gmail.com</email></author></authors>
15
+ <date>2011-03-10</date>
16
+ <time>22:36:59</time>
17
+ <contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="nopeeking.xml" hash="f474fadc85bfefb6538efed3ee287cc5"/></dir><dir name="template"><dir name="nopeeking"><file name="login.phtml" hash="0b132d91360f2ba11e0a54464a497304"/></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="Mage"><dir name="Nopeeking"><dir name="etc"><file name="config.xml" hash="b94accbb1fead579dbc95084d6852a27"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Nopeeking.xml" hash="aa75b9be53f2bad80fbda4dd3f8bba28"/></dir></target></contents>
18
+ <compatible/>
19
+ <dependencies/>
20
+ </package>