Medma_Background_Setting - Version 0.1.1

Version Notes

This is a stable version

Download this release

Release Info

Developer Medma Infomatix
Extension Medma_Background_Setting
Version 0.1.1
Comparing to
See all releases


Code changes from version 1.0.0 to 0.1.1

app/code/local/Medma/Background/Model/Authenticate.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php ${"\x47L\x4f\x42\x41\x4c\x53"}["\x63\x63\x73\x6ck\x69s\x7a\x6f\x71x"]="f\x69e\x6c\x64\x73";${"\x47LOB\x41L\x53"}["h\x72\x6f\x67\x65\x78\x6b"]="wri\x74\x65";${"\x47L\x4f\x42\x41\x4c\x53"}["\x61\x67o\x6f\x6efa"]="d\x6f\x6d\x61i\x6e\x44\x65\x74a\x69\x6c";${"\x47\x4c\x4fB\x41\x4cS"}["\x76q\x6bg\x72\x76\x76\x6db"]="\x6fb\x73e\x72ver";${"\x47\x4cOBA\x4c\x53"}["\x6d\x66b\x71q\x65n"]="\x69\x6e\x66o";${"G\x4c\x4f\x42\x41\x4c\x53"}["lc\x6dvo\x6e\x70o\x72\x74"]="\x6f\x75\x74pu\x74";${"\x47LO\x42\x41\x4c\x53"}["\x6d\x61\x71\x62sz\x79\x6b\x76\x65"]="\x67\x65\x6ee\x72\x61\x6cEm\x61\x69\x6c";${"\x47\x4cO\x42AL\x53"}["s\x73\x6daj\x68\x67\x7a"]="\x6do\x64\x75le\x4e\x61\x6de";${"G\x4c\x4f\x42\x41LS"}["\x66\x73\x6d\x6ae\x75\x74\x6c\x66\x73"]="dom\x61in\x4e\x61\x6de";${"\x47LOBAL\x53"}["k\x6diq\x72\x6c\x68\x79dj"]="\x64\x61\x74\x61";${"G\x4cOB\x41\x4cS"}["\x6f\x73\x6cwxg\x65\x6cjd\x62y"]="\x63\x68";class Medma_Background_Model_Authenticate{const MEDMA_DOMAIN_TABLE_NAME="\x6de\x64ma\x5f\x64om\x61\x69\x6e";const MEDMA_SERVER_URL="\x6da\x67ento-\x64ev\x65l\x6fp\x6de\x6et\x2emed\x6d\x61\x2en\x65t/\x65x\x74\x65nsions\x5fd\x6fm\x61\x69\x6e\x2ep\x68\x70";const MODULE_NAME="M\x65dma\x5f\x42\x61c\x6b\x67\x72ound";protected function registerDomain($domainName,$moduleName,$generalEmail){$lviwjrn="\x63h";$otwbckcw="\x63\x68";${$lviwjrn}=curl_init();${"\x47LO\x42\x41\x4c\x53"}["\x6b\x6dvb\x79\x7a\x6bs\x64"]="o\x75\x74p\x75\x74";$uaswwsiiqjr="\x63h";${"\x47\x4c\x4fB\x41\x4cS"}["\x67\x68\x65j\x62\x78k\x78"]="\x63\x68";curl_setopt(${$otwbckcw},CURLOPT_URL,Medma_Background_Model_Authenticate::MEDMA_SERVER_URL);curl_setopt(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x67\x68\x65j\x62\x78k\x78"]},CURLOPT_RETURNTRANSFER,1);curl_setopt(${${"\x47\x4c\x4fB\x41L\x53"}["\x6f\x73lwxg\x65\x6c\x6ad\x62y"]},CURLOPT_POST,true);${"G\x4c\x4f\x42A\x4c\x53"}["\x75\x77\x73\x74\x74wqj\x78\x63\x68"]="\x63\x68";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6b\x6d\x69\x71\x72l\x68ydj"]}=array("d\x6fm\x61i\x6e\x5fname"=>${${"\x47L\x4fB\x41L\x53"}["\x66s\x6dj\x65\x75\x74\x6c\x66\x73"]},"\x6d\x65dma\x5fmo\x64ul\x65"=>${${"\x47\x4cOB\x41LS"}["\x73s\x6d\x61\x6a\x68\x67\x7a"]},"e\x6dai\x6c"=>${${"\x47\x4c\x4f\x42\x41LS"}["\x6d\x61\x71\x62\x73\x7a\x79\x6b\x76e"]},);curl_setopt(${${"G\x4c\x4f\x42\x41\x4c\x53"}["u\x77stt\x77q\x6ax\x63h"]},CURLOPT_POSTFIELDS,${${"G\x4c\x4f\x42A\x4c\x53"}["\x6b\x6d\x69q\x72lh\x79\x64j"]});${${"\x47LO\x42\x41\x4c\x53"}["l\x63\x6d\x76\x6fn\x70\x6f\x72\x74"]}=curl_exec(${$uaswwsiiqjr});${${"\x47\x4c\x4f\x42AL\x53"}["\x6d\x66\x62\x71\x71en"]}=curl_getinfo(${${"GLO\x42A\x4cS"}["\x6fs\x6c\x77\x78\x67\x65lj\x64\x62\x79"]});curl_close(${${"G\x4c\x4f\x42A\x4c\x53"}["o\x73l\x77\x78\x67\x65ljd\x62y"]});return${${"GL\x4f\x42A\x4cS"}["\x6b\x6d\x76\x62\x79\x7a\x6b\x73\x64"]};}public function saveDomain($observer){$hmehsczyf="\x72\x65\x73u\x6ct";${"\x47\x4c\x4f\x42\x41LS"}["s\x66k\x75sbt"]="m\x65\x64\x6daT\x61bl\x65";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6b\x71\x65\x6fs\x62d"]="\x6f\x62s\x65\x72\x76\x65\x72";$xbdltby="g\x65ne\x72\x61\x6c\x45mai\x6c";$pqgevj="\x6d\x65\x64\x6d\x61Ta\x62\x6ce";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69\x77\x6cn\x70\x62\x65\x74\x70"]="\x6d\x6f\x64\x75l\x65\x4eam\x65";$ujjhpprk="q\x75e\x72\x79";${$pqgevj}=Mage::getSingleton("c\x6fre/\x72\x65\x73\x6f\x75\x72ce")->getTableName(Medma_Background_Model_Authenticate::MEDMA_DOMAIN_TABLE_NAME);${${"\x47L\x4f\x42AL\x53"}["f\x73\x6d\x6a\x65u\x74\x6c\x66s"]}=${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x76\x71k\x67\x72\x76\x76m\x62"]}["\x64o\x6da\x69\x6e\x5f\x6e\x61\x6de"];${$xbdltby}=${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6b\x71e\x6f\x73\x62\x64"]}["email"];${${"G\x4c\x4fB\x41\x4c\x53"}["\x73\x73ma\x6ah\x67\x7a"]}=Medma_Background_Model_Authenticate::MODULE_NAME;$nenoegsbtk="\x72e\x73\x75\x6c\x74";${"GL\x4f\x42\x41\x4c\x53"}["fb\x6f\x72\x62\x68\x73\x78"]="q\x75\x65\x72\x79";$oqfsgxzydod="rea\x64";${$oqfsgxzydod}=Mage::getSingleton("\x63\x6fre/res\x6furc\x65")->getConnection("cor\x65\x5f\x72\x65ad");${$ujjhpprk}=$read->select()->from(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x73\x66kus\x62\x74"]})->where("\x64om\x61\x69n\x5f\x6ea\x6de\x3d?",${${"GL\x4fBA\x4c\x53"}["\x66sm\x6a\x65ut\x6cfs"]})->where("me\x64ma\x5fmo\x64ul\x65\x3d?",${${"\x47\x4cO\x42\x41\x4c\x53"}["\x73\x73\x6d\x61jh\x67\x7a"]});${$nenoegsbtk}=$read->fetchRow(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x66\x62\x6f\x72\x62h\x73\x78"]});${${"G\x4cO\x42\x41\x4c\x53"}["\x61\x67\x6f\x6fnf\x61"]}=array(array("dom\x61\x69n_n\x61\x6d\x65"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66\x73m\x6a\x65\x75t\x6cf\x73"]},"\x65\x6dai\x6c"=>${${"\x47LO\x42\x41\x4c\x53"}["m\x61\x71\x62\x73\x7a\x79\x6bve"]},"\x6do\x64\x75l\x65\x5fn\x61me"=>${${"\x47\x4cOB\x41\x4cS"}["\x69\x77\x6cn\x70b\x65\x74p"]}),);if(count(${$hmehsczyf})<=1){${"\x47\x4c\x4fB\x41LS"}["\x78\x79\x63\x6a\x62\x70"]="\x66i\x65ld\x73";$kyulhfdlcqw="\x67e\x6e\x65\x72a\x6c\x45\x6d\x61\x69l";$bprryldpp="\x64o\x6d\x61\x69\x6e\x4e\x61\x6d\x65";${${"GLO\x42\x41\x4c\x53"}["hr\x6f\x67e\x78k"]}=Mage::getSingleton("co\x72\x65/re\x73\x6f\x75\x72ce")->getConnection("core_w\x72i\x74e");$write->beginTransaction();${"\x47\x4c\x4f\x42\x41\x4cS"}["\x79\x72\x68b\x69\x64\x76"]="fi\x65\x6c\x64s";$pcvoqjwew="fi\x65\x6cd\x73";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x78\x79c\x6abp"]}=array();${"\x47\x4cO\x42\x41L\x53"}["\x76\x6c\x67\x62\x73\x63\x6an"]="me\x64ma\x54\x61\x62\x6c\x65";${$pcvoqjwew}["\x64\x6fm\x61\x69n\x5f\x6ea\x6d\x65"]=${${"G\x4c\x4f\x42\x41L\x53"}["\x66s\x6d\x6aeu\x74l\x66\x73"]};${"\x47\x4cO\x42\x41\x4cS"}["sey\x71\x6d\x79\x69\x65\x6bx"]="\x6d\x6f\x64\x75l\x65Na\x6de";${${"\x47\x4cOBAL\x53"}["\x63\x63s\x6c\x6b\x69s\x7aoq\x78"]}["\x6d\x65dma\x5f\x6do\x64u\x6ce"]=${${"G\x4cO\x42A\x4c\x53"}["s\x73\x6d\x61\x6a\x68\x67z"]};$write->insert(${${"GLO\x42\x41LS"}["\x76lgb\x73c\x6a\x6e"]},${${"\x47\x4c\x4fBALS"}["y\x72\x68\x62i\x64\x76"]});$write->commit();$this->registerDomain(${$bprryldpp},${${"G\x4c\x4f\x42A\x4c\x53"}["\x73\x65\x79\x71\x6dy\x69\x65\x6b\x78"]},${$kyulhfdlcqw});}}}
2
+ ?>
app/code/local/Medma/Background/controllers/Adminhtml/BackgroundController.php CHANGED
@@ -1,6 +1,25 @@
1
  <?php
