Kaper
Постоялец
- Регистрация
- 11 Фев 2016
- Сообщения
- 33
- Реакции
- 87
- Автор темы
- #1
Hey guys, i have found this module:
Для просмотра ссылки Войдиили Зарегистрируйся
Can anyone help me how to make it work? I encoded the code and this is encoded result:
I tried to move this code
to --> function _productKey and it seems the backend of module is working, but front end is blank or showing error 500pointing -> to encrypted line in php. Can anyone help please or share working module? Appreciate! ♥
Для просмотра ссылки Войди
Can anyone help me how to make it work? I encoded the code and this is encoded result:
PHP:
if (Tools::getValue('productKey')) Configuration::updateValue('MEGAATTRIBUTES_KEY', Tools::getValue('productKey')); $servname = $_SERVER["SERVER_NAME"]; $host = str_ireplace("www.", "", $servname) ; $keys = explode(";", Configuration::get('MEGAATTRIBUTES_KEY')); $iskeyvalid=false; foreach ($keys as $key) if (strtolower(md5(strtolower($this->name.":".$host))) == strtolower($key)) $iskeyvalid=true; if ($iskeyvalid) { $this->_html .= $this->displayForm(); } else { $this->_productKey(); }
I tried to move this code
PHP:
$this->_html .= $this->displayForm();
to --> function _productKey and it seems the backend of module is working, but front end is blank or showing error 500pointing -> to encrypted line in php. Can anyone help please or share working module? Appreciate! ♥