Ifuturz_Adminlogin - Version 0.2.0

Version Notes

This is first stable version.

Download this release

Release Info

Developer Iverve
Extension Ifuturz_Adminlogin
Version 0.2.0
Comparing to
See all releases


Code changes from version 0.1.0 to 0.2.0

app/design/adminhtml/default/default/template/adminlogin/customlogin.phtml ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Ifuturz_Adminlogin
4
+ */
5
+ ?>
6
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
7
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
8
+ <head>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
+ <title><?php echo Mage::helper('adminhtml')->__('Log into Magento Admin Page') ?></title>
11
+ <link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('reset.css') ?>" media="all" />
12
+ <link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('boxes.css') ?>" media="all" />
13
+ <link rel="icon" href="<?php echo $this->getSkinUrl('favicon.ico') ?>" type="image/x-icon" />
14
+ <link rel="shortcut icon" href="<?php echo $this->getSkinUrl('favicon.ico') ?>" type="image/x-icon" />
15
+
16
+ <script type="text/javascript" src="<?php echo $this->getJsUrl('prototype/prototype.js') ?>"></script>
17
+ <script type="text/javascript" src="<?php echo $this->getJsUrl('prototype/validation.js') ?>"></script>
18
+ <script type="text/javascript" src="<?php echo $this->getJsUrl('scriptaculous/effects.js') ?>"></script>
19
+ <script type="text/javascript" src="<?php echo $this->getJsUrl('mage/adminhtml/form.js') ?>"></script>
20
+ <script type="text/javascript" src="<?php echo $this->getJsUrl('mage/captcha.js') ?>"></script>
21
+
22
+ <!--[if IE]> <link rel="stylesheet" href="<?php echo $this->getSkinUrl('iestyles.css') ?>" type="text/css" media="all" /> <![endif]-->
23
+ <!--[if lt IE 7]> <link rel="stylesheet" href="<?php echo $this->getSkinUrl('below_ie7.css') ?>" type="text/css" media="all" /> <![endif]-->
24
+ <!--[if IE 7]> <link rel="stylesheet" href="<?php echo $this->getSkinUrl('ie7.css') ?>" type="text/css" media="all" /> <![endif]-->
25
+ <?php $path = Mage::getBaseUrl('media').DS."images/".Mage::getStoreConfig("adminlogin/adminloginconfig/adminlogin_image"); ?>
26
+ <?php $bgpath = Mage::getBaseUrl('media').DS."images/".Mage::getStoreConfig("adminlogin/adminloginconfig/adminlogin_bgimage"); ?>
27
+ <style>
28
+ .login-container1{
29
+ background: url("<?php echo $path; ?>") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
30
+ margin: 170px auto;
31
+ padding-left: 32px;
32
+ width: 581px; }
33
+
34
+ .login-form1 {
35
+ background: url("<?php echo $bgpath; ?>") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
36
+ background-size: 100% 100%;
37
+ padding: 27px 57px 35px;
38
+ text-align: left;
39
+ }
40
+ <?php echo Mage::getStoreConfig("adminlogin/adminloginconfig/textarea"); ?>
41
+
42
+ </style>
43
+ </head>
44
+ <body id="page-login" onload="document.forms.loginForm.username.focus();">
45
+ <div class="login-container1" style="">
46
+ <div class="login-box">
47
+ <form method="post" action="" id="loginForm" autocomplete="off">
48
+ <div class="login-form1">
49
+ <input name="form_key" type="hidden" value="<?php echo $this->getFormKey() ?>" />
50
+ <h2><?php echo Mage::getStoreConfig("adminlogin/adminloginconfig/adminlogin_title");
51
+ ?></h2>
52
+
53
+
54
+ <div id="messages">
55
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
56
+ </div>
57
+ <div class="input-box input-left"><label for="username"><?php echo Mage::helper('adminhtml')->__('User Name:') ?></label><br/>
58
+ <input type="text" id="username" name="login[username]" value="" class="required-entry input-text" /></div>
59
+ <div class="input-box input-right"><label for="login"><?php echo Mage::helper('adminhtml')->__('Password:') ?></label><br />
60
+ <!-- This is a dummy hidden field to trick firefox from auto filling the password -->
61
+ <input type="text" class="input-text no-display" name="dummy" id="dummy" />
62
+ <input type="password" id="login" name="login[password]" class="required-entry input-text" value="" /></div>
63
+ <?php echo $this->getChildHtml('form.additional.info'); ?>
64
+ <div class="clear"></div>
65
+ <div class="form-buttons">
66
+ <a class="left" href="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/index/forgotpassword', array('_nosecret' => true)) ?>"><?php echo Mage::helper('adminhtml')->__('Forgot your password?') ?></a>
67
+ <input type="submit" class="form-button" value="<?php echo Mage::helper('adminhtml')->__('Login') ?>" title="<?php echo Mage::helper('adminhtml')->__('Login') ?>" /></div>
68
+ </div>
69
+ <p class="legal">
70
+ <?php if(strlen(Mage::getStoreConfig("adminlogin/adminloginconfig/adminlogin_copyright"))): ?>
71
+ <?php echo Mage::getStoreConfig("adminlogin/adminloginconfig/adminlogin_copyright"); ?>
72
+ <?php else: ?>
73
+ <?php echo Mage::helper('adminhtml')->__('Magento is a trademark of Magento Inc. Copyright &copy; %s Magento Inc.'); ?>
74
+ <?php endif; ?>
75
+ </p>
76
+ </form>
77
+ <div class="bottom"></div>
78
+ <script type="text/javascript">
79
+ var loginForm = new varienForm('loginForm');
80
+ </script>
81
+ </div>
82
+ </div>
83
+ </body>
84
+ </html>
85
+
app/design/adminhtml/default/default/template/adminlogin/forgotpassword.phtml ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Ifuturz_Adminlogin
4
+ */
5
+ ?>
6
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
7
+ <html lang="en">
8
+ <head>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
+ <title><?php echo Mage::helper('adminhtml')->__('Log into Magento Admin Page'); ?></title>
11
+ <link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('reset.css'); ?>" media="all" />
12
+ <link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('boxes.css'); ?>" media="all" />
13
+ <link rel="icon" href="<?php echo $this->getSkinUrl('favicon.ico'); ?>" type="image/x-icon" />
14
+ <link rel="shortcut icon" href="<?php echo $this->getSkinUrl('favicon.ico'); ?>" type="image/x-icon" />
15
+
16
+ <script type="text/javascript" src="<?php echo $this->getJsUrl(); ?>index.php/x.js?f=prototype/prototype.js,prototype/validation.js,mage/adminhtml/events.js,mage/adminhtml/form.js,scriptaculous/effects.js"></script>
17
+ <script type="text/javascript" src="<?php echo $this->getJsUrl('mage/captcha.js') ?>"></script>
18
+
19
+ <!--[if IE]> <link rel="stylesheet" href="<?php echo $this->getSkinUrl('iestyles.css'); ?>" type="text/css" media="all" /> <![endif]-->
20
+ <!--[if lt IE 7]> <link rel="stylesheet" href="<?php echo $this->getSkinUrl('below_ie7.css'); ?>" type="text/css" media="all" /> <![endif]-->
21
+ <!--[if IE 7]> <link rel="stylesheet" href="<?php echo $this->getSkinUrl('ie7.css'); ?>" type="text/css" media="all" /> <![endif]-->
22
+ <?php $path = Mage::getBaseUrl('media').DS."images/".Mage::getStoreConfig("adminlogin/adminloginconfig/adminlogin_image"); ?>
23
+ <?php $bgpath = Mage::getBaseUrl('media').DS."images/".Mage::getStoreConfig("adminlogin/adminloginconfig/adminlogin_bgimage"); ?>
24
+ <style>.login-container1{
25
+ background: url("<?php echo $path; ?>") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
26
+ margin: 170px auto;
27
+ padding-left: 32px;
28
+ width: 581px; }
29
+
30
+ .login-form1 {
31
+ background: url("<?php echo $bgpath; ?>") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
32
+ background-size: 100% 100%;
33
+ padding: 27px 57px 35px;
34
+ text-align: left;
35
+ }
36
+ <?php echo Mage::getStoreConfig("adminlogin/adminloginconfig/textarea"); ?>
37
+
38
+ </style>
39
+ </head>
40
+ <body id="page-login">
41
+ <div class="login-container1">
42
+ <div class="login-box">
43
+ <form method="post" action="" id="loginForm">
44
+ <fieldset class="login-form1">
45
+ <input name="form_key" type="hidden" value="<?php echo $this->getFormKey(); ?>" />
46
+ <?php if(strlen(Mage::getStoreConfig("adminlogin/adminloginconfig/forgotpass_title"))): ?>
47
+ <h2><?php echo Mage::getStoreConfig("adminlogin/adminloginconfig/forgotpass_title"); ?></h2>
48
+ <?php else: ?>
49
+ <h2><?php echo Mage::helper('adminhtml')->__('Forgot your user name or password?'); ?></h2>
50
+ <?php endif; ?>
51
+
52
+
53
+ <div id="messages">
54
+ <?php echo $this->getMessagesBlock()->getGroupedHtml(); ?>
55
+ </div>
56
+ <div class="input-box forgot-password"><label for="email"><?php echo Mage::helper('adminhtml')->__('Email Address:'); ?></label><br />
57
+ <input type="text" id="email" name="email" value="" class="required-entry input-text forgot-password validate-email" style="width:461px;" />
58
+ </div>
59
+ <?php echo $this->getChildHtml('form.additional.info'); ?>
60
+ <div class="clear"></div>
61
+ <div class="form-buttons">
62
+ <a class="left" href="<?php echo $this->getUrl('adminhtml', array('_nosecret' => true)); ?>">&laquo; <?php echo Mage::helper('adminhtml')->__('Back to Login'); ?></a>
63
+ <button class="forgot-password" onclick="loginForm.submit()" type="button"><span><span><span><?php echo Mage::helper('adminhtml')->__('Retrieve Password'); ?></span></span></span></button>
64
+ </div>
65
+ </fieldset>
66
+ <p class="legal">
67
+ <?php if(strlen(Mage::getStoreConfig("adminlogin/adminloginconfig/adminlogin_copyright"))): ?>
68
+ <?php echo Mage::getStoreConfig("adminlogin/adminloginconfig/adminlogin_copyright"); ?>
69
+ <?php else: ?>
70
+ <?php echo Mage::helper('adminhtml')->__('Magento is a trademark of Magento Inc. Copyright &copy; %s Magento Inc.'); ?>
71
+ <?php endif; ?>
72
+ </p>
73
+ </form>
74
+ <div class="bottom"></div>
75
+ <script type="text/javascript">
76
+ var loginForm = new varienForm('loginForm');
77
+ </script>
78
+ </div>
79
+ </div>
80
+ </body>
81
+ </html>
82
+
app/etc/modules/Ifuturz_Adminlogin.xml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--/**
3
+ * @package Ifuturz_Adminlogin
4
+ */-->
5
+ <config>
6
+ <modules>
7
+ <Ifuturz_Adminlogin>
8
+ <active>true</active>
9
+ <codePool>local</codePool>
10
+ </Ifuturz_Adminlogin>
11
+ </modules>
12
+ </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ifuturz_Adminlogin</name>
4
- <version>0.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -31,9 +31,9 @@ o Copyright text and also the admin can apply his own CSS to the admin login pag
31
  </description>
