Mercurial > hg > rc1
view vendor/pear/crypt_gpg/tools/dump-keyring.php @ 41:d2414df68d78
Updated by Alex S Grebenschikov (www.poralix.com)
to make it compatible with RoundCube 1.3.0
author | Charlie Root |
---|---|
date | Fri, 24 Jan 2025 14:20:15 -0500 |
parents | 1e000243b222 |
children |
line wrap: on
line source
<?php /* * Helper script for test keyring generation * * See build-keyring.sh * * Copyright (c) 2008 Michael Gauthier */ echo "<?php\n\n"; $HOMEDIR = $_SERVER['argv'][1]; $dataFiles = array( 'pubring' => 'pubring.gpg', 'secring' => 'secring.gpg', 'trustdb' => 'trustdb.gpg', 'random_seed' => 'random_seed' ); echo "\n// For TestCase\n"; foreach ($dataFiles as $key => $file) { echo " // {{{ " . $key . " data\n"; echo " $" . $key . "Data = <<<TEXT\n"; $content = file_get_contents($HOMEDIR . '/' . $file); $content = base64_encode($content); $content = wordwrap($content, 60, "\n", true); echo $content; echo "\n\nTEXT;\n"; echo " // }}}\n"; } echo "\n?>\n"; ?>