[ Index ]

MailPress 7.2

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

title

Body

[close]

/mp-admin/includes/settings/signer_dkim/ -> update.php (source)

   1  <?php // signer_dkim => no sanitize here, very sensitive information (paths to certificates)
   2  
   3  if ( isset( MP_AdminPage::$pst_['signer_dkim'] ) )
   4  {
   5      $signer_dkim = MP_AdminPage::$pst_['signer_dkim'];
   6      $signer_dkim['privateKey'] = stripslashes( $signer_dkim['privateKey'] );
   7  
   8      switch ( true )
   9      {
  10          case ( empty( $signer_dkim['privateKey'] ) || !is_file( $signer_dkim['privateKey'] ) ) :
  11              MP_AdminPage::$err_mess['privateKey'] = __( 'field should be a valid file.', 'MailPress' );
  12          break;
  13          case ( empty( $signer_dkim['domainName'] ) ) :
  14              MP_AdminPage::$err_mess['domainName'] =  __( 'field should not be empty', 'MailPress' );
  15          break;
  16          case ( empty( $signer_dkim['selector'] ) ) :
  17              MP_AdminPage::$err_mess['selector'] =  __( 'field should not be empty', 'MailPress' );
  18          break;
  19          default :
  20              update_option( MailPress_signer_dkim::option_name, $signer_dkim );
  21              $message = __( "'DKIM' settings saved", 'MailPress' );
  22          break;
  23      }
  24  }


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