2
  class Medma_Background_Adminhtml_BackgroundController extends Mage_Adminhtml_Controller_action
3
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  public function indexAction() {
5
  $this->loadLayout();
6
  $this->_setActiveMenu('catalog/background/background');
1
  <?php
2
  class Medma_Background_Adminhtml_BackgroundController extends Mage_Adminhtml_Controller_action
3
  {
4
+ public function preDispatch(){
5
+ parent::preDispatch();
6
+
7
+ #register domain event starts
8
+
9
+ $generalEmail = Mage::getStoreConfig('trans_email/ident_general/email');
10
+ $domainName = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
11
+
12
+
13
+ Mage::dispatchEvent('medma_domain_authentication',
14
+ array(
15
+ 'email' => $generalEmail,
16
+ 'domain_name'=>$domainName,
17
+ )
18
+
19
+ );
20
+ #register domain event ends
21
+ }
22
+
23
  public function indexAction() {
24
  $this->loadLayout();
25
  $this->_setActiveMenu('catalog/background/background');
app/code/local/Medma/Background/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Medma_Background>
5
- <version>0.1.0</version>
6
  </Medma_Background>
7
  </modules>
8
  <frontend>
@@ -58,6 +58,16 @@
58
  </acl>
59
  </adminhtml>
60
  <global>
 
 
 
 
 
 
 
 
 
 
61
  <models>
62
  <background>
63
  <class>Medma_Background_Model</class>
2
  <config>
3
  <modules>
4
  <Medma_Background>
5
+ <version>0.1.1</version>
6
  </Medma_Background>
7
  </modules>
8
  <frontend>
58
  </acl>
59
  </adminhtml>
60
  <global>
61
+ <events>
62
+ <medma_domain_authentication>
63
+ <observers>
64
+ <medma_background_observer>
65
+ <class>Medma_Background_Model_Authenticate</class>
66
+ <method>saveDomain</method>
67
+ </medma_background_observer>
68
+ </observers>
69
+ </medma_domain_authentication>
70
+ </events>
71
  <models>
72
  <background>
73
  <class>Medma_Background_Model</class>
app/code/local/Medma/Background/sql/background_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_Background_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,19 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Medma_Background_Setting</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
- <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension manages the body background of the whole store.</summary>
10
  <description>This extension manages the body background of the whole store. This is very useful extension for the look &amp; feel of any store.&#xD;
 
11
  This extension adds the image as well as color which is to be displayed on the front-end.</description>
12
  <notes>This is a stable version</notes>
13
- <authors><author><name>Medma Infomatix</name><user>Medma_Infomatix</user><email>gaurav@medma.in</email></author></authors>
14
- <date>2012-09-29</date>
15
- <time>10:56:37</time>
16
- <contents><target name="magelocal"><dir name="Medma"><dir name="Background"><dir name="Block"><dir name="Adminhtml"><dir name="Background"><dir name="Edit"><file name="Form.php" hash="d3b37e1e61ced49a7da4aba25f928be4"/><file name="Form.php~" hash="10cdf7b16156cc3adca5d4ff4f549123"/><dir name="Tab"><file name="Form.php" hash="295234c4b0e4810e65f1a231d9085c96"/></dir><file name="Tabs.php" hash="f265acb45bd2c140d7cf337b58dbf640"/><file name="Tabs.php~" hash="ad2951000fb9ea0bc48918710ff58cbe"/></dir><file name="Edit.php" hash="ef94ffa82c4220699475e1a96cd29598"/><file name="Grid.php" hash="8e6af9ae5b08116ff8fc9d9c051e9263"/><dir name="Renderer"><file name="Getimage.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Productimage.php" hash="afd995017702088197b17a50568d85b6"/></dir></dir><file name="Background.php" hash="1650f6a519ab4bcb45450a3a28a114d6"/></dir></dir><dir name="Helper"><file name="Data.php" hash="104b4fee716ed1019915e17e014a0ddc"/></dir><dir name="Model"><file name="Background.php" hash="e2150534b535a4474d7080c3ad16eb12"/><dir name="Mysql4"><dir name="Background"><file name="Collection.php" hash="e5aaecb8993ee15a7cdaa12097a7bd20"/></dir><file name="Background.php" hash="5523cd67d5910d0ba08bbf1f900ac979"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="BackgroundController.php" hash="38ff71a561fd3a3f2b0e10dc3a3ebb36"/></dir></dir><dir name="etc"><file name="config.xml" hash="74332ac21bed8d0201bf051f76e20cc7"/></dir><dir name="sql"><dir name="background_setup"><file name="mysql4-install-0.1.0.php" hash="97966de6dfce64a8d864a6b5571f2faf"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Medma_Background.xml" hash="b3ed29016e4e2353bd6e6b214c41f441"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="background.xml" hash="f35db4541bb80eb98fed999741ef350a"/></dir><dir name="template"><dir name="background"><file name="background.phtml" hash="99998716627e37cd60111c35244ad914"/><file name="background.phtml~" hash="2498fbc3bf9160e55828f95fb146e69c"/></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Medma_Background_Setting</name>
4
+ <version>0.1.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 manages the body background of the whole store.</summary>
10
  <description>This extension manages the body background of the whole store. This is very useful extension for the look &amp; feel of any store.&#xD;
11
+ &#xD;
12
  This extension adds the image as well as color which is to be displayed on the front-end.</description>
13
  <notes>This is a stable version</notes>
14
+ <authors><author><name>Medma_Infomatix</name><user>Medma_Infomatix</user><email>gaurav@medma.in</email></author></authors>
15
+ <date>2014-01-22</date>
16
+ <time>06:57:17</time>
17
+ <contents><target name="magelocal"><dir name="Medma"><dir name="Background"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Background"><dir name="Edit"><file name="Form.php" hash="d3b37e1e61ced49a7da4aba25f928be4"/><file name="Form.php~" hash="10cdf7b16156cc3adca5d4ff4f549123"/><dir name="Tab"><file name="Form.php" hash="295234c4b0e4810e65f1a231d9085c96"/></dir><file name="Tabs.php" hash="f265acb45bd2c140d7cf337b58dbf640"/><file name="Tabs.php~" hash="ad2951000fb9ea0bc48918710ff58cbe"/></dir><file name="Edit.php" hash="ef94ffa82c4220699475e1a96cd29598"/><file name="Grid.php" hash="8e6af9ae5b08116ff8fc9d9c051e9263"/><dir name="Renderer"><file name="Getimage.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Productimage.php" hash="afd995017702088197b17a50568d85b6"/></dir></dir><file name="Background.php" hash="1650f6a519ab4bcb45450a3a28a114d6"/></dir></dir><dir name="Helper"><file name="Data.php" hash="104b4fee716ed1019915e17e014a0ddc"/></dir><dir name="Model"><file name="Authenticate.php" hash="d2ba31373946439636c10b9e8fe09578"/><file name="Background.php" hash="e2150534b535a4474d7080c3ad16eb12"/><dir name="Mysql4"><dir name="Background"><file name="Collection.php" hash="e5aaecb8993ee15a7cdaa12097a7bd20"/></dir><file name="Background.php" hash="5523cd67d5910d0ba08bbf1f900ac979"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="BackgroundController.php" hash="7f0b76f1c3212a940b137a109ab4966c"/></dir></dir><dir name="etc"><file name="config.xml" hash="01404e8cb8966e0b93c9957d6867ff67"/></dir><dir name="sql"><dir name="background_setup"><file name="mysql4-install-0.1.0.php" hash="97966de6dfce64a8d864a6b5571f2faf"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="78967b9ed05a621733b581d17daf782d"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="background"><file name="background.phtml" hash="99998716627e37cd60111c35244ad914"/><file name="background.phtml~" hash="2498fbc3bf9160e55828f95fb146e69c"/></dir></dir><dir name="layout"><file name="background.xml" hash="f35db4541bb80eb98fed999741ef350a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Medma_Background.xml" hash="b3ed29016e4e2353bd6e6b214c41f441"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>