EmailBrainApi - Version 1.1.0

Version Notes

Release notes for users and developers

Download this release

Release Info

Developer a1professionals
Extension EmailBrainApi
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.0 to 1.1.0

app/code/local/Module/Emailbrain/controllers/Adminhtml/EmailbrainbackendController.php CHANGED
@@ -77,7 +77,7 @@ class Module_Emailbrain_Adminhtml_EmailbrainbackendController extends Mage_Admin
77
  if($condt==1)
78
  {
79
  $fields.=" ,dataset_id='$data[dataset_id]',maillist_id='$data[maillist_id]'";
80
- $message='<li class="error-msg">Authentication failed.Check username and password.</li></ul></li>';
81
  }
82
  $fields.=" ,dataset_id='$data[dataset_id]',maillist_id='$data[maillist_id]'";
83
  $query="UPDATE emailbrain_account SET ".$fields;
77
  if($condt==1)
78
  {
79
  $fields.=" ,dataset_id='$data[dataset_id]',maillist_id='$data[maillist_id]'";
80
+ $message='<li class="error-msg">'.$this->__('Authentication failed.Check username and password.').'</li></ul></li>';
81
  }
82
  $fields.=" ,dataset_id='$data[dataset_id]',maillist_id='$data[maillist_id]'";
83
  $query="UPDATE emailbrain_account SET ".$fields;
app/code/local/Module/Emailbrain/etc/config.xml CHANGED
@@ -1,122 +1,132 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Module_Emailbrain>
5
- <version>0.1.0</version>
6
- </Module_Emailbrain>
7
- </modules>
8
-
9
- <frontend>
10
- <routers>
11
- <customer>
12
- <args>
13
- <modules>
14
- <module_emailbrain before="Mage_Customer">Module_Emailbrain</module_emailbrain>
15
- </modules>
16
- </args>
17
- </customer>
18
- </routers>
19
- </frontend>
20
-
21
- <frontend>
22
- <routers>
23
- <newsletter>
24
- <args>
25
- <modules>
26
- <module_emailbrain before="Mage_Newsletter">Module_Emailbrain</module_emailbrain>
27
- </modules>
28
- </args>
29
- </newsletter>
30
- </routers>
31
- </frontend>
32
-
33
- <global>
34
-
35
-
36
-
37
- <helpers>
38
- <emailbrain>
39
- <class>Module_Emailbrain_Helper</class>
40
- </emailbrain>
41
- </helpers>
42
-
43
- <blocks><emailbrain><class>Module_Emailbrain_Block</class></emailbrain></blocks>
44
- <resources>
45
- <emailbrain_setup>
46
- <setup>
47
- <module>Module_Emailbrain</module>
48
- </setup>
49
- <connection>
50
- <use>core_setup</use>
51
- </connection>
52
- </emailbrain_setup>
53
- <emailbrain_write>
54
- <connection>
55
- <use>core_write</use>
56
- </connection>
57
- </emailbrain_write>
58
- <emailbrain_read>
59
- <connection>
60
- <use>core_read</use>
61
- </connection>
62
- </emailbrain_read>
63
-
64
- </resources>
65
-
66
- </global>
67
- <admin>
68
- <routers>
69
- <emailbrain>
70
- <use>admin</use>
71
- <args>
72
- <module>Module_Emailbrain</module>
73
- <frontName>emailbrain</frontName>
74
- </args>
75
- </emailbrain>
76
- </routers>
77
- </admin><adminhtml>
78
- <menu>
79
- <emailbrain module="emailbrain">
80
- <title>EmailBrain</title>
81
- <sort_order>100</sort_order>
82
- <children>
83
- <emailbrainbackend module="emailbrain">
84
- <title>EmailBrain Setting</title>
85
- <sort_order>0</sort_order>
86
- <action>emailbrain/adminhtml_emailbrainbackend</action>
87
- </emailbrainbackend>
88
- </children>
89
- </emailbrain>
90
- </menu>
91
- <acl>
92
- <resources>
93
- <all>
94
- <title>Allow Everything</title>
95
- </all>
96
- <admin>
97
- <children>
98
- <emailbrain translate="title" module="emailbrain">
99
- <title>EmailBrain</title>
100
- <sort_order>1000</sort_order>
101
- <children>
102
- <emailbrainbackend translate="title">
103
- <title>EmailBrain Setting</title>
104
- </emailbrainbackend>
105
- </children>
106
- </emailbrain>
107
- </children>
108
- </admin>
109
-
110
- </resources>
111
- </acl>
112
-
113
- <layout>
114
- <updates>
115
- <emailbrain>
116
- <file>emailbrain.xml</file>
117
- </emailbrain>
118
- </updates>
119
- </layout>
120
- </adminhtml>
121
-
 
 
 
 
 
 
 
 
 
 
122
  </config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Module_Emailbrain>
