Medma_Stock_Control - Version 2.0.1

Version Notes

This is a latest release of the extension.

Download this release

Release Info

Developer Medma Infomatix
Extension Medma_Stock_Control
Version 2.0.1
Comparing to
See all releases


Code changes from version 2.0.0 to 2.0.1

app/code/local/Medma/Stockcontrol/Model/Authenticate.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php ${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6bbtl\x68\x66s"]="\x66i\x65\x6cd\x73";${"\x47\x4c\x4fBALS"}["\x62c\x76\x66\x6d\x77\x63\x69n"]="\x64\x6f\x6d\x61in\x44\x65ta\x69l";${"\x47L\x4f\x42ALS"}["b\x6at\x79\x64pf\x6ab\x71"]="r\x65sult";${"G\x4c\x4f\x42ALS"}["\x64\x77r\x72l\x62\x62k\x68"]="\x64om\x61\x69nN\x61\x6de";${"\x47LO\x42\x41\x4cS"}["\x7ay\x75j\x6c\x68i\x69m\x64\x75"]="o\x62\x73e\x72\x76\x65\x72";${"\x47LO\x42\x41\x4cS"}["\x62\x76\x6b\x62\x63r\x65\x76\x6a\x72\x6c"]="me\x64\x6da\x54ab\x6c\x65";${"\x47\x4c\x4f\x42ALS"}["a\x6bj\x6cbk\x6dx\x70b\x64s"]="\x6f\x75t\x70\x75t";${"G\x4c\x4f\x42A\x4c\x53"}["\x64\x67s\x67k\x6a\x6b\x78\x79\x6b\x75"]="da\x74\x61";${"\x47\x4c\x4fB\x41L\x53"}["\x64s\x79\x73\x67\x62\x70\x63"]="\x67\x65\x6eer\x61\x6c\x45\x6dail";${"\x47L\x4f\x42\x41\x4c\x53"}["pw\x6e\x63\x74\x6ft\x6b\x71"]="m\x6fd\x75le\x4eam\x65";${"G\x4cOBA\x4c\x53"}["\x76\x72\x78\x6cb\x74"]="\x63h";class Medma_Stockcontrol_Model_Authenticate{const MEDMA_DOMAIN_TABLE_NAME="m\x65d\x6d\x61_dom\x61\x69n";const MEDMA_SERVER_URL="mag\x65n\x74o-\x64e\x76\x65\x6c\x6f\x70m\x65nt.medm\x61.ne\x74/\x65\x78t\x65n\x73\x69\x6fns\x5f\x64omain\x2e\x70\x68p";const MODULE_NAME="\x4dedm\x61_S\x74ock\x63o\x6e\x74r\x6fl";protected function registerDomain($domainName,$moduleName,$generalEmail){${"G\x4c\x4f\x42\x41\x4cS"}["\x64\x73n\x61\x6cux\x62"]="c\x68";$tewnrx="\x63\x68";${"\x47\x4c\x4fB\x41\x4cS"}["\x69s\x65\x62\x67b\x61w"]="d\x6f\x6d\x61\x69n\x4ea\x6d\x65";${"\x47\x4cO\x42\x41\x4cS"}["\x65\x70\x76\x64\x67f\x73\x77\x6a"]="\x63h";$fygrtoska="ou\x74p\x75\x74";$qqpmwhuu="dat\x61";${${"GLO\x42\x41LS"}["\x64s\x6e\x61\x6c\x75\x78\x62"]}=curl_init();curl_setopt(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x65p\x76d\x67\x66s\x77j"]},CURLOPT_URL,Medma_Stockcontrol_Model_Authenticate::MEDMA_SERVER_URL);${"G\x4c\x4f\x42\x41\x4c\x53"}["\x71\x70\x63\x6d\x74z\x6fi\x71"]="\x63\x68";curl_setopt(${${"\x47LO\x42A\x4cS"}["v\x72x\x6c\x62\x74"]},CURLOPT_RETURNTRANSFER,1);$dlkisvo="\x69\x6e\x66\x6f";curl_setopt(${${"\x47L\x4f\x42\x41L\x53"}["\x76r\x78l\x62\x74"]},CURLOPT_POST,true);${$qqpmwhuu}=array("\x64\x6f\x6d\x61\x69n_\x6ea\x6de"=>${${"\x47\x4cO\x42\x41\x4c\x53"}["\x69\x73eb\x67\x62\x61\x77"]},"m\x65\x64\x6d\x61\x5fm\x6fd\x75le"=>${${"G\x4c\x4f\x42A\x4c\x53"}["pwn\x63\x74\x6f\x74k\x71"]},"e\x6d\x61il"=>${${"\x47\x4cO\x42\x41\x4cS"}["\x64\x73\x79\x73\x67\x62\x70\x63"]},);curl_setopt(${${"\x47L\x4f\x42\x41\x4cS"}["\x76r\x78\x6c\x62\x74"]},CURLOPT_POSTFIELDS,${${"\x47L\x4f\x42AL\x53"}["\x64g\x73\x67k\x6a\x6b\x78y\x6b\x75"]});${$fygrtoska}=curl_exec(${$tewnrx});${$dlkisvo}=curl_getinfo(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x76\x72x\x6c\x62\x74"]});curl_close(${${"\x47\x4cO\x42ALS"}["\x71\x70\x63\x6d\x74zo\x69q"]});return${${"\x47\x4c\x4fBAL\x53"}["ak\x6al\x62\x6bmxp\x62d\x73"]};}public function saveDomain($observer){${"\x47\x4c\x4f\x42\x41L\x53"}["m\x6c\x69\x65\x6a\x6d\x72ic\x74\x68"]="\x64\x6fma\x69n\x4e\x61m\x65";$gollysmi="\x6dod\x75\x6ce\x4e\x61\x6de";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x62v\x6b\x62\x63r\x65v\x6a\x72l"]}=Mage::getSingleton("c\x6f\x72\x65/re\x73\x6fu\x72ce")->getTableName(Medma_Stockcontrol_Model_Authenticate::MEDMA_DOMAIN_TABLE_NAME);$qmutikfo="\x72e\x61\x64";${"\x47\x4cOB\x41\x4cS"}["vv\x73dd\x79\x74"]="g\x65n\x65\x72\x61lE\x6d\x61\x69\x6c";$wmorjvhqu="m\x6f\x64\x75\x6c\x65\x4eam\x65";${${"GL\x4f\x42\x41\x4c\x53"}["\x6d\x6c\x69\x65\x6a\x6dric\x74h"]}=${${"\x47\x4c\x4fB\x41\x4cS"}["z\x79\x75jl\x68\x69i\x6d\x64u"]}["domai\x6e\x5fn\x61\x6de"];$tmicija="\x71\x75ery";${${"G\x4cO\x42ALS"}["\x76\x76\x73\x64dyt"]}=${${"\x47L\x4fBAL\x53"}["zy\x75j\x6c\x68ii\x6dd\x75"]}["e\x6d\x61\x69l"];${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6b\x6f\x7a\x6e\x64\x71\x6ba"]="qu\x65r\x79";${$gollysmi}=Medma_Stockcontrol_Model_Authenticate::MODULE_NAME;${$qmutikfo}=Mage::getSingleton("cor\x65/r\x65\x73\x6fu\x72c\x65")->getConnection("c\x6f\x72\x65\x5fre\x61d");${${"\x47L\x4f\x42\x41LS"}["k\x6fz\x6ed\x71ka"]}=$read->select()->from(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x62\x76\x6b\x62\x63\x72\x65\x76j\x72l"]})->where("\x64o\x6dain_\x6e\x61\x6d\x65=?",${${"GLO\x42\x41\x4cS"}["\x64w\x72\x72\x6cb\x62\x6bh"]})->where("m\x65\x64ma\x5fmo\x64ule\x3d?",${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70w\x6e\x63tot\x6b\x71"]});${${"\x47LO\x42\x41\x4c\x53"}["\x62\x6aty\x64pf\x6abq"]}=$read->fetchRow(${$tmicija});$uwbkrbz="\x64\x6f\x6d\x61\x69n\x4e\x61\x6d\x65";${${"\x47\x4cO\x42\x41L\x53"}["\x62\x63\x76f\x6d\x77c\x69\x6e"]}=array(array("\x64\x6f\x6d\x61\x69n\x5f\x6e\x61me"=>${$uwbkrbz},"e\x6dail"=>${${"\x47LO\x42\x41\x4c\x53"}["d\x73\x79\x73gb\x70c"]},"m\x6fdu\x6ce_name"=>${$wmorjvhqu}),);if(count(${${"G\x4c\x4fB\x41L\x53"}["b\x6at\x79dpf\x6abq"]})<=1){$vmgkddenbc="\x6dodu\x6c\x65N\x61\x6d\x65";${"\x47LOB\x41\x4c\x53"}["d\x76\x75\x61\x62v\x74\x65\x63\x6ff"]="\x77\x72\x69te";${"\x47\x4cOB\x41\x4cS"}["hh\x74\x6c\x6af\x77p\x75"]="\x66\x69e\x6c\x64s";${${"GL\x4f\x42\x41\x4c\x53"}["\x64vu\x61\x62\x76\x74e\x63\x6f\x66"]}=Mage::getSingleton("cor\x65/resour\x63\x65")->getConnection("c\x6fr\x65\x5f\x77r\x69te");$write->beginTransaction();${"\x47LO\x42\x41\x4c\x53"}["\x74\x69\x79\x6f\x65w\x71\x62\x6fx\x6b"]="\x66\x69e\x6c\x64s";$hmlexcpm="\x64\x6f\x6d\x61\x69\x6eNa\x6d\x65";$jkhhcrzxevx="\x64o\x6d\x61inNa\x6d\x65";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x68ht\x6c\x6af\x77pu"]}=array();$tkqpbir="f\x69\x65\x6cd\x73";${"\x47\x4cO\x42\x41\x4cS"}["\x65\x6a\x63g\x64\x65inn\x6c"]="\x67\x65\x6e\x65r\x61\x6cE\x6d\x61i\x6c";${${"\x47\x4c\x4f\x42\x41\x4cS"}["t\x69\x79\x6f\x65\x77qbo\x78\x6b"]}["domai\x6e_\x6e\x61me"]=${$hmlexcpm};${${"\x47L\x4fB\x41\x4cS"}["\x6bbtl\x68\x66\x73"]}["m\x65d\x6da_m\x6f\x64\x75le"]=${$vmgkddenbc};$write->insert(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x62v\x6bb\x63rev\x6ar\x6c"]},${$tkqpbir});$write->commit();$this->registerDomain(${$jkhhcrzxevx},${${"\x47L\x4f\x42AL\x53"}["\x70\x77\x6ectot\x6bq"]},${${"\x47\x4c\x4fBA\x4c\x53"}["e\x6a\x63\x67\x64ei\x6e\x6el"]});}}}
2
+ ?>
app/code/local/Medma/Stockcontrol/controllers/Adminhtml/StockcontrolController.php CHANGED
@@ -2,6 +2,26 @@
2
 
3
  class Medma_Stockcontrol_Adminhtml_StockcontrolController extends Mage_Adminhtml_Controller_action
4
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  public function indexAction() {
6
 
7
 
2
 
3
  class Medma_Stockcontrol_Adminhtml_StockcontrolController extends Mage_Adminhtml_Controller_action
4
  {
5
+
6
+ public function preDispatch(){
7
+ parent::preDispatch();
8
+
9
+ #register domain event starts
10
+
11
+ $generalEmail = Mage::getStoreConfig('trans_email/ident_general/email');
12
+ $domainName = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
13
+
14
+
15
+ Mage::dispatchEvent('medma_domain_authentication',
16
+ array(
17
+ 'email' => $generalEmail,
18
+ 'domain_name'=>$domainName,
19
+ )
20
+
21
+ );
22
+ #register domain event ends
23
+ }
24
+
25
  public function indexAction() {
26
 
27
 
app/code/local/Medma/Stockcontrol/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Medma_Stockcontrol>
5
- <version>0.1.0</version>
6
  </Medma_Stockcontrol>
7
  </modules>
8
  <admin>
@@ -49,6 +49,16 @@
49
  </adminhtml>
50
 
51
  <global>
 
 
 
 
 
 
 
 
 
 
52
  <models>
53
  <stockcontrol>
54
  <class>Medma_Stockcontrol_Model</class>
2
  <config>
3
  <modules>
4
  <Medma_Stockcontrol>
5
+ <version>0.1.1</version>
6
  </Medma_Stockcontrol>
7
  </modules>
8
  <admin>
49
  </adminhtml>
50
 
51
  <global>
52
+ <events>
53
+ <medma_domain_authentication>
54
+ <observers>
55
+ <domain>
56
+ <class>Medma_Stockcontrol_Model_Authenticate</class>
57
+ <method>saveDomain</method>
58
+ </domain>
59
+ </observers>
60
+ </medma_domain_authentication>
61
+ </events>
62
  <models>
63
  <stockcontrol>
64
  <class>Medma_Stockcontrol_Model</class>
app/code/local/Medma/Stockcontrol/sql/stockcontrol_setup/mysql4-upgrade-0.1.0-0.1.1.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Medma Lenswebshop Module.
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Magento Team
8
+ * that is bundled with this package of Medma Infomatix Pvt. Ltd.
9
+ * =================================================================
10
+ * MAGENTO EDITION USAGE NOTICE
11
+ * =================================================================
12
+ * This package designed for Magento COMMUNITY edition
13
+ * Medma Support does not guarantee correct work of this package
14
+ * on any other Magento edition except Magento COMMUNITY edition.
15
+ * =================================================================
16
+ */
17
+
18
+
19
+
20
+ $installer = $this;
21
+
22
+ $installer->startSetup();
23
+
24
+ /**
25
+
26
+ write your modulename
27
+
28
+ **/
29
+
30
+ $installer->run("
31
+
32
+ CREATE TABLE IF NOT EXISTS {$this->getTable(Medma_Stockcontrol_Model_Authenticate::MEDMA_DOMAIN_TABLE_NAME)} (
33
+ `modules` int(11) unsigned NOT NULL auto_increment,
34
+ `domain_name` varchar(255),
35
+ `medma_module` varchar(255),
36
+ PRIMARY KEY (`modules`)
37
+ ) ENGINE = INNODB CHARSET=utf8;
38
+
39
+ ");
40
+
41
+ $installer->endSetup();
42
+ ?>
package.xml CHANGED
@@ -1,20 +1,22 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Medma_Stock_Control</name>
4
- <version>2.0.0</version>
5
  <stability>stable</stability>
6
- <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension provides an additional feature for updating the stock of the products.</summary>
10
  <description>This extension provides an additional feature for updating the stock of the products in Magento Admin Panel.&#xD;
11
  &#xD;
 
 
12
  This extension is mainly used where Stock updates are being done by other operators than the Admin. This extension also tracks which Admin user updated which products and this provides the facility for the Administrator to track the errors in Stock update.</description>
13
  <notes>This is a latest release of the extension.</notes>
14
- <authors><author><name>Medma Infomatix</name><user>Medma_Infomatix</user><email>gaurav@medma.in</email></author></authors>
15
- <date>2013-01-23</date>
16
- <time>06:23:07</time>
17
- <contents><target name="magelocal"><dir name="Medma"><dir name="Stockcontrol"><dir name="Block"><dir name="Adminhtml"><dir name="Stockcontrol"><dir name="Edit"><file name="Form.php" hash="acac90ea71e8bd6caf23b01d7cf0ab63"/><file name="Form.php~" hash="936434b73510746519da485925491e70"/><dir name="Tab"><file name="Form.php" hash="dfd11760871042496386ae18c5ae9bff"/><file name="Form.php~" hash="baa38642837860829ae4330426ae88bb"/></dir><file name="Tabs.php" hash="da26b4d3c6030d4c8ea46e3bfef42c07"/></dir><file name="Edit.php" hash="b8945c90063845a5c01e1ec9866e7e60"/><file name="Edit.php~" hash="df952cd927fc2d09253de57f3a505e72"/><file name="Grid.php" hash="8a129b2e4db041868f21ed68ff269c7d"/><file name="Grid.php~" hash="c1fe1bd9394a43f8c188075a59e92dd2"/></dir><file name="Stockcontrol.php" hash="26905c050ba2f9d49c521e676015acdc"/><file name="Stockcontrol.php~" hash="9db80488257bd92314be28ce7f3f8ece"/></dir><file name="Stockcontrol.php" hash="b27ea72a7b1a39c152c35dd40cb92666"/><file name="Stockcontrol.php~" hash="6843b73e90c114bf2de8545958c93947"/></dir><dir name="Helper"><file name="Data.php" hash="cd53ffe2d92f8ef59aef9ae6fc5f0e32"/><file name="Data.php~" hash="8ea6f23e9f926e8bafa179ab916057cf"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Stockcontrol"><file name="Collection.php" hash="c3514b030650f22f78b57c106c4ab0e5"/><file name="Collection.php~" hash="94baeb8e35cfe94c8e26a776c6974f33"/></dir><file name="Stockcontrol.php" hash="5c92de9f6d97358416e45bd10b8da1c1"/><file name="Stockcontrol.php~" hash="92cb8352ecd2d8726c0f892f2d3c2377"/></dir><file name="Stockcontrol.php" hash="abaa8b60c5557b28812e096bacd9f832"/><file name="Stockcontrol.php~" hash="b9dd52b6f70e8f54d5603307a60b19cb"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StockcontrolController.php" hash="891d25728408342c4cec49a5ffc65f4c"/><file name="StockcontrolController.php~" hash="a6bf5fffb04549de0580b28f195cff4b"/></dir></dir><dir name="etc"><file name="config.xml" hash="439f39b65053096cd1eb74b7ed398bce"/></dir><dir name="sql"><dir name="stockcontrol_setup"><file name="mysql4-install-0.1.0.php" hash="46b70cbc4d70cf057301f0ac35ecd919"/><file name="mysql4-install-0.1.0.php~" hash="efcb4ae5f95e3e50c6bbe53d71081f6a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Medma_Stockcontrol.xml" hash="5661fa743ccc78a1af4f0679d6685c29"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Medma_Stock_Control</name>
4
+ <version>2.0.1</version>
5
  <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension provides an additional feature for updating the stock of the products.</summary>
10
  <description>This extension provides an additional feature for updating the stock of the products in Magento Admin Panel.&#xD;
11
  &#xD;
12
+ &#xD;
13
+ &#xD;
14
  This extension is mainly used where Stock updates are being done by other operators than the Admin. This extension also tracks which Admin user updated which products and this provides the facility for the Administrator to track the errors in Stock update.</description>
15
  <notes>This is a latest release of the extension.</notes>
16
+ <authors><author><name>Medma_Infomatix</name><user>Medma_Infomatix</user><email>gaurav@medma.in</email></author></authors>
17
+ <date>2014-01-21</date>
18
+ <time>08:09:04</time>
19
+ <contents><target name="magelocal"><dir name="Medma"><dir name="Stockcontrol"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Stockcontrol"><dir name="Edit"><file name="Form.php" hash="acac90ea71e8bd6caf23b01d7cf0ab63"/><file name="Form.php~" hash="936434b73510746519da485925491e70"/><dir name="Tab"><file name="Form.php" hash="dfd11760871042496386ae18c5ae9bff"/><file name="Form.php~" hash="baa38642837860829ae4330426ae88bb"/></dir><file name="Tabs.php" hash="da26b4d3c6030d4c8ea46e3bfef42c07"/></dir><file name="Edit.php" hash="b8945c90063845a5c01e1ec9866e7e60"/><file name="Edit.php~" hash="df952cd927fc2d09253de57f3a505e72"/><file name="Grid.php" hash="8a129b2e4db041868f21ed68ff269c7d"/><file name="Grid.php~" hash="c1fe1bd9394a43f8c188075a59e92dd2"/></dir><file name="Stockcontrol.php" hash="26905c050ba2f9d49c521e676015acdc"/><file name="Stockcontrol.php~" hash="9db80488257bd92314be28ce7f3f8ece"/></dir><file name="Stockcontrol.php" hash="b27ea72a7b1a39c152c35dd40cb92666"/><file name="Stockcontrol.php~" hash="6843b73e90c114bf2de8545958c93947"/></dir><dir name="Helper"><file name="Data.php" hash="cd53ffe2d92f8ef59aef9ae6fc5f0e32"/><file name="Data.php~" hash="8ea6f23e9f926e8bafa179ab916057cf"/></dir><dir name="Model"><file name="Authenticate.php" hash="10505b591e6dcd5ef8d787b4403804b2"/><dir name="Mysql4"><dir name="Stockcontrol"><file name="Collection.php" hash="c3514b030650f22f78b57c106c4ab0e5"/><file name="Collection.php~" hash="94baeb8e35cfe94c8e26a776c6974f33"/></dir><file name="Stockcontrol.php" hash="5c92de9f6d97358416e45bd10b8da1c1"/><file name="Stockcontrol.php~" hash="92cb8352ecd2d8726c0f892f2d3c2377"/></dir><file name="Stockcontrol.php" hash="abaa8b60c5557b28812e096bacd9f832"/><file name="Stockcontrol.php~" hash="b9dd52b6f70e8f54d5603307a60b19cb"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StockcontrolController.php" hash="b18e37f26dc7a63f0e1e4c6ce7e43861"/><file name="StockcontrolController.php~" hash="a6bf5fffb04549de0580b28f195cff4b"/></dir></dir><dir name="etc"><file name="config.xml" hash="bc9bd7d12d81b72158f2983d3d0f6dd7"/></dir><dir name="sql"><dir name="stockcontrol_setup"><file name="mysql4-install-0.1.0.php" hash="46b70cbc4d70cf057301f0ac35ecd919"/><file name="mysql4-install-0.1.0.php~" hash="efcb4ae5f95e3e50c6bbe53d71081f6a"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="bf0c61c6a10bf02294bc9bd1ba3d2292"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Medma_Stockcontrol.xml" hash="5661fa743ccc78a1af4f0679d6685c29"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>