bug 1123: added functionality to www/gpg.php