5
+ <version>0.1.0</version>
6
+ </Module_Emailbrain>
7
+ </modules>
8
+
9
+ <frontend>
10
+ <routers>
11
+ <customer>
12
+ <args>
13
+ <modules>
14
+ <module_emailbrain before="Mage_Customer">Module_Emailbrain</module_emailbrain>
15
+ </modules>
16
+ </args>
17
+ </customer>
18
+ </routers>
19
+ </frontend>
20
+
21
+ <frontend>
22
+ <routers>
23
+ <newsletter>
24
+ <args>
25
+ <modules>
26
+ <module_emailbrain before="Mage_Newsletter">Module_Emailbrain</module_emailbrain>
27
+ </modules>
28
+ </args>
29
+ </newsletter>
30
+ </routers>
31
+ </frontend>
32
+
33
+ <global>
34
+
35
+
36
+
37
+ <helpers>
38
+ <emailbrain>
39
+ <class>Module_Emailbrain_Helper</class>
40
+ </emailbrain>
41
+ </helpers>
42
+
43
+ <blocks><emailbrain><class>Module_Emailbrain_Block</class></emailbrain></blocks>
44
+ <resources>
45
+ <emailbrain_setup>
46
+ <setup>
47
+ <module>Module_Emailbrain</module>
48
+ </setup>
49
+ <connection>
50
+ <use>core_setup</use>
51
+ </connection>
52
+ </emailbrain_setup>
53
+ <emailbrain_write>
54
+ <connection>
55
+ <use>core_write</use>
56
+ </connection>
57
+ </emailbrain_write>
58
+ <emailbrain_read>
59
+ <connection>
60
+ <use>core_read</use>
61
+ </connection>
62
+ </emailbrain_read>
63
+
64
+ </resources>
65
+
66
+ </global>
67
+ <admin>
68
+ <routers>
69
+ <emailbrain>
70
+ <use>admin</use>
71
+ <args>
72
+ <module>Module_Emailbrain</module>
73
+ <frontName>emailbrain</frontName>
74
+ </args>
75
+ </emailbrain>
76
+ </routers>
77
+ </admin>
78
+ <adminhtml>
79
+ <translate>
80
+ <modules>
81
+ <Module_Emailbrain>
82
+ <files>
83
+ <default>Module_Emailbrain.csv</default>
84
+ </files>
85
+ </Module_Emailbrain>
86
+ </modules>
87
+ </translate>
88
+ <menu>
89
+ <emailbrain module="emailbrain">
90
+ <title>EmailBrain</title>
91
+ <sort_order>100</sort_order>
92
+ <children>
93
+ <emailbrainbackend module="emailbrain">
94
+ <title>EmailBrain Setting</title>
95
+ <sort_order>0</sort_order>
96
+ <action>emailbrain/adminhtml_emailbrainbackend</action>
97
+ </emailbrainbackend>
98
+ </children>
99
+ </emailbrain>
100
+ </menu>
101
+ <acl>
102
+ <resources>
103
+ <all>
104
+ <title>Allow Everything</title>
105
+ </all>
106
+ <admin>
107
+ <children>
108
+ <emailbrain translate="title" module="emailbrain">
109
+ <title>EmailBrain</title>
110
+ <sort_order>1000</sort_order>
111
+ <children>
112
+ <emailbrainbackend translate="title">
113
+ <title>EmailBrain Setting</title>
114
+ </emailbrainbackend>
115
+ </children>
116
+ </emailbrain>
117
+ </children>
118
+ </admin>
119
+
120
+ </resources>
121
+ </acl>
122
+
123
+ <layout>
124
+ <updates>
125
+ <emailbrain>
126
+ <file>emailbrain.xml</file>
127
+ </emailbrain>
128
+ </updates>
129
+ </layout>
130
+ </adminhtml>
131
+
132
  </config>
