[ Index ]

MailPress 7.2

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

title

Body

[close]

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

   1  <?php
   2  abstract class MP_list_unsubscribe_ extends MP_process_pop3_
   3  {
   4  	function get_log_title()
   5      {
   6          return sprintf( $this->log_title, MailPress_list_unsubscribe::actions[$this->config['mode']] );
   7      }
   8  
   9  // process
  10  
  11  	function process_message()
  12      {
  13          $this->local_log = array();
  14  
  15          if ( !$this->is_request() )
  16          {
  17              $sep = ( count( $this->local_log ) != 1 );
  18              if ( $sep ) $this->trace->log( '!' . str_repeat( '-', $this->bt ) . '!' );
  19              foreach( $this->local_log as $local_log ) $this->trace->log( $local_log );
  20              if ( $this->do_delete ) $this->pop3->delete( $this->message_id );
  21              if ( $sep ) $this->trace->log( '!' . str_repeat( '-', $this->bt ) . '!' );
  22  
  23              return;
  24          }
  25          $bm  = '            !';
  26          $bm .= str_repeat( '-', $this->bt - strlen( $bm ) );
  27          $this->trace->log( '!' . $bm . '!' );
  28  
  29          $this->mysql_disconnect( $this->class );
  30          $this->mysql_connect( $this->class );
  31  
  32          $this->trace->log( '!' . str_repeat( '-', $this->bt ) . '!' );
  33  
  34          $bm = ' email      ! ' . $this->mp_user->email . ' ( ' . $this->mp_user->name . ' ) ';
  35          $this->trace->log( '!' . $bm . str_repeat( ' ', $this->bt - strlen( $bm ) ) . '!' );
  36  
  37          $bm = ' list_id    ! ' . $this->list_id;
  38          $this->trace->log( '!' . $bm . str_repeat( ' ', $this->bt - strlen( $bm ) ) . '!' );
  39  
  40          $bm = ' mail_id    ! ' . $this->mail_id;
  41          $this->trace->log( '!' . $bm . str_repeat( ' ', $this->bt - strlen( $bm ) ) . '!' );
  42  
  43          $bm  = '            !';
  44          $bm .= str_repeat( '-', $this->bt - strlen( $bm ) );
  45          $this->trace->log( '!' . $bm . '!' );
  46  
  47          MailPress_list_unsubscribe::unsubscribe( 'mail', $this->mp_user, $this->list_id, $this->mail_id );
  48  
  49          $this->pop3->delete( $this->message_id );
  50      
  51          $this->trace->log( '!' . str_repeat( '-', $this->bt ) . '!' );
  52      }
  53  }


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