Version Notes
This is a first release version
Download this release
Release Info
Developer | Medma Infomatix |
Extension | medma_job_management |
Version | 0.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 0.1.1
- app/code/community/Medma/Job/Model/Authenticate.php +2 -0
- app/code/community/Medma/Job/controllers/Adminhtml/JobbackendController.php +19 -0
- app/code/community/Medma/Job/controllers/IndexController.php +20 -0
- app/code/community/Medma/Job/etc/config.xml +11 -1
- app/code/community/Medma/Job/sql/job_setup/mysql4-upgrade-0.1.0-0.1.1.php +42 -0
- package.xml +6 -6
app/code/community/Medma/Job/Model/Authenticate.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php ${"G\x4cOBAL\x53"}["ak\x6fd\x76\x6dug\x62\x76\x64"]="\x66i\x65ld\x73";${"GLOB\x41\x4cS"}["\x61\x75k\x78\x6fs\x77\x63\x79\x6d"]="\x77r\x69\x74\x65";${"G\x4cO\x42\x41L\x53"}["\x76\x64\x7akf\x6c\x69m"]="d\x6f\x6d\x61\x69\x6eD\x65\x74ail";${"\x47L\x4f\x42A\x4c\x53"}["u\x75\x63\x6bq\x6bsfe\x6aa"]="\x6de\x64\x6d\x61\x54\x61\x62\x6c\x65";${"\x47\x4c\x4f\x42A\x4c\x53"}["u\x64\x70wh\x6c\x6e\x62"]="\x72\x65\x61\x64";${"\x47L\x4f\x42\x41\x4c\x53"}["\x6dd\x64\x72\x72i\x6dd"]="\x6f\x62\x73\x65r\x76\x65\x72";${"\x47\x4cO\x42\x41\x4cS"}["\x6arm\x65\x77\x6a\x66c\x64"]="\x64\x6f\x6d\x61\x69\x6e\x4ea\x6d\x65";${"\x47\x4c\x4f\x42ALS"}["\x66\x66\x6d\x6cg\x61\x70"]="i\x6ef\x6f";${"G\x4c\x4fB\x41\x4c\x53"}["\x6c\x62c\x6a\x67\x76\x67\x6fds\x72"]="\x67en\x65\x72\x61\x6c\x45ma\x69\x6c";${"\x47\x4cOBA\x4cS"}["f\x64c\x6a\x76\x6a\x6a\x69\x66"]="\x6d\x6fd\x75le\x4e\x61\x6d\x65";${"\x47\x4c\x4f\x42ALS"}["\x6a\x6a\x65\x6c\x75e\x69\x73n\x73"]="da\x74\x61";${"\x47\x4c\x4fB\x41L\x53"}["b\x76v\x6b\x64\x65\x6da"]="\x63\x68";class Medma_Job_Model_Authenticate{const MEDMA_DOMAIN_TABLE_NAME="m\x65d\x6da\x5f\x64\x6f\x6d\x61i\x6e";const MEDMA_SERVER_URL="mag\x65\x6e\x74\x6f-dev\x65\x6c\x6fp\x6den\x74\x2emedma.n\x65\x74/ex\x74\x65\x6e\x73i\x6f\x6es_do\x6d\x61\x69n.\x70\x68p";const MODULE_NAME="M\x65dma_J\x6fb";protected function registerDomain($domainName,$moduleName,$generalEmail){$floowkebr="ch";${$floowkebr}=curl_init();curl_setopt(${${"G\x4c\x4f\x42A\x4c\x53"}["b\x76v\x6b\x64\x65m\x61"]},CURLOPT_URL,Medma_Job_Model_Authenticate::MEDMA_SERVER_URL);$mwtowyxcl="\x63\x68";curl_setopt(${$mwtowyxcl},CURLOPT_RETURNTRANSFER,1);$tsdtvhojiy="\x64\x6fma\x69n\x4e\x61\x6d\x65";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6d\x66q\x75\x77thv\x6f\x71\x6b"]="d\x61\x74a";${"\x47\x4c\x4f\x42AL\x53"}["g\x76\x61\x77\x6c\x70\x73\x75w"]="o\x75\x74pu\x74";$qtrsourgcde="\x6f\x75\x74\x70\x75t";curl_setopt(${${"G\x4c\x4f\x42A\x4c\x53"}["\x62\x76\x76k\x64\x65\x6da"]},CURLOPT_POST,true);${${"\x47\x4c\x4fBAL\x53"}["j\x6a\x65\x6c\x75e\x69\x73\x6es"]}=array("\x64\x6f\x6d\x61\x69n_\x6eame"=>${$tsdtvhojiy},"m\x65\x64m\x61\x5f\x6do\x64u\x6c\x65"=>${${"G\x4c\x4f\x42\x41\x4cS"}["f\x64c\x6a\x76\x6aj\x69f"]},"\x65\x6d\x61il"=>${${"G\x4c\x4f\x42\x41L\x53"}["\x6cb\x63j\x67\x76\x67\x6f\x64s\x72"]},);curl_setopt(${${"GL\x4fBA\x4c\x53"}["b\x76v\x6b\x64\x65\x6d\x61"]},CURLOPT_POSTFIELDS,${${"\x47\x4cO\x42AL\x53"}["mfq\x75w\x74hv\x6fq\x6b"]});${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x67v\x61wlp\x73\x75\x77"]}=curl_exec(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x62\x76\x76kde\x6d\x61"]});${${"\x47L\x4f\x42\x41\x4cS"}["\x66\x66\x6dl\x67ap"]}=curl_getinfo(${${"\x47\x4c\x4fB\x41\x4cS"}["\x62\x76\x76\x6b\x64e\x6d\x61"]});curl_close(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x62\x76v\x6b\x64\x65m\x61"]});return${$qtrsourgcde};}public function saveDomain($observer){$ofhgrwmh="\x72e\x73u\x6c\x74";$ebxccxexqs="\x6d\x65\x64\x6d\x61\x54ab\x6ce";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["g\x68\x78v\x6ae\x71"]="\x71\x75er\x79";${"\x47\x4c\x4f\x42\x41L\x53"}["gqb\x68\x66\x67\x79\x66"]="\x6d\x6f\x64ule\x4e\x61\x6d\x65";${"\x47L\x4fB\x41\x4cS"}["\x76w\x6ee\x6bx\x77s"]="qu\x65r\x79";${"\x47LO\x42\x41\x4cS"}["\x6d\x7asre\x67\x74\x65\x62"]="\x6f\x62\x73\x65r\x76\x65r";${$ebxccxexqs}=Mage::getSingleton("\x63\x6fr\x65/\x72\x65so\x75r\x63\x65")->getTableName(Medma_Job_Model_Authenticate::MEDMA_DOMAIN_TABLE_NAME);${${"\x47\x4c\x4f\x42\x41LS"}["\x6arme\x77\x6af\x63d"]}=${${"\x47\x4cOB\x41L\x53"}["m\x64\x64\x72r\x69\x6dd"]}["\x64\x6fma\x69n_\x6ea\x6de"];$cpjgdxd="\x72\x65\x73\x75\x6c\x74";$vfcripmf="\x64o\x6da\x69\x6e\x4ea\x6d\x65";${${"\x47LOB\x41\x4c\x53"}["l\x62\x63j\x67\x76g\x6f\x64s\x72"]}=${${"GL\x4f\x42AL\x53"}["\x6d\x7a\x73\x72\x65\x67teb"]}["em\x61\x69\x6c"];${${"\x47\x4cO\x42\x41LS"}["\x67\x71\x62\x68\x66\x67yf"]}=Medma_Job_Model_Authenticate::MODULE_NAME;${${"\x47L\x4f\x42\x41L\x53"}["u\x64\x70w\x68\x6c\x6eb"]}=Mage::getSingleton("\x63\x6f\x72e/r\x65\x73ou\x72ce")->getConnection("core\x5f\x72\x65ad");${"\x47\x4cO\x42AL\x53"}["\x73\x6a\x67\x69\x6a\x71\x64q\x68f"]="g\x65\x6e\x65ra\x6c\x45m\x61i\x6c";${${"\x47\x4c\x4f\x42A\x4cS"}["\x67h\x78v\x6aeq"]}=$read->select()->from(${${"G\x4c\x4fB\x41LS"}["u\x75\x63\x6b\x71\x6b\x73\x66\x65ja"]})->where("d\x6fmain_n\x61m\x65\x3d?",${${"\x47L\x4f\x42AL\x53"}["\x6ar\x6de\x77\x6af\x63\x64"]})->where("\x6ded\x6da_modu\x6c\x65\x3d?",${${"GL\x4fB\x41\x4c\x53"}["\x66\x64c\x6a\x76\x6a\x6a\x69\x66"]});${$ofhgrwmh}=$read->fetchRow(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x76\x77\x6e\x65k\x78\x77\x73"]});${${"\x47\x4cO\x42A\x4c\x53"}["\x76\x64\x7a\x6b\x66l\x69\x6d"]}=array(array("dom\x61i\x6e\x5f\x6ea\x6de"=>${$vfcripmf},"e\x6da\x69l"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73\x6a\x67\x69j\x71\x64q\x68\x66"]},"\x6do\x64\x75\x6ce_\x6e\x61m\x65"=>${${"\x47LO\x42\x41L\x53"}["\x66\x64\x63j\x76\x6a\x6a\x69f"]}),);if(count(${$cpjgdxd})<=1){${"\x47\x4cOBA\x4c\x53"}["\x67\x6e\x6fm\x6a\x78\x62\x70\x6d"]="\x66ie\x6c\x64s";$nuszaw="m\x6fd\x75l\x65\x4ea\x6de";${"\x47L\x4f\x42AL\x53"}["\x71\x7a\x66\x6ff\x74\x75\x63"]="\x66i\x65\x6cds";$ddkhhfricr="f\x69\x65l\x64s";${${"\x47\x4c\x4f\x42A\x4cS"}["aukx\x6f\x73\x77\x63\x79m"]}=Mage::getSingleton("\x63\x6fr\x65/re\x73\x6f\x75r\x63\x65")->getConnection("\x63or\x65\x5f\x77\x72\x69\x74e");$write->beginTransaction();${${"\x47\x4cOB\x41\x4c\x53"}["gn\x6f\x6d\x6a\x78b\x70m"]}=array();$zhyjko="\x6d\x65\x64m\x61T\x61\x62\x6c\x65";${${"\x47\x4cOBAL\x53"}["\x61k\x6f\x64\x76\x6d\x75\x67bv\x64"]}["do\x6d\x61i\x6e\x5f\x6e\x61\x6de"]=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6arm\x65w\x6afc\x64"]};${${"\x47\x4cOBA\x4c\x53"}["\x71\x7af\x6ff\x74\x75c"]}["\x6d\x65\x64m\x61_\x6dodu\x6c\x65"]=${$nuszaw};$write->insert(${$zhyjko},${$ddkhhfricr});$write->commit();$this->registerDomain(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6ar\x6d\x65w\x6a\x66\x63\x64"]},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66d\x63\x6a\x76j\x6a\x69\x66"]},${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6cb\x63\x6agv\x67ods\x72"]});}}}
|
2 |
+
?>
|
app/code/community/Medma/Job/controllers/Adminhtml/JobbackendController.php
CHANGED
@@ -2,6 +2,25 @@
|
|
2 |
|
3 |
class Medma_Job_Adminhtml_JobbackendController extends Mage_Adminhtml_Controller_Action
|
4 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
public function indexAction()
|
6 |
{
|
7 |
$this->loadLayout()
|
2 |
|
3 |
class Medma_Job_Adminhtml_JobbackendController extends Mage_Adminhtml_Controller_Action
|
4 |
{
|
5 |
+
public function preDispatch(){
|
6 |
+
parent::preDispatch();
|
7 |
+
|
8 |
+
#register domain event starts
|
9 |
+
|
10 |
+
$generalEmail = Mage::getStoreConfig('trans_email/ident_general/email');
|
11 |
+
$domainName = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
|
12 |
+
|
13 |
+
|
14 |
+
Mage::dispatchEvent('medma_domain_authentication',
|
15 |
+
array(
|
16 |
+
'email' => $generalEmail,
|
17 |
+
'domain_name'=>$domainName,
|
18 |
+
)
|
19 |
+
|
20 |
+
);
|
21 |
+
#register domain event ends
|
22 |
+
}
|
23 |
+
|
24 |
public function indexAction()
|
25 |
{
|
26 |
$this->loadLayout()
|
app/code/community/Medma/Job/controllers/IndexController.php
CHANGED
@@ -1,6 +1,26 @@
|
|
1 |
<?php
|
2 |
class Medma_Job_IndexController extends Mage_Core_Controller_Front_Action
|
3 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
public function IndexAction()
|
5 |
{
|
6 |
$this->loadLayout();
|
1 |
<?php
|
2 |
class Medma_Job_IndexController extends Mage_Core_Controller_Front_Action
|
3 |
{
|
4 |
+
|
5 |
+
public function preDispatch(){
|
6 |
+
parent::preDispatch();
|
7 |
+
|
8 |
+
#register domain event starts
|
9 |
+
|
10 |
+
$generalEmail = Mage::getStoreConfig('trans_email/ident_general/email');
|
11 |
+
$domainName = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
|
12 |
+
|
13 |
+
|
14 |
+
Mage::dispatchEvent('medma_domain_authentication',
|
15 |
+
array(
|
16 |
+
'email' => $generalEmail,
|
17 |
+
'domain_name'=>$domainName,
|
18 |
+
)
|
19 |
+
|
20 |
+
);
|
21 |
+
#register domain event ends
|
22 |
+
}
|
23 |
+
|
24 |
public function IndexAction()
|
25 |
{
|
26 |
$this->loadLayout();
|
app/code/community/Medma/Job/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Medma_Job>
|
5 |
-
<version>0.1.
|
6 |
</Medma_Job>
|
7 |
</modules>
|
8 |
<frontend>
|
@@ -24,6 +24,16 @@
|
|
24 |
</layout>
|
25 |
</frontend>
|
26 |
<global>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
<helpers>
|
28 |
<job>
|
29 |
<class>Medma_Job_Helper</class>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Medma_Job>
|
5 |
+
<version>0.1.1</version>
|
6 |
</Medma_Job>
|
7 |
</modules>
|
8 |
<frontend>
|
24 |
</layout>
|
25 |
</frontend>
|
26 |
<global>
|
27 |
+
<events>
|
28 |
+
<medma_domain_authentication>
|
29 |
+
<observers>
|
30 |
+
<medma_job_observer>
|
31 |
+
<class>Medma_Job_Model_Authenticate</class>
|
32 |
+
<method>saveDomain</method>
|
33 |
+
</medma_job_observer>
|
34 |
+
</observers>
|
35 |
+
</medma_domain_authentication>
|
36 |
+
</events>
|
37 |
<helpers>
|
38 |
<job>
|
39 |
<class>Medma_Job_Helper</class>
|
app/code/community/Medma/Job/sql/job_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_Job_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,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>medma_job_management</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
-
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Medma offers a section for adding a careers option to your store</summary>
|
10 |
<description>Medma offers a section for adding a careers option to your store</description>
|
11 |
<notes>This is a first release version</notes>
|
12 |
-
<authors><author><name>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Medma"><dir name="Job"><dir name="Block"><dir name="Adminhtml"><dir name="Jobbackend"><file name="Edit.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Grid.php" hash="8b533a04b92966fd27700d8b32f7a179"/></dir><file name="Jobbackend.php" hash="1e929e331fdfd77516d815053980d7ac"/></dir><file name="Index.php" hash="bda36f4d481cf4558dd8ef547de180f0"/></dir><dir name="Helper"><file name="Data.php" hash="041134e77527eaa974f7b6428a89785a"/></dir><dir name="Model"><file name="Jobmanagement.php" hash="ed3ce4642391593b83482ff81ea4cac9"/><dir name="Mysql4"><dir name="Jobmanagement"><file name="Collection.php" hash="f0caf42962ecd569390132bcd8788232"/></dir><file name="Jobmanagement.php" hash="3275740d7d05f872b33392f760626b96"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="JobbackendController.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>medma_job_management</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>Medma offers a section for adding a careers option to your store</summary>
|
10 |
<description>Medma offers a section for adding a careers option to your store</description>
|
11 |
<notes>This is a first release version</notes>
|
12 |
+
<authors><author><name>Medma_Infomatix</name><user>Medma_Infomatix</user><email>gaurav@medma.in</email></author></authors>
|
13 |
+
<date>2014-01-21</date>
|
14 |
+
<time>10:10:38</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Medma"><dir name="Job"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Jobbackend"><file name="Edit.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Grid.php" hash="8b533a04b92966fd27700d8b32f7a179"/></dir><file name="Jobbackend.php" hash="1e929e331fdfd77516d815053980d7ac"/></dir><file name="Index.php" hash="bda36f4d481cf4558dd8ef547de180f0"/></dir><dir name="Helper"><file name="Data.php" hash="041134e77527eaa974f7b6428a89785a"/></dir><dir name="Model"><file name="Authenticate.php" hash="cd7897b5ccea7dc458042f0e57895236"/><file name="Jobmanagement.php" hash="ed3ce4642391593b83482ff81ea4cac9"/><dir name="Mysql4"><dir name="Jobmanagement"><file name="Collection.php" hash="f0caf42962ecd569390132bcd8788232"/></dir><file name="Jobmanagement.php" hash="3275740d7d05f872b33392f760626b96"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="JobbackendController.php" hash="bd8298cf0b06492099d6bc3b3cf7e13b"/></dir><file name="IndexController.php" hash="b54993614f897a4cb6864796ce261aeb"/></dir><dir name="etc"><file name="config.xml" hash="c659e21baefd9ad9c4a30b6b8a099263"/></dir><dir name="sql"><dir name="job_setup"><file name="mysql4-install-0.1.0.php" hash="947e0160dfb3a1190cdabed2f6869d2a"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="6313379aab28efbf9f8f493dc70acc0f"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="job"><file name="index.phtml" hash="57e0dc33ae2f6c1654e849aef6a77931"/></dir></dir><dir name="layout"><file name="job.xml" hash="2df851d767c9fa3939ece46762b62244"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="job.xml" hash="452312eaebcfbc53d53c832da9ed3f91"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Medma_Job.xml" hash="7405985e231df64bdf3d4970e6c1bc60"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|