diff --git a/libraries/blowfish.php b/libraries/blowfish.php index e02ec37cd..3a2945b03 100644 --- a/libraries/blowfish.php +++ b/libraries/blowfish.php @@ -19,6 +19,10 @@ // Change for phpMyAdmin by lem9: //class Horde_Cipher_blowfish extends Horde_Cipher { +/** + * Horde Blowfish cipher class. + * @package horde.cipher + */ class Horde_Cipher_blowfish { /* Pi Array */ @@ -478,17 +482,17 @@ class Horde_Cipher_blowfish * * @author lem9 */ -function PMA_blowfish_encrypt($data, $secret) +function PMA_blowfish_encrypt($data, $secret) { $pma_cipher = new Horde_Cipher_blowfish; $encrypt = ''; - + $mod = strlen($data) % 8; - + if ($mod > 0) { $data .= str_repeat("\0", 8 - $mod); } - + foreach (str_split($data, 8) as $chunk) { $encrypt .= $pma_cipher->encryptBlock($chunk, $secret); } @@ -512,7 +516,7 @@ function PMA_blowfish_decrypt($encdata, $secret) $pma_cipher = new Horde_Cipher_blowfish; $decrypt = ''; $data = base64_decode($encdata); - + foreach (str_split($data, 8) as $chunk) { $decrypt .= $pma_cipher->decryptBlock($chunk, $secret); } diff --git a/setup/lib/ConfigFile.class.php b/setup/lib/ConfigFile.class.php index a8a1c244b..09efc9594 100644 --- a/setup/lib/ConfigFile.class.php +++ b/setup/lib/ConfigFile.class.php @@ -1,11 +1,17 @@ + * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0 + * @version $Id$ + * @package phpMyAdmin-setup + */ + /** * Config file management and generation class * * @package phpMyAdmin-setup - * @author Piotr Przybylski - * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0 - * @version $Id$ */ class ConfigFile { @@ -311,4 +317,4 @@ class ConfigFile return $ret; } } -?> \ No newline at end of file +?> diff --git a/setup/lib/Form.class.php b/setup/lib/Form.class.php index 95806e584..498cb5938 100644 --- a/setup/lib/Form.class.php +++ b/setup/lib/Form.class.php @@ -1,13 +1,19 @@ * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0 * @version $Id$ */ + +/** + * Base class for forms, loads default configuration options, checks allowed + * values etc. + * + * @package phpMyAdmin-setup + */ class Form { /** @@ -174,4 +180,4 @@ class Form $this->readTypes(); } } -?> \ No newline at end of file +?>