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();
     }
 }
 /**
  * Create a template from the override file, else from the base file.
  *
  * @param string $tpl_name filename
  * @return Smarty_Internal_Template
  */
 public function createTemplate($tpl_name)
 {
     //if (file_exists($this->context->smarty->getTemplateDir(0).$this->override_folder.$tpl_name) && $this->viewAccess())
     //    return $this->context->smarty->createTemplate($this->context->smarty->getTemplateDir(0).$this->override_folder.$tpl_name, $this->context->smarty);
     if (file_exists($this->getTemplatePath() . $this->override_folder . $tpl_name) && $this->viewAccess()) {
         return $this->context->smarty->createTemplate($this->getTemplatePath() . $this->override_folder . $tpl_name, $this->context->smarty);
     }
     //if (file_exists($this->context->smarty->getTemplateDir(0).DIRECTORY_SEPARATOR.$tpl_name) && $this->viewAccess())
     //    return $this->context->smarty->createTemplate($this->context->smarty->getTemplateDir(0).DIRECTORY_SEPARATOR.$tpl_name, $this->context->smarty);
     return parent::createTemplate($tpl_name);
 }
 /**
  * Get FIA-NET log file and show it
  *  
  */
 public function initContent()
 {
     parent::initContent();
 }
 public function renderKpis()
 {
     return @AdminOrdersController::renderKpis();
 }