32
  <notes>This is first stable version.</notes>
33
  <authors><author><name>Iverve</name><user>iverve</user><email>extension.geek@ifuturz.com</email></author></authors>
34
- <date>2015-01-26</date>
35
- <time>11:42:02</time>
36
- <contents><target name="mageetc"><dir name="modules"><file name="futurz_Adminlogin.xml" hash=""/></dir></target><target name="magelocal"><dir name="Ifuturz"><dir name="Adminlogin"><dir name="Helper"><file name="Data.php" hash="e973a09bcc985b90d9dfb28f2a669b7b"/></dir><dir name="Model"><file name="Observer.php" hash="74ce9e9433d9789862b808ec118b1e9b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="b2ff250273d8557e49166f59cd1bf2c0"/></dir></dir><dir name="etc"><file name="config.xml" hash="335489fc5e00315f9bff9e3ea4a61867"/><file name="system.xml" hash="35af2b39b15e207fae92d3fa003b9690"/></dir><dir name="sql"><dir name="adminlogin_setup"><file name="mysql4-install-0.1.0.php" hash="aa005c7a1649ff176b7103b58980a9c8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="adminlogin.xml" hash="89abe2457878bef1c6eba6c463e2e674"/></dir></dir></dir></dir></target></contents>
37
  <compatible/>
