public function initContent() { if (Tools::isSubmit('action') && Tools::getValue('action') == 'viewLog') { //loads the log content $log_content = CertissimLogger::getLogContent(); $log_txt = htmlspecialchars($log_content, ENT_QUOTES, 'UTF-8'); $url_back = $this->context->link->getAdminLink('AdminModules') . '&configure=fianetfraud'; $html = "<p><a href='" . $url_back . "'>" . $this->l('Back to configuration page') . "</a></p><textarea cols='180' rows='35' Readonly>{$log_txt}</textarea><p><a href='" . $url_back . "'>" . $this->l('Back to configuration page') . "</a></p>"; $this->context->smarty->assign('content', $html); } else { parent::initContent(); } }
/** * Get FIA-NET log file and show it * */ public function initContent() { parent::initContent(); }