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 if (!defined("\137\x50\x53\137\126\x45\122\x53\111\117\116\137")) { die; } class p..

Decoded Output download

<?php 
 if (!defined("_PS_VERSION_")) { die; } class ps8ModPriceWithoutVatFunctionClass { protected $module = false; public $cname; public $context; public function __construct(Module $module = null) { $this->module = $module; $this->cname = "function.class"; } public function checkDisabledModule() { if (!$this->module->active) { return "<div class="alert alert-info">" . $this->module->l("Attention: this module is disabled (disabled), so it will not work.") . "</div>"; } else { return; } } public function checkModuleHooks($idShop) { $hooks = array("displayProductPriceBlock", "displayHeader"); $moduleInstance = Module::getInstanceByName($this->module->name); $alert = ''; foreach ($hooks as $hook) { $id_hook = (int) Hook::getIdByName($hook, false); if ($id_hook > 0 && !Hook::isModuleRegisteredOnHook($moduleInstance, $hook, $idShop)) { $alert .= "<div class="alert alert-info">" . $this->module->l("Missing hook") . ": " . $hook . "</div>"; } } } public function moduleGetContent() { if ($this->module->forms->displayForms()) { $this->module->active = 1; return $this->getModuleSettingsContent() . $this->module->_html; } else { $this->module->active = 0; return $this->module->forms->postProcess() . $this->module->forms->getConfigForm() . $this->module->_html; } } public function getModuleSettingsContent() { return "<div class="panel">" . "<div class="panel-heading">" . $this->module->l("Module settings") . "</div>" . "<div>" . $this->module->credits . "<br />" . $this->module->description . "</div>" . "</div>"; } public function hookDisplayHeader() { if ($this->module->active != 1) { return; } $this->context->controller->registerStylesheet("modules-" . $this->module->name, "modules/" . $this->module->name . "/" . $this->module->name . ".css", array("media" => "all", "priority" => 50)); } } ?>

Did this file decode correctly?

Original Code

<?php
 if (!defined("\137\x50\x53\137\126\x45\122\x53\111\117\116\137")) { die; } class ps8ModPriceWithoutVatFunctionClass { protected $module = false; public $cname; public $context; public function __construct(Module $module = null) { $this->module = $module; $this->cname = "\x66\x75\156\143\x74\151\x6f\156\56\x63\154\141\x73\x73"; } public function checkDisabledModule() { if (!$this->module->active) { return "\x3c\x64\151\166\x20\x63\154\141\163\x73\x3d\42\141\154\145\x72\164\x20\141\154\145\162\x74\55\x69\156\x66\x6f\42\x3e" . $this->module->l("\x41\164\164\145\156\x74\151\157\x6e\x3a\40\x74\150\151\163\x20\155\157\x64\165\x6c\x65\x20\x69\x73\40\x64\151\163\141\x62\154\145\x64\40\x28\x64\151\163\x61\142\x6c\x65\144\51\54\40\163\x6f\x20\x69\164\x20\x77\x69\154\x6c\x20\156\x6f\164\x20\x77\157\x72\x6b\x2e") . "\74\x2f\x64\x69\x76\x3e"; } else { return; } } public function checkModuleHooks($idShop) { $hooks = array("\144\151\163\160\154\x61\171\x50\162\x6f\144\x75\143\x74\120\x72\x69\143\x65\102\154\157\143\153", "\x64\151\x73\x70\x6c\141\x79\110\145\x61\x64\145\x72"); $moduleInstance = Module::getInstanceByName($this->module->name); $alert = ''; foreach ($hooks as $hook) { $id_hook = (int) Hook::getIdByName($hook, false); if ($id_hook > 0 && !Hook::isModuleRegisteredOnHook($moduleInstance, $hook, $idShop)) { $alert .= "\x3c\x64\x69\x76\40\143\154\x61\x73\x73\75\x22\x61\x6c\x65\162\x74\40\x61\154\145\162\164\x2d\151\156\x66\157\42\x3e" . $this->module->l("\115\x69\x73\163\x69\x6e\x67\40\x68\x6f\157\153") . "\x3a\x20" . $hook . "\x3c\x2f\144\151\x76\x3e"; } } } public function moduleGetContent() { if ($this->module->forms->displayForms()) { $this->module->active = 1; return $this->getModuleSettingsContent() . $this->module->_html; } else { $this->module->active = 0; return $this->module->forms->postProcess() . $this->module->forms->getConfigForm() . $this->module->_html; } } public function getModuleSettingsContent() { return "\74\144\x69\x76\40\x63\x6c\x61\x73\163\75\x22\x70\x61\156\x65\x6c\42\76" . "\74\144\x69\x76\x20\x63\x6c\x61\163\163\75\42\x70\141\x6e\145\x6c\55\150\x65\x61\x64\151\x6e\x67\42\x3e" . $this->module->l("\115\157\x64\165\x6c\x65\40\163\x65\x74\x74\x69\x6e\147\163") . "\74\57\x64\x69\166\x3e" . "\74\x64\x69\x76\x3e" . $this->module->credits . "\x3c\x62\162\x20\x2f\76" . $this->module->description . "\74\x2f\144\x69\166\76" . "\x3c\x2f\x64\x69\x76\x3e"; } public function hookDisplayHeader() { if ($this->module->active != 1) { return; } $this->context->controller->registerStylesheet("\155\157\144\x75\x6c\x65\163\55" . $this->module->name, "\x6d\157\144\165\x6c\x65\x73\x2f" . $this->module->name . "\x2f" . $this->module->name . "\56\143\163\x73", array("\x6d\x65\x64\151\141" => "\x61\x6c\x6c", "\160\x72\151\x6f\x72\151\164\x79" => 50)); } }

Function Calls

defined 1

Variables

None

Stats

MD5 2efa47bb559561ff27302ff93dd8395a
Eval Count 0
Decode Time 70 ms