File/plugins/gpg/gpg_decrypt_attach.php

Description

gpgdecrypt_attach.php

----------- This file will be called by the mime attachment handler to do one of two things:

  1. decrypt the attachment file and force the download.
  2. verify the signature of an encrypted attachment
Copyright (c) 2003-2005 Braverock Ventures Copyright (c) 2007 The NaSMail Project Licensed under the GNU GPL. For full terms see the file COPYING.

  • version: $Id: gpg_decrypt_attach.php 1042 2007-12-05 18:05:05Z tokul $
  • todo: modify to work without passphrase caching
Includes
 include (SM_PATH.'plugins/gpg/modules/gpg_err.mod') (line 274)
 include (SM_PATH.'plugins/gpg/modules/gpg_err.mod') (line 214)

set the localization variables

Now tell gettext where the locale directory for your plugin is this is in relation to the src/ directory

 include_once (SM_PATH.'plugins/gpg/gpg_functions.php') (line 23)
 include_once (SM_PATH.'functions/forms.php') (line 21)
 include_once (SM_PATH.'functions/imap.php') (line 22)
 include_once (SM_PATH.'include/validate.php') (line 20)
Functions
scandir (line 37)

List files and directories inside the specified path

Provided for backwards compatibility with PHP 4.x COMPAT: PHP5

array scandir (string $dirstr)
  • string $dirstr: Directory

Documentation generated on Sun, 22 Nov 2009 17:36:36 +0200 by phpDocumentor 1.4.3