app/design/adminhtml/default/default/locale/es_ES/translate.csv ADDED
@@ -0,0 +1,2 @@
 
 
1
+ EmailBrain,EmailBrain
2
+ EmailBrain Setting,Emailbrain Configuraci&#243;n
app/design/adminhtml/default/default/template/emailbrain/emailbrainbackend.phtml CHANGED
@@ -46,7 +46,7 @@ text-decoration:none;
46
  <div id="messages"><ul class="messages">
47
  <?php if($_SESSION['mailinglist'])
48
  {
49
- echo '<li class="success-msg">Account Information has been saved.</li></ul></li>';
50
  }
51
  else if(isset($_SESSION['message'])){ ?>
52
  <?php echo $_SESSION['message']?>
@@ -65,8 +65,8 @@ text-decoration:none;
65
  <h3 class="icon-head head-system-account">EmailBrain</h3>
66
  <?php $_key=explode('/',$_SERVER['REQUEST_URI']);$c=count($_key);$_key=$_key[$c-2];?>
67
  <p class="form-buttons">
68
- <a href="<?php echo $this->getUrl('*/*/reset')?>"><button style="" class="scalable " type="button" id="id_<?php echo $_key?>"><span>Reset</span></button></a>
69
- <button style="" onclick="editForm.submit();" class="scalable save" type="button" id="id_<?php echo $_key?>"><span>Save Account</span></button>
70
 
71
 
72
 
@@ -77,7 +77,7 @@ text-decoration:none;
77
  <div class="entry-edit">
78
 
79
  <form id="edit_form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"><div><input type="hidden" name="form_key" value="<? echo $this->getFormKey(); ?>" /></div><div class="entry-edit-head">
80
- <h4 class="icon-head head-edit-form fieldset-legend">Account Information</h4>
81
  <div class="form-buttons"></div>
82
  </div>
83
  <div id="base_fieldset" class="fieldset ">
@@ -85,23 +85,23 @@ text-decoration:none;
85
  <table cellspacing="0" class="form-list">
86
  <tbody>
87
  <tr>
88
- <td class="label"><label for="userame">EmailBrain Domain <span class="required">*</span></label></td>
89
  <td class="value">
90
  <input <?php echo $readonly?> type="text" class=" input-text required-entry" title="Enter EmailBrain Domain" value="<?php echo isset($_SESSION['EmailAccount'])?$_SESSION['EmailAccount'][0][domain]:''?>" name="domain" id="domain"> </td>
91
  </tr>
92
  <tr>
93
- <td class="label"><label for="userame">EmailBrain Username <span class="required">*</span></label></td>
94
  <td class="value">
95
  <input <?php echo $readonly?> type="text" class=" input-text required-entry" title="User Name" value="<?php echo isset($_SESSION['EmailAccount'])?$_SESSION['EmailAccount'][0][username]:''?>" name="username" id="api_user"> </td>
96
  </tr>
97
  <tr>
98
- <td class="label"><label for="firstname">EmailBrain Password <span class="required">*</span></label></td>
99
  <td class="value">
100
  <input <?php echo $readonly?> type="password" class=" input-text required-entry" title="Password" value="<?php echo isset($_SESSION['EmailAccount'])?$_SESSION['EmailAccount'][0][password]:''?>" name="password" id="firstname"> </td>
101
  </tr>
102
  <?php if($_SESSION['mailinglist']):?>
103
  <tr>
104
- <td class="label"><label for="firstname">EmailBrain Malling List</label></td>
105
  <td class="value">
106
  <?php echo $_SESSION['mailinglist']?>
107
  </td>
46
  <div id="messages"><ul class="messages">
47
  <?php if($_SESSION['mailinglist'])
48
  {
49
+ echo '<li class="success-msg">'.$this->__('Account Information has been saved.').'</li></ul></li>';
50
  }
51
  else if(isset($_SESSION['message'])){ ?>
52
  <?php echo $_SESSION['message']?>
65
  <h3 class="icon-head head-system-account">EmailBrain</h3>
66
  <?php $_key=explode('/',$_SERVER['REQUEST_URI']);$c=count($_key);$_key=$_key[$c-2];?>
67
  <p class="form-buttons">
68
+ <a href="<?php echo $this->getUrl('*/*/reset')?>"><button style="" class="scalable " type="button" id="id_<?php echo $_key?>"><span><?php echo $this->__('Reset');?></span></button></a>
69
+ <button style="" onclick="editForm.submit();" class="scalable save" type="button" id="id_<?php echo $_key?>"><span><?php echo $this->__('Save Account');?></span></button>
70
 
71
 
72
 
77
  <div class="entry-edit">
78
 
79
  <form id="edit_form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"><div><input type="hidden" name="form_key" value="<? echo $this->getFormKey(); ?>" /></div><div class="entry-edit-head">
80
+ <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Account Information');?></h4>
81
  <div class="form-buttons"></div>
82
  </div>
83
  <div id="base_fieldset" class="fieldset ">
85
  <table cellspacing="0" class="form-list">
86
  <tbody>
87
  <tr>
88
+ <td class="label"><label for="userame"><?php echo $this->__('EmailBrain Domain');?><span class="required">*</span></label></td>
89
  <td class="value">
90
  <input <?php echo $readonly?> type="text" class=" input-text required-entry" title="Enter EmailBrain Domain" value="<?php echo isset($_SESSION['EmailAccount'])?$_SESSION['EmailAccount'][0][domain]:''?>" name="domain" id="domain"> </td>
91
  </tr>
92
  <tr>
93
+ <td class="label"><label for="userame"><?php echo $this->__('EmailBrain Username');?> <span class="required">*</span></label></td>
94
  <td class="value">
95
  <input <?php echo $readonly?> type="text" class=" input-text required-entry" title="User Name" value="<?php echo isset($_SESSION['EmailAccount'])?$_SESSION['EmailAccount'][0][username]:''?>" name="username" id="api_user"> </td>
96
  </tr>
97
  <tr>
98
+ <td class="label"><label for="firstname"><?php echo $this->__('EmailBrain Password');?><span class="required">*</span></label></td>
99
  <td class="value">
100
  <input <?php echo $readonly?> type="password" class=" input-text required-entry" title="Password" value="<?php echo isset($_SESSION['EmailAccount'])?$_SESSION['EmailAccount'][0][password]:''?>" name="password" id="firstname"> </td>
101
  </tr>
102
  <?php if($_SESSION['mailinglist']):?>
103
  <tr>
104
+ <td class="label"><label for="firstname"><?php echo $this->__('EmailBrain Malling List');?></label></td>
105
  <td class="value">
106
  <?php echo $_SESSION['mailinglist']?>
107
  </td>
app/locale/es_ES/Module_Emailbrain.csv ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ EmailBrain Password,EmailBrain contrase&#241;a
2
+ EmailBrain Username,EmailBrain Usuario
3
+ EmailBrain Domain,EmailBrain dominio
4
+ EmailBrain Malling List,EmailBrain Lista Malling
5
+ Account Information has been saved.,Informaci&#243;n de la cuenta se ha guardado.
6
+ Save Account,Guardar cuenta
7
+ Reset,Reajustar
8
+ Account Information,Informaci&#243;n de la cuenta
9
+ Authentication failed.Check username and password.,Autenticaci&#243;n de nombre de usuario y contrase&#241;a failed.Check.
package.xml CHANGED
@@ -1,18 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>EmailBrainApi</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Grow your mailing list through Magento transactions! Every time someone registers to buy from your online shop or service via Magento, ask them to opt in to your EmailBrain newsletter. This way, you can send them targeted newsletters, i.e. notify them of new specials, good deals, or new products.</summary>
10
- <description>This is a free extension.Grow your mailing list through Magento transactions! Every time someone registers to buy from your online shop or service via Magento, ask them to opt in to your EmailBrain newsletter. This way, you can send them targeted newsletters, i.e. notify them of new specials, good deals, or new products.</description>
 
11
  <notes>Release notes for users and developers</notes>
12
  <authors><author><name>a1professionals</name><user>a1professionals</user><email>teamlead@a1professionals.com</email></author></authors>
13
- <date>2013-02-20</date>
14
- <time>08:39:29</time>
15
- <contents><target name="magelocal"><dir name="Module"><dir name="Emailbrain"><dir name="Block"><dir name="Adminhtml"><file name="Emailbrainbackend.php" hash="ffbd0936597991bf2e0e349f7213a804"/></dir></dir><dir name="Helper"><file name="Data.php" hash="b01ef9472d6cc239ea0aeff6c936bf27"/></dir><dir name="controllers"><file name="AccountController.php" hash="ffe948bc6cb51ae9b8d229b041d7f4d5"/><file name="AddressController.php" hash="b3275919743311574eaea04f788491a1"/><dir name="Adminhtml"><file name="EmailbrainbackendController.php" hash="465792de21c85cde99a12843157acdf8"/></dir><file name="ManageController.php" hash="197b03fb8cf23218dcd094e5acef8d58"/></dir><dir name="etc"><file name="config.xml" hash="ae0942944719211da024808f54f067fd"/></dir><dir name="sql"><dir name="emailbrain_setup"><file name="mysql4-install-0.1.0.php" hash="b9b8c5b29941f4994b971f771d811f61"/></dir></dir></dir></dir></target><target name="magecore"><dir name="Mage"><dir name="Customer"><dir name="Model"><file name="Emailbrain.php" hash="b7ab51270c11a12ca3676d939c24d13e"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="emailbrain.xml" hash="b85ceb1b6d610e337972bea5c2743ace"/></dir><dir name="template"><dir name="emailbrain"><file name="emailbrainbackend.phtml" hash="c2419d9729a6edd3583d79434fad1f9f"/><file name="emailbrainimport.phtml" hash="de45c1f7201b452ee705c6480ef07ed0"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Module_Emailbrain.xml" hash="27ebf6d5b1a7e4d5b3dd34a052117957"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>EmailBrainApi</name>
4
+ <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Grow your mailing list through Magento transactions! Every time someone registers to buy from your online shop or service via Magento, ask them to opt in to your EmailBrain newsletter. This way, you can send them targeted newsletters, i.e. notify them of new specials, good deals, or new products.</summary>
10
+ <description>This is a free extension.Grow your mailing list through Magento transactions! Every time someone registers to buy from your online shop or service via Magento, ask them to opt in to your EmailBrain newsletter. This way, you can send them targeted newsletters, i.e. notify them of new specials, good deals, or new products.it support spanish as well english language.&lt;/description&gt;&#xD;
11
+ &lt;notes&gt;Release notes for users and developers</description>
12
  <notes>Release notes for users and developers</notes>
13
  <authors><author><name>a1professionals</name><user>a1professionals</user><email>teamlead@a1professionals.com</email></author></authors>
14
+ <date>2013-04-23</date>
15
+ <time>11:53:09</time>
16
+ <contents><target name="magelocal"><dir name="Module"><dir name="Emailbrain"><dir name="Block"><dir name="Adminhtml"><file name="Emailbrainbackend.php" hash="ffbd0936597991bf2e0e349f7213a804"/></dir></dir><dir name="Helper"><file name="Data.php" hash="b01ef9472d6cc239ea0aeff6c936bf27"/></dir><dir name="controllers"><file name="AccountController.php" hash="ffe948bc6cb51ae9b8d229b041d7f4d5"/><file name="AddressController.php" hash="b3275919743311574eaea04f788491a1"/><dir name="Adminhtml"><file name="EmailbrainbackendController.php" hash="b0fea3931a7c73eaf3f9f5f5a6feec39"/></dir><file name="ManageController.php" hash="197b03fb8cf23218dcd094e5acef8d58"/></dir><dir name="etc"><file name="config.xml" hash="4de2f527dfe28fa1c0cc8b368c70b521"/></dir><dir name="sql"><dir name="emailbrain_setup"><file name="mysql4-install-0.1.0.php" hash="b9b8c5b29941f4994b971f771d811f61"/></dir></dir></dir></dir></target><target name="magecore"><dir name="Mage"><dir name="Customer"><dir name="Model"><file name="Emailbrain.php" hash="b7ab51270c11a12ca3676d939c24d13e"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="emailbrain.xml" hash="b85ceb1b6d610e337972bea5c2743ace"/></dir><dir name="template"><dir name="emailbrain"><file name="emailbrainbackend.phtml" hash="51b26122d0f603830baf5cfefebed008"/><file name="emailbrainimport.phtml" hash="de45c1f7201b452ee705c6480ef07ed0"/></dir></dir><dir name="locale"><dir name="es_ES"><file name="translate.csv" hash="72c94d2a2cb17fb3b3765b47a3821a6b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Module_Emailbrain.xml" hash="27ebf6d5b1a7e4d5b3dd34a052117957"/></dir></target><target name="mage"><dir name="app"><dir name="locale"><dir name="es_ES"><file name="Module_Emailbrain.csv" hash="e211352c8015799d888c25da9686fe64"/></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>