Add some missing docblocks.

This commit is contained in:
Michal Čihař
2008-11-24 11:36:33 +00:00
parent f89d6bfe36
commit d88067ee54
3 changed files with 28 additions and 12 deletions

View File

@@ -19,6 +19,10 @@
// Change for phpMyAdmin by lem9: // Change for phpMyAdmin by lem9:
//class Horde_Cipher_blowfish extends Horde_Cipher { //class Horde_Cipher_blowfish extends Horde_Cipher {
/**
* Horde Blowfish cipher class.
* @package horde.cipher
*/
class Horde_Cipher_blowfish class Horde_Cipher_blowfish
{ {
/* Pi Array */ /* Pi Array */
@@ -478,17 +482,17 @@ class Horde_Cipher_blowfish
* *
* @author lem9 * @author lem9
*/ */
function PMA_blowfish_encrypt($data, $secret) function PMA_blowfish_encrypt($data, $secret)
{ {
$pma_cipher = new Horde_Cipher_blowfish; $pma_cipher = new Horde_Cipher_blowfish;
$encrypt = ''; $encrypt = '';
$mod = strlen($data) % 8; $mod = strlen($data) % 8;
if ($mod > 0) { if ($mod > 0) {
$data .= str_repeat("\0", 8 - $mod); $data .= str_repeat("\0", 8 - $mod);
} }
foreach (str_split($data, 8) as $chunk) { foreach (str_split($data, 8) as $chunk) {
$encrypt .= $pma_cipher->encryptBlock($chunk, $secret); $encrypt .= $pma_cipher->encryptBlock($chunk, $secret);
} }
@@ -512,7 +516,7 @@ function PMA_blowfish_decrypt($encdata, $secret)
$pma_cipher = new Horde_Cipher_blowfish; $pma_cipher = new Horde_Cipher_blowfish;
$decrypt = ''; $decrypt = '';
$data = base64_decode($encdata); $data = base64_decode($encdata);
foreach (str_split($data, 8) as $chunk) { foreach (str_split($data, 8) as $chunk) {
$decrypt .= $pma_cipher->decryptBlock($chunk, $secret); $decrypt .= $pma_cipher->decryptBlock($chunk, $secret);
} }

View File

@@ -1,11 +1,17 @@
<?php <?php
/**
* Config file management and generation
*
* @author Piotr Przybylski <piotrprz@gmail.com>
* @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
* @version $Id$
* @package phpMyAdmin-setup
*/
/** /**
* Config file management and generation class * Config file management and generation class
* *
* @package phpMyAdmin-setup * @package phpMyAdmin-setup
* @author Piotr Przybylski <piotrprz@gmail.com>
* @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
* @version $Id$
*/ */
class ConfigFile class ConfigFile
{ {
@@ -311,4 +317,4 @@ class ConfigFile
return $ret; return $ret;
} }
} }
?> ?>

View File

@@ -1,13 +1,19 @@
<?php <?php
/** /**
* Base class for forms, loads default configuration options, checks allowed * Form handling code.
* values etc.
* *
* @package phpMyAdmin-setup * @package phpMyAdmin-setup
* @author Piotr Przybylski <piotrprz@gmail.com> * @author Piotr Przybylski <piotrprz@gmail.com>
* @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0 * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
* @version $Id$ * @version $Id$
*/ */
/**
* Base class for forms, loads default configuration options, checks allowed
* values etc.
*
* @package phpMyAdmin-setup
*/
class Form class Form
{ {
/** /**
@@ -174,4 +180,4 @@ class Form
$this->readTypes(); $this->readTypes();
} }
} }
?> ?>