Version Notes
Validate API keys
Download this release
Release Info
Developer | Sellbrite |
Extension | sellbrite |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
app/design/adminhtml/base/default/template/sellbrite/api/system/config/fieldset/hint.phtml
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
$api_key = Mage::getStoreConfig('sellbrite_api/config/api_key');
|
7 |
$site_url = Mage::helper('core/url')->getHomeUrl();
|
8 |
|
9 |
-
if(
|
10 |
$api_key = md5(uniqid(rand(), true));
|
11 |
|
12 |
$config = new Mage_Core_Model_Config();
|
@@ -90,9 +90,7 @@
|
|
90 |
?>
|
91 |
<div class="box">
|
92 |
<div>
|
93 |
-
<a href="https://sellbrite.com" target="_blank">
|
94 |
-
<img src="http://sellbrite.com/wp-content/uploads/sellbrite-logo-300@2x1.png" height='50' alt="Sellbrite" title="Sellbrite" />
|
95 |
-
</a><br>
|
96 |
|
97 |
<br>
|
98 |
<b>Your API Key:</b> <code><?= $api_key ?></code><br><br>
|
@@ -105,3 +103,4 @@ box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); font-weight: bold; font-size: 14px;
|
|
105 |
</div>
|
106 |
</div>
|
107 |
|
|
6 |
$api_key = Mage::getStoreConfig('sellbrite_api/config/api_key');
|
7 |
$site_url = Mage::helper('core/url')->getHomeUrl();
|
8 |
|
9 |
+
if( !$api_key || strlen($api_key) < 32 ){
|
10 |
$api_key = md5(uniqid(rand(), true));
|
11 |
|
12 |
$config = new Mage_Core_Model_Config();
|
90 |
?>
|
91 |
<div class="box">
|
92 |
<div>
|
93 |
+
<a href="https://www.sellbrite.com" target="_blank"><img src="http://sellbrite.com/wp-content/uploads/sellbrite-logo-300@2x1.png" height='50' alt="Sellbrite" title="Sellbrite" /></a><br>
|
|
|
|
|
94 |
|
95 |
<br>
|
96 |
<b>Your API Key:</b> <code><?= $api_key ?></code><br><br>
|
103 |
</div>
|
104 |
</div>
|
105 |
|
106 |
+
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>sellbrite</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>MIT License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>Multi-channel selling
|
10 |
<description>List your products on more channels, access more customers and maximize your sales, quickly and easily.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Sellbrite</name><user>machineboy2045</user><email>machineboy2045@gmail.com</email></author></authors>
|
13 |
-
<date>2014-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Sellbrite"><dir name="Api"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="eee09d85dc2ddf0dc49a9b3c788eb2cd"/></dir></dir></dir></dir></dir><dir name="Helper"><dir name="Catalog"><file name="Product.php" hash="1e0567fd4fc6da68635c5153749c1659"/></dir><file name="Data.php" hash="10776abef0d3e369c6dec5566de5dfed"/></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><dir name="Api"><file name="V2.php" hash="001e4766191ba2e6bb630fc2ee9d015d"/></dir><file name="Api.php" hash="bb344211ad4623774c10ec85ed5e7458"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="ba6e97e5e14d3b00fd281cf1c07c3958"/><file name="config.xml" hash="5fa352976f061989324bfb6f3b28261c"/><file name="system.xml" hash="5b61898dd5be81781c6b908738eaa6fb"/><file name="wsdl.xml" hash="22bfa736fad32b8ed5013cccb4aabc9d"/><file name="wsi.xml" hash="f06f9b1374aac0f2585d3fc1c916d7ec"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="sellbrite"><dir name="api"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="
|
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>sellbrite</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>MIT License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Simplified Multi-channel selling.</summary>
|
10 |
<description>List your products on more channels, access more customers and maximize your sales, quickly and easily.</description>
|
11 |
+
<notes>Validate API keys</notes>
|
12 |
<authors><author><name>Sellbrite</name><user>machineboy2045</user><email>machineboy2045@gmail.com</email></author></authors>
|
13 |
+
<date>2014-11-06</date>
|
14 |
+
<time>18:29:28</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Sellbrite"><dir name="Api"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="eee09d85dc2ddf0dc49a9b3c788eb2cd"/></dir></dir></dir></dir></dir><dir name="Helper"><dir name="Catalog"><file name="Product.php" hash="1e0567fd4fc6da68635c5153749c1659"/></dir><file name="Data.php" hash="10776abef0d3e369c6dec5566de5dfed"/></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><dir name="Api"><file name="V2.php" hash="001e4766191ba2e6bb630fc2ee9d015d"/></dir><file name="Api.php" hash="bb344211ad4623774c10ec85ed5e7458"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="ba6e97e5e14d3b00fd281cf1c07c3958"/><file name="config.xml" hash="5fa352976f061989324bfb6f3b28261c"/><file name="system.xml" hash="5b61898dd5be81781c6b908738eaa6fb"/><file name="wsdl.xml" hash="22bfa736fad32b8ed5013cccb4aabc9d"/><file name="wsi.xml" hash="f06f9b1374aac0f2585d3fc1c916d7ec"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="sellbrite"><dir name="api"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="80fd4f698fd3c94f1d5865806fcf8a28"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sellbrite_Api.xml" hash="eb836727e6b1e328091e7ccd9003294f"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|