Fix: Messages forwarded as attachments from message list were not getting flagged...
[squirrelmail.git] / contrib / decrypt_headers.php
index 7f0f393..a8d7ff1 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * Script provides form to decode encrypted header information.
  *
- * @copyright © 2005-2006 The SquirrelMail Project Team
+ * @copyright © 2005-2009 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
 define('SM_PATH','../');
 
 /**
- * include SquirrelMail string functions
+ * include SquirrelMail string and generic functions
  * script needs OneTimePadDecrypt() (functions/strings.php)
- * and sqgetGlobalVar() (functions/global.php, loaded by strings.php)
+ * and sqgetGlobalVar() (functions/global.php)
  */
+include_once(SM_PATH.'functions/global.php');
 include_once(SM_PATH.'functions/strings.php');
 
 /**
@@ -80,7 +81,7 @@ if (sqgetGlobalVar('submit',$submit,SQ_POST)) {
     echo "<hr />";
 }
 ?>
-<form action="<?php echo $PHP_SELF ?>" method="post" >
+<form action="" method="post">
 <p>
 Secret key: <input type="password" name="secret"><br />
 Encrypted string: <input type="text" name="enc_string"><br />