Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* * author - MagExt * version - 1.0.0 * website - http://magext.com */ c..
Decoded Output download
<?php
/*
* author - MagExt
* version - 1.0.0
* website - http://magext.com
*/
class MagExt_Automation_Block_Adminhtml_Facebook_Group_Grid extends Mage_Adminhtml_Block_Widget_Grid { public function __construct() { parent::__construct();
$this->setId("facebook_group_grid");
$this->setDefaultSort("name");
$this->setDefaultDir("ASC");
$this->setSaveParametersInSession(true);
$this->setUseAjax(true);
$this->setVarNameFilter("facebook_group_filter");
} protected function _prepareCollection() { $FbArK = Mage::getResourceSingleton("magext_automation/facebook_group_collection");
$this->setCollection($FbArK);
return parent::_prepareCollection();
} protected function _prepareColumns() { $this->addColumn("group_id", array("index" => "group_id", "header" => Mage::helper("magext_automation")->__("Group Id"), "type" => "text", "sortable" => true, "width" => "100px"));
$this->addColumn("name", array("index" => "name", "header" => Mage::helper("magext_automation")->__("Group Name"), "sortable" => true));
$this->addColumn("description", array("index" => "description", "header" => Mage::helper("magext_automation")->__("Group Description"), "sortable" => false, "width" => "700px"));
$this->addColumn("enable_posting", array("index" => "enable_posting", "header" => Mage::helper("magext_automation")->__("Enable Posting"), "sortable" => false, "type" => "options", "options" => Mage::getModel("magext_automation/adminhtml_source_facebook_group_enable")->getOptionArray()));
$this->addColumn("action", array("header" => Mage::helper("magext_automation")->__("Action"), "width" => "100px", "type" => "action", "getter" => "getId", "actions" => array(array("caption" => Mage::helper("magext_automation")->__("Switch Enable Posting"), "url" => array("base" => "*/*/changeEnablePosting", "params" => array("store" => $this->getRequest()->getParam("store"))), "field" => "id"), array("caption" => Mage::helper("magext_automation")->__("Delete"), "url" => array("base" => "*/*/delete", "params" => array("store" => $this->getRequest()->getParam("store"))), "confirm" => Mage::helper("magext_automation")->__("Are you sure?"), "field" => "id")), "filter" => false, "sortable" => false, "index" => "stores"));
return parent::_prepareColumns();
} protected function _prepareMassaction() { $this->setMassactionIdField("group_id");
$this->getMassactionBlock()->setFormFieldName("groups");
$this->getMassactionBlock()->addItem("delete", array("label" => Mage::helper("magext_automation")->__("Delete"), "url" => $this->getUrl("*/*/massDelete"), "confirm" => Mage::helper("magext_automation")->__("Are you sure?")));
$this->getMassactionBlock()->addItem("changeEnablePosting", array("label" => Mage::helper("magext_automation")->__("Switch Enable Posting"), "url" => $this->getUrl("*/*/massChangeEnablePosting")));
return $this;
} public function getGridUrl() { return $this->getUrl("*/*/grid", array("_current" => true));
} }
?>
Did this file decode correctly?
Original Code
<?php
/*
* author - MagExt
* version - 1.0.0
* website - http://magext.com
*/
class MagExt_Automation_Block_Adminhtml_Facebook_Group_Grid extends Mage_Adminhtml_Block_Widget_Grid { public function __construct() { parent::__construct();
$this->setId("\x66\x61\143\x65\x62\157\157\x6b\x5f\x67\x72\x6f\165\x70\x5f\x67\x72\151\144");
$this->setDefaultSort("\x6e\x61\x6d\x65");
$this->setDefaultDir("\x41\x53\103");
$this->setSaveParametersInSession(true);
$this->setUseAjax(true);
$this->setVarNameFilter("\x66\x61\143\x65\142\x6f\157\153\137\147\x72\157\165\x70\x5f\x66\x69\154\x74\x65\162");
} protected function _prepareCollection() { $FbArK = Mage::getResourceSingleton("\x6d\141\147\145\x78\x74\137\141\x75\164\x6f\155\x61\x74\151\x6f\156\57\146\x61\x63\145\142\157\x6f\x6b\137\x67\162\x6f\165\x70\x5f\143\x6f\154\x6c\x65\143\x74\x69\157\156");
$this->setCollection($FbArK);
return parent::_prepareCollection();
} protected function _prepareColumns() { $this->addColumn("\x67\x72\157\165\x70\x5f\151\x64", array("\151\x6e\144\145\170" => "\x67\162\x6f\165\x70\137\151\x64", "\x68\145\141\144\145\x72" => Mage::helper("\155\141\147\x65\170\164\x5f\x61\165\164\157\155\141\164\151\x6f\156")->__("\107\162\x6f\x75\160\x20\x49\144"), "\164\171\160\145" => "\164\145\170\164", "\163\157\x72\x74\x61\x62\154\x65" => true, "\167\x69\144\x74\150" => "\x31\x30\60\160\170"));
$this->addColumn("\156\141\x6d\145", array("\151\x6e\x64\x65\x78" => "\x6e\141\x6d\x65", "\x68\x65\x61\144\x65\x72" => Mage::helper("\155\x61\147\x65\170\164\137\141\x75\164\157\x6d\141\x74\x69\x6f\156")->__("\107\162\157\x75\160\x20\116\x61\155\x65"), "\x73\x6f\162\x74\x61\x62\154\145" => true));
$this->addColumn("\144\145\163\143\162\151\160\x74\151\157\x6e", array("\x69\x6e\144\x65\x78" => "\144\145\x73\143\162\151\160\164\151\x6f\x6e", "\x68\145\x61\x64\145\x72" => Mage::helper("\x6d\141\x67\145\170\164\x5f\x61\x75\164\x6f\155\x61\164\151\157\x6e")->__("\x47\162\157\165\160\x20\104\x65\x73\143\x72\x69\160\164\151\157\x6e"), "\x73\157\x72\164\x61\x62\x6c\145" => false, "\167\x69\x64\x74\x68" => "\x37\60\x30\x70\x78"));
$this->addColumn("\145\x6e\x61\x62\x6c\x65\137\160\x6f\163\x74\151\x6e\147", array("\x69\x6e\x64\x65\170" => "\x65\156\x61\x62\154\145\x5f\160\x6f\x73\x74\x69\156\x67", "\x68\x65\141\144\x65\162" => Mage::helper("\155\x61\x67\145\x78\x74\x5f\141\165\x74\x6f\x6d\x61\x74\x69\157\x6e")->__("\x45\156\x61\x62\154\145\x20\120\157\163\x74\x69\156\147"), "\x73\x6f\162\x74\x61\x62\154\145" => false, "\164\x79\x70\145" => "\157\x70\x74\151\157\x6e\163", "\x6f\x70\x74\151\x6f\156\x73" => Mage::getModel("\155\x61\x67\145\x78\164\137\141\x75\164\x6f\x6d\141\x74\151\x6f\x6e\x2f\x61\144\x6d\151\x6e\x68\164\155\154\137\x73\157\x75\x72\x63\145\x5f\146\141\143\x65\142\157\157\153\x5f\147\x72\x6f\x75\160\x5f\x65\156\x61\142\x6c\145")->getOptionArray()));
$this->addColumn("\141\x63\x74\x69\x6f\156", array("\150\x65\141\144\x65\x72" => Mage::helper("\155\x61\x67\x65\170\x74\137\x61\x75\164\x6f\155\141\x74\151\157\156")->__("\101\x63\164\151\x6f\156"), "\x77\151\144\164\x68" => "\x31\x30\x30\160\x78", "\x74\x79\160\145" => "\141\143\164\x69\x6f\x6e", "\147\x65\x74\164\145\162" => "\x67\x65\x74\111\144", "\x61\143\164\151\x6f\156\163" => array(array("\x63\x61\x70\164\151\157\x6e" => Mage::helper("\x6d\141\147\x65\x78\x74\137\x61\165\164\x6f\155\141\164\151\157\156")->__("\x53\x77\x69\164\143\x68\40\105\156\x61\x62\154\145\x20\120\157\163\164\151\x6e\x67"), "\165\x72\x6c" => array("\x62\141\x73\x65" => "\x2a\57\52\x2f\x63\150\x61\156\147\x65\x45\x6e\x61\x62\154\x65\x50\157\163\x74\x69\156\x67", "\x70\x61\162\x61\155\163" => array("\163\164\157\162\145" => $this->getRequest()->getParam("\163\164\x6f\x72\x65"))), "\x66\x69\145\154\x64" => "\x69\144"), array("\x63\x61\160\x74\x69\x6f\156" => Mage::helper("\155\141\147\145\x78\164\x5f\141\x75\x74\x6f\x6d\x61\x74\151\x6f\x6e")->__("\104\145\x6c\x65\164\x65"), "\x75\162\154" => array("\x62\141\163\x65" => "\x2a\x2f\x2a\57\144\x65\154\145\x74\x65", "\160\141\x72\141\x6d\163" => array("\x73\164\157\162\x65" => $this->getRequest()->getParam("\163\x74\x6f\x72\145"))), "\143\x6f\156\x66\151\162\x6d" => Mage::helper("\155\141\147\145\170\164\x5f\141\165\x74\157\155\141\x74\x69\157\x6e")->__("\x41\x72\x65\40\x79\x6f\x75\x20\163\165\162\145\x3f"), "\146\x69\145\154\x64" => "\x69\x64")), "\146\151\x6c\x74\x65\162" => false, "\x73\x6f\162\x74\141\142\x6c\145" => false, "\151\156\144\x65\170" => "\x73\164\157\162\x65\163"));
return parent::_prepareColumns();
} protected function _prepareMassaction() { $this->setMassactionIdField("\147\x72\x6f\165\160\137\151\144");
$this->getMassactionBlock()->setFormFieldName("\147\162\157\x75\x70\163");
$this->getMassactionBlock()->addItem("\144\x65\154\x65\x74\x65", array("\154\141\142\x65\x6c" => Mage::helper("\x6d\141\147\x65\170\x74\x5f\x61\x75\x74\157\x6d\x61\164\x69\x6f\156")->__("\x44\x65\154\x65\164\145"), "\x75\x72\154" => $this->getUrl("\x2a\57\x2a\x2f\155\x61\163\x73\x44\145\154\145\164\x65"), "\143\157\156\146\151\162\155" => Mage::helper("\x6d\x61\x67\145\x78\x74\137\141\165\164\157\x6d\x61\x74\151\x6f\156")->__("\101\x72\145\x20\171\x6f\165\x20\163\165\x72\145\x3f")));
$this->getMassactionBlock()->addItem("\143\x68\141\x6e\147\145\105\x6e\141\142\154\145\x50\157\163\164\151\156\x67", array("\x6c\x61\x62\145\154" => Mage::helper("\155\x61\147\x65\x78\x74\137\141\165\164\x6f\155\141\x74\151\x6f\x6e")->__("\x53\167\151\164\x63\150\x20\x45\156\141\x62\x6c\x65\40\x50\157\163\164\151\156\147"), "\165\x72\x6c" => $this->getUrl("\x2a\57\x2a\57\x6d\x61\163\163\x43\x68\x61\x6e\147\x65\x45\156\x61\x62\x6c\145\120\x6f\163\164\151\156\x67")));
return $this;
} public function getGridUrl() { return $this->getUrl("\52\x2f\52\57\x67\x72\151\144", array("\x5f\x63\165\162\x72\x65\x6e\x74" => true));
} }
Function Calls
| None |
Stats
| MD5 | aed1e76f8fe4259493c68b2bf9d7153e |
| Eval Count | 0 |
| Decode Time | 92 ms |