[ Index ]

MailPress 7.1

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

title

Body

[close]

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

   1  <?php // bounce_handling_II
   2  
   3  if ( isset( MP_AdminPage::$pst_['connection_pop3'] ) ) 
   4  {
   5      $connection_pop3 = MP_AdminPage::$pst_['connection_pop3'];
   6  
   7      switch ( true )
   8      {
   9          case ( empty( $connection_pop3['server'] ) ) :
  10              MP_AdminPage::$err_mess['pop3_server'] = __( 'field should not be empty', 'MailPress' );
  11          break;
  12          case ( empty( $connection_pop3['port'] ) ) :
  13              MP_AdminPage::$err_mess['pop3_port'] = __( 'field should not be empty', 'MailPress' );
  14          break;
  15          case ( !is_numeric( $connection_pop3[port] ) ) : 
  16              MP_AdminPage::$err_mess['pop3_port'] = __( 'field should be a number', 'MailPress' );
  17          break;
  18          case ( empty( $connection_pop3['username'] ) && !empty( $connection_pop3['password'] ) ) :
  19              MP_AdminPage::$err_mess['pop3_username'] = __( 'field should not be empty', 'MailPress' );
  20          break;
  21          default :
  22              update_option( MailPress_bounce_handling_II::option_name_pop3, $connection_pop3 );
  23          break;
  24      }
  25  }


Generated: Mon Mar 11 18:33:33 2019 Cross-referenced by PHPXref 0.7.1