[ Index ]

MailPress 7.2

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

title

Body

[close]

/mp-admin/includes/settings/connection_sendmail/ -> form.php (source)

   1  <?php // connection_sendmail
   2  
   3  if ( !isset( $connection_sendmail ) ) 
   4  {
   5      $connection_sendmail = get_option( MailPress::option_name_sendmail );
   6  }
   7  
   8  if ( !isset( $connection_sendmail['cmd'] ) ) 
   9  {
  10      $connection_sendmail['cmd'] = 'std';
  11  }
  12  ?>
  13  <form name="<?php echo basename(__DIR__); ?>" method="post" class="mp_settings">
  14      <input type="hidden" name="_tab" value="<?php echo basename(__DIR__); ?>" />
  15      <table class="form-table">
  16  
  17  <!-- sendmail parms -->
  18          <tr>
  19              <th><?php _e( 'Connect', 'MailPress' ); ?></th>
  20              <td class="field">
  21                  <label for="connection_sendmail_radio1">
  22                      <input type="radio" value="std"    name="connection_sendmail[cmd]" id="connection_sendmail_radio1" class="connection_sendmail"<?php checked( 'std', $connection_sendmail['cmd'] ); ?> />
  23                      <?php _e( "using '/usr/sbin/sendmail -bs'", 'MailPress' ); ?>
  24                  </label>
  25                  <br />
  26                  <label for="sendmail-custom">
  27                      <input type="radio" value="custom" name="connection_sendmail[cmd]" id="sendmail-custom" class="connection_sendmail"<?php checked( 'custom', $connection_sendmail['cmd'] ); ?> />
  28                      <?php _e( 'using a custom command', 'MailPress' ); ?>
  29                  </label>
  30                  &#160;&#160;
  31                  <span id="sendmail-custom-cmd" <?php if ( 'custom' != $connection_sendmail['cmd'] ) echo ' class="hidden"'; ?>>
  32                      <input type="text" name="connection_sendmail[custom]" size="40" value="<?php if ( isset( $connection_sendmail['custom'] ) ) echo $connection_sendmail['custom']; ?>" />
  33                  </span>
  34              </td>
  35          </tr>
  36  
  37      </table>
  38  
  39  <?php MP_AdminPage::save_button(); ?>
  40  
  41  </form>


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