BxAntispamStudioPage.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup Antispam Antispam
  7. * @ingroup DolphinModules
  8. *
  9. * @{
  10. */
  11. bx_import('BxTemplStudioModule');
  12. class BxAntispamStudioPage extends BxTemplStudioModule
  13. {
  14. protected $oModule;
  15. function __construct($sModule = "", $sPage = "")
  16. {
  17. parent::__construct($sModule, $sPage);
  18. bx_import('BxDolModule');
  19. $this->oModule = BxDolModule::getInstance('bx_antispam');
  20. bx_import('BxDolPermalinks');
  21. $this->aMenuItems = array(
  22. array('name' => 'general', 'icon' => 'cogs', 'title' => '_adm_lmi_cpt_settings'),
  23. 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')),
  24. 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')),
  25. 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')),
  26. );
  27. }
  28. function getHelp ()
  29. {
  30. return _t('_bx_antispam_help_text');
  31. }
  32. protected function getPageCaptionHelp() {
  33. $oTemplate = BxDolStudioTemplate::getInstance();
  34. $sContent = '<a href="' . BX_DOL_URL_STUDIO . 'module.php?name=bx_antispam&page=help">' . _t('_bx_antispam_help') . "</a>";
  35. return $oTemplate->parseHtmlByName('page_caption_help.html', array('content' => $sContent));
  36. }
  37. }
  38. /** @} */