38
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
39
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ifuturz_Adminlogin</name>
4
+ <version>0.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
31
  </description>
32
  <notes>This is first stable version.</notes>
33
  <authors><author><name>Iverve</name><user>iverve</user><email>extension.geek@ifuturz.com</email></author></authors>
34
+ <date>2015-01-28</date>
35
+ <time>11:39:22</time>
36
+ <contents><target name="mageetc"><dir name="modules"><file name="Ifuturz_Adminlogin.xml" hash="ef40ba857eb99cb4060d8718e3b272a7"/></dir></target><target name="magelocal"><dir name="Ifuturz"><dir name="Adminlogin"><dir name="Helper"><file name="Data.php" hash="e973a09bcc985b90d9dfb28f2a669b7b"/></dir><dir name="Model"><file name="Observer.php" hash="74ce9e9433d9789862b808ec118b1e9b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="b2ff250273d8557e49166f59cd1bf2c0"/></dir></dir><dir name="etc"><file name="config.xml" hash="335489fc5e00315f9bff9e3ea4a61867"/><file name="system.xml" hash="35af2b39b15e207fae92d3fa003b9690"/></dir><dir name="sql"><dir name="adminlogin_setup"><file name="mysql4-install-0.1.0.php" hash="aa005c7a1649ff176b7103b58980a9c8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="adminlogin.xml" hash="89abe2457878bef1c6eba6c463e2e674"/></dir><dir name="template"><dir name="adminlogin"><file name="customlogin.phtml" hash="2aa53a3c72dabbe4830db295c44f0f28"/><file name="forgotpassword.phtml" hash="3d6607a19ada7107d73c321336e49fe3"/></dir></dir></dir></dir></dir></target></contents>
37
  <compatible/>
38
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
39
  </package>