BxAntispamStudioPage.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Antispam Antispam
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxAntispamStudioPage extends BxTemplStudioModule
  12. {
  13. protected $oModule;
  14. function __construct($sModule = "", $sPage = "")
  15. {
  16. parent::__construct($sModule, $sPage);
  17. $this->oModule = BxDolModule::getInstance('bx_antispam');
  18. $this->aMenuItems = array(
  19. array('name' => 'settings', 'icon' => 'cogs', 'title' => '_adm_lmi_cpt_settings'),
  20. array('name' => 'ip_table', 'icon' => 'align-justify', 'title' => '_bx_antispam_ip_table', 'link' => BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=antispam-ip-table')),
  21. array('name' => 'dnsbl_list', 'icon' => 'align-justify', 'title' => '_bx_antispam_dnsbl_list', 'link' => BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=antispam-dnsbl-list')),
  22. array('name' => 'block_log', 'icon' => 'clock-o', 'title' => '_bx_antispam_block_log', 'link' => BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=antispam-block-log')),
  23. );
  24. }
  25. function getHelp ()
  26. {
  27. return _t('_bx_antispam_help_text');
  28. }
  29. protected function getPageCaptionHelp()
  30. {
  31. $oTemplate = BxDolStudioTemplate::getInstance();
  32. $sContent = '<a href="' . BX_DOL_URL_STUDIO . 'module.php?name=bx_antispam&page=help">' . _t('_bx_antispam_help') . "</a>";
  33. return $oTemplate->parseHtmlByName('page_caption_help.html', array('content' => $sContent));
  34. }
  35. }
  36. /** @} */