[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/class/ -> MP_Swift_Signer_dkim.class.php (source)

   1  <?php
   2  class MP_Swift_Signer_dkim extends MP_Swift_signer_
   3  {
   4      public $Swift_Signer_type = 'DKIM';
   5  
   6  	function sign( $signer = false )
   7      {
   8          $config = get_option( Mailpress_signer_dkim::option_name );
   9  
  10          if ( !$config ) return $signer;
  11  
  12          if ( !is_file( $config['privateKey'] ) ) return $signer;
  13  
  14          $privateKey = file_get_contents( $config['privateKey'] );
  15  
  16          return new Swift_Signers_DKIMSigner( $privateKey, $config['domainName'], $config['selector'] );
  17      }
  18  }


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1