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_Page_Grid extends Mage_Adminhtml_Block_Widget_Grid { public function __construct() { parent::__construct();
$this->setId("facebook_page_grid");
$this->setSaveParametersInSession(true);
$this->setUseAjax(true);
$this->setDefaultSort("name");
$this->setDefaultDir("ASC");
} protected function _prepareCollection() { $FbArK = Mage::getResourceSingleton("magext_automation/facebook_page_collection");
$this->setCollection($FbArK);
return parent::_prepareCollection();
} protected function _prepareColumns() { $this->addColumn("page_id", array("index" => "page_id", "header" => Mage::helper("magext_automation")->__("Page Id"), "type" => "text", "sortable" => true, "width" => "100px"));
$this->addColumn("name", array("index" => "name", "header" => Mage::helper("magext_automation")->__("Page Name"), "sortable" => true));
$this->addColumn("category", array("index" => "category", "header" => Mage::helper("magext_automation")->__("Page Category"), "sortable" => true));
$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" => "150px", "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")), "filter" => false, "sortable" => false, "index" => "stores"));
$this->addColumn("view", array("header" => Mage::helper("magext_automation")->__("View"), "width" => "150px", "type" => "action", "getter" => "getId", "actions" => array(array("caption" => Mage::helper("magext_automation")->__("View Page"), "url" => array("base" => "*/*/view", "params" => array("store" => $this->getRequest()->getParam("store"))), "target" => "_blank", "field" => "id")), "filter" => false, "sortable" => false, "index" => "stores"));
return parent::_prepareColumns();
} protected function _prepareMassaction() { $this->setMassactionIdField("page_id");
$this->getMassactionBlock()->setFormFieldName("pages");
$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_Page_Grid extends Mage_Adminhtml_Block_Widget_Grid { public function __construct() { parent::__construct();
$this->setId("\146\141\x63\x65\142\x6f\157\153\x5f\160\x61\147\145\137\147\x72\151\144");
$this->setSaveParametersInSession(true);
$this->setUseAjax(true);
$this->setDefaultSort("\156\x61\x6d\145");
$this->setDefaultDir("\x41\123\103");
} protected function _prepareCollection() { $FbArK = Mage::getResourceSingleton("\155\141\147\145\x78\164\137\141\165\x74\x6f\155\x61\x74\151\x6f\156\x2f\146\141\x63\x65\x62\x6f\157\153\137\x70\x61\147\145\137\x63\157\154\x6c\x65\x63\x74\151\157\156");
$this->setCollection($FbArK);
return parent::_prepareCollection();
} protected function _prepareColumns() { $this->addColumn("\x70\141\147\x65\x5f\x69\x64", array("\x69\x6e\x64\x65\x78" => "\160\141\x67\x65\137\x69\144", "\x68\x65\x61\x64\x65\x72" => Mage::helper("\155\x61\147\x65\x78\x74\137\x61\x75\x74\157\155\141\164\151\x6f\x6e")->__("\x50\x61\147\145\40\111\x64"), "\164\x79\160\145" => "\164\x65\170\x74", "\163\157\162\164\141\x62\x6c\x65" => true, "\167\151\x64\x74\x68" => "\61\x30\x30\x70\x78"));
$this->addColumn("\156\141\155\145", array("\151\x6e\144\145\170" => "\x6e\x61\x6d\x65", "\x68\145\x61\144\x65\x72" => Mage::helper("\x6d\x61\x67\x65\170\x74\137\141\x75\164\x6f\155\x61\x74\151\157\156")->__("\120\x61\x67\x65\40\x4e\x61\155\145"), "\x73\157\162\x74\x61\142\x6c\145" => true));
$this->addColumn("\x63\141\x74\x65\147\x6f\x72\171", array("\151\x6e\144\x65\x78" => "\143\x61\x74\145\147\x6f\162\x79", "\x68\145\141\x64\145\x72" => Mage::helper("\x6d\141\x67\145\170\164\x5f\141\165\164\x6f\x6d\141\164\151\x6f\156")->__("\x50\141\x67\145\x20\103\x61\x74\x65\x67\157\162\x79"), "\x73\157\x72\x74\141\x62\x6c\x65" => true));
$this->addColumn("\145\156\141\x62\x6c\x65\137\x70\157\x73\164\151\156\147", array("\151\x6e\144\x65\x78" => "\145\x6e\141\142\154\145\137\160\157\163\x74\x69\156\x67", "\x68\x65\x61\x64\145\162" => Mage::helper("\x6d\141\147\x65\x78\164\137\141\165\164\x6f\155\141\164\151\x6f\156")->__("\x45\x6e\141\x62\x6c\x65\x20\120\x6f\x73\x74\151\x6e\x67"), "\163\x6f\x72\164\x61\142\x6c\145" => false, "\x74\x79\x70\x65" => "\x6f\x70\x74\x69\157\156\x73", "\157\160\x74\x69\157\x6e\x73" => Mage::getModel("\x6d\x61\147\x65\170\164\137\141\165\164\157\x6d\x61\164\151\x6f\x6e\57\141\x64\x6d\151\156\150\x74\x6d\x6c\x5f\x73\157\165\162\143\145\x5f\x66\x61\143\x65\x62\x6f\157\153\x5f\147\x72\x6f\x75\160\x5f\x65\x6e\x61\142\x6c\x65")->getOptionArray()));
$this->addColumn("\x61\x63\164\151\x6f\156", array("\150\145\141\x64\145\x72" => Mage::helper("\x6d\141\147\x65\170\x74\137\141\165\164\x6f\x6d\x61\164\x69\x6f\x6e")->__("\x41\x63\x74\151\157\156"), "\167\151\144\x74\150" => "\x31\65\60\x70\x78", "\x74\x79\160\145" => "\x61\x63\164\151\157\156", "\x67\x65\164\164\145\162" => "\147\x65\164\111\144", "\x61\143\x74\x69\x6f\x6e\x73" => array(array("\143\141\160\x74\151\157\156" => Mage::helper("\155\x61\x67\145\x78\164\x5f\141\x75\x74\x6f\155\x61\164\x69\157\x6e")->__("\x53\x77\151\x74\x63\x68\40\x45\x6e\x61\x62\154\145\40\120\157\x73\164\x69\x6e\x67"), "\x75\162\154" => array("\142\141\x73\145" => "\52\57\x2a\x2f\x63\150\x61\156\147\145\x45\x6e\141\142\x6c\145\120\x6f\x73\x74\151\156\x67", "\x70\141\x72\141\155\x73" => array("\x73\164\x6f\x72\x65" => $this->getRequest()->getParam("\163\x74\x6f\162\x65"))), "\x66\x69\x65\154\144" => "\x69\144")), "\x66\x69\154\x74\145\x72" => false, "\163\157\162\x74\x61\x62\154\x65" => false, "\151\156\144\145\170" => "\x73\x74\157\x72\145\163"));
$this->addColumn("\166\x69\145\167", array("\150\145\141\x64\145\x72" => Mage::helper("\155\x61\x67\145\x78\164\137\141\x75\x74\157\155\x61\x74\151\157\x6e")->__("\x56\x69\145\167"), "\x77\x69\x64\x74\150" => "\61\65\x30\x70\170", "\164\171\x70\x65" => "\141\143\164\x69\157\x6e", "\x67\145\164\x74\x65\162" => "\x67\145\164\x49\144", "\141\143\x74\151\157\x6e\x73" => array(array("\143\x61\x70\x74\x69\157\156" => Mage::helper("\x6d\141\147\x65\170\x74\x5f\141\x75\164\x6f\x6d\x61\x74\x69\x6f\x6e")->__("\x56\151\x65\x77\x20\x50\141\x67\x65"), "\165\162\154" => array("\142\141\163\x65" => "\x2a\x2f\x2a\57\166\151\x65\167", "\160\x61\x72\141\x6d\163" => array("\x73\164\157\x72\x65" => $this->getRequest()->getParam("\163\164\x6f\x72\145"))), "\164\141\162\147\145\164" => "\x5f\142\154\x61\156\x6b", "\146\x69\x65\154\x64" => "\x69\144")), "\x66\x69\x6c\x74\145\162" => false, "\x73\x6f\162\x74\x61\142\154\x65" => false, "\151\x6e\144\145\x78" => "\163\164\x6f\162\145\x73"));
return parent::_prepareColumns();
} protected function _prepareMassaction() { $this->setMassactionIdField("\160\141\x67\x65\137\x69\144");
$this->getMassactionBlock()->setFormFieldName("\160\x61\147\x65\x73");
$this->getMassactionBlock()->addItem("\143\x68\x61\x6e\147\145\x45\x6e\141\x62\x6c\145\120\157\163\x74\151\156\147", array("\154\x61\x62\145\154" => Mage::helper("\x6d\x61\147\145\170\x74\x5f\141\165\x74\x6f\155\141\x74\x69\157\156")->__("\123\x77\151\x74\143\x68\x20\105\156\141\x62\x6c\x65\40\x50\x6f\x73\164\151\x6e\147"), "\165\162\x6c" => $this->getUrl("\x2a\57\x2a\x2f\155\x61\163\x73\x43\150\x61\x6e\x67\x65\105\156\141\x62\x6c\x65\120\x6f\163\x74\x69\156\x67")));
return $this;
} public function getGridUrl() { return $this->getUrl("\x2a\x2f\x2a\x2f\x67\162\151\144", array("\137\x63\165\162\162\145\x6e\164" => true));
} }
Function Calls
| None |
Stats
| MD5 | 0afedbfc1de063c44eaa29ea13cb046f |
| Eval Count | 0 |
| Decode Time | 131 ms |