[ Index ]

MailPress 7.2

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

title

Body

[close]

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

   1  <?php // signer_smime
   2  
   3  if ( !extension_loaded( 'openssl' ) )
   4  {
   5      $m[] = printf( __( 'Default php extension \'%1$s\' not loaded.', 'MailPress'), 'openssl' );
   6      return;
   7  }
   8  
   9  if ( !isset( $signer_smime ) )
  10  {
  11      $signer_smime = get_option( Mailpress_signer_smime::option_name );
  12  }
  13  ?>
  14  <form name="<?php echo basename(__DIR__); ?>" method="post" class="mp_settings">
  15      <input type="hidden" name="_tab" value="<?php echo basename(__DIR__); ?>" />
  16      <table class="form-table">
  17  
  18  <!-- Certificate -->
  19          <tr<?php if ( isset( MP_AdminPage::$err_mess['Certificate'] ) ) echo ' class="form-invalid"'; ?>>
  20              <th>
  21                  <?php _e( 'Certificate', 'MailPress' ); ?><br /><small><?php _e('(full path to .pem file)', 'MailPress' ); ?></small>
  22              </th>
  23              <td>
  24                  <input type="text" name="signer_smime[Certificate]" size="100" value="<?php if ( isset( $signer_smime['Certificate'] ) ) echo $signer_smime['Certificate']; ?>" />
  25              </td>
  26          </tr>
  27  <!-- privateKey -->
  28          <tr<?php if ( isset( MP_AdminPage::$err_mess['privateKey'] ) ) echo ' class="form-invalid"'; ?>>
  29              <th>
  30                  <?php _e( 'Private Key File', 'MailPress' ); ?><br /><small><?php _e('(full path to .pem file)', 'MailPress' ); ?></small>
  31              </th>
  32              <td>
  33                  <input type="text" name="signer_smime[privateKey]" size="100" value="<?php if ( isset( $signer_smime['privateKey'] ) ) echo $signer_smime['privateKey']; ?>" />
  34              </td>
  35          </tr>
  36  <!-- Passphrase -->
  37          <tr>
  38              <th>
  39                  <?php _e( 'Passphrase', 'MailPress' ); ?><br /><small><?php _e('(optionnal)', 'MailPress' ); ?></small>
  40              </th>
  41              <td>
  42                  <input type="password" name="signer_smime[passphrase]" size="100" value="<?php if ( isset( $signer_smime['passphrase'] ) ) echo $signer_smime['passphrase']; ?>" />
  43              </td>
  44          </tr>
  45  <!-- Encryption -->
  46          <tr<?php if ( isset( MP_AdminPage::$err_mess['Encryption'] ) ) echo ' class="form-invalid"'; ?>>
  47              <th>
  48                  <?php _e( 'Encryption Certificate', 'MailPress' ); ?><br /><small><?php _e('(optionnal full path to .pem file)', 'MailPress' ); ?></small>
  49              </th>
  50              <td>
  51                  <input type="text" name="signer_smime[Encryption]" size="100" value="<?php if ( isset( $signer_smime['Encryption'] ) ) echo $signer_smime['Encryption']; ?>" />
  52              </td>
  53          </tr>
  54  
  55      </table>
  56  
  57  <?php MP_AdminPage::save_button(); ?>
  58  
  59  </form>


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