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:
//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);
}

View File

@@ -1,11 +1,17 @@
<?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
*
* @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
{
@@ -311,4 +317,4 @@ class ConfigFile
return $ret;
}
}
?>
?>

View File

@@ -1,13 +1,19 @@
<?php
/**
* Base class for forms, loads default configuration options, checks allowed
* values etc.
* Form handling code.
*
* @package phpMyAdmin-setup
* @author Piotr Przybylski <piotrprz@gmail.com>
* @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();
}
}
?>
?>