diff --git a/error.php b/error.php index e0abb4457..674d08e0f 100644 --- a/error.php +++ b/error.php @@ -4,9 +4,12 @@ * phpMyAdmin fatal error display page * * @version $Id$ + * @package phpMyAdmin */ -/* Input sanitizing */ +/** + * Input sanitizing. + */ require_once './libraries/sanitizing.lib.php'; /* Get variables */ diff --git a/export.php b/export.php index 666cbd068..a4681a6de 100644 --- a/export.php +++ b/export.php @@ -3,6 +3,7 @@ /** * @todo too much die here, or? * @version $Id$ + * @package phpMyAdmin */ /** @@ -362,7 +363,7 @@ if (!$save_on_server) { } else { header('Pragma: no-cache'); // test case: exporting a database into a .gz file with Safari - // would produce files not having the current time + // would produce files not having the current time // (added this header for Safari but should not harm other browsers) header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); } diff --git a/import.php b/import.php index 5f9b79a5c..a361b1ba7 100644 --- a/import.php +++ b/import.php @@ -5,6 +5,7 @@ * * @uses PMA_Bookmark_getList() * @version $Id$ + * @package phpMyAdmin */ /** diff --git a/index.php b/index.php index 4ea0a4f36..cb8947289 100644 --- a/index.php +++ b/index.php @@ -26,6 +26,7 @@ * @uses time() * @uses PMA_getenv() * @uses header() to send charset + * @package phpMyAdmin */ /** diff --git a/libraries/Error.class.php b/libraries/Error.class.php index 1b8b88814..6b737cb40 100644 --- a/libraries/Error.class.php +++ b/libraries/Error.class.php @@ -4,6 +4,7 @@ * Holds class PMA_Error * * @version $Id$ + * @package phpMyAdmin */ /** @@ -14,6 +15,7 @@ require_once './libraries/Message.class.php'; /** * a single error * + * @package phpMyAdmin */ class PMA_Error extends PMA_Message { diff --git a/libraries/Error_Handler.class.php b/libraries/Error_Handler.class.php index 4e4b2eab5..b260b2f60 100644 --- a/libraries/Error_Handler.class.php +++ b/libraries/Error_Handler.class.php @@ -4,6 +4,7 @@ * Holds class PMA_Error_Handler * * @version $Id$ + * @package phpMyAdmin */ /** @@ -14,6 +15,7 @@ require_once './libraries/Error.class.php'; /** * handling errors * + * @package phpMyAdmin */ class PMA_Error_Handler { diff --git a/libraries/File.class.php b/libraries/File.class.php index cac985603..03e70c529 100644 --- a/libraries/File.class.php +++ b/libraries/File.class.php @@ -12,8 +12,8 @@ * @todo replace error messages with localized string * @todo when uploading a file into a blob field, should we also consider using * chunks like in import? UPDATE `table` SET `field` = `field` + [chunk] + * @package phpMyAdmin */ - class PMA_File { /** diff --git a/libraries/Index.class.php b/libraries/Index.class.php index aaed558c7..ee65ccd28 100644 --- a/libraries/Index.class.php +++ b/libraries/Index.class.php @@ -10,6 +10,7 @@ /** * @since phpMyAdmin 3.0.0 * + * @package phpMyAdmin */ class PMA_Index { @@ -582,6 +583,9 @@ class PMA_Index } } +/** + * @package phpMyAdmin + */ class PMA_Index_Column { /** diff --git a/libraries/List.class.php b/libraries/List.class.php index 07b4f847b..029b6fc3d 100644 --- a/libraries/List.class.php +++ b/libraries/List.class.php @@ -4,12 +4,14 @@ * hold the PMA_List base class * * @version $Id$ + * @package phpMyAdmin */ /** * @todo add caching * @since phpMyAdmin 2.9.10 * @abstract + * @package phpMyAdmin */ abstract class PMA_List extends ArrayObject { diff --git a/libraries/List_Database.class.php b/libraries/List_Database.class.php index ddb141dad..df3a6b403 100644 --- a/libraries/List_Database.class.php +++ b/libraries/List_Database.class.php @@ -4,6 +4,7 @@ * holds the PMA_List_Database class * * @version $Id$ + * @package phpMyAdmin */ /** @@ -23,6 +24,7 @@ require_once './libraries/List.class.php'; * @todo ? support --skip-showdatabases and user has only global rights * @access public * @since phpMyAdmin 2.9.10 + * @package phpMyAdmin */ /*public*/ class PMA_List_Database extends PMA_List { @@ -46,7 +48,7 @@ require_once './libraries/List.class.php'; * @access protected */ protected $_show_databases_disabled = false; - + /** * @var string command to retrieve databases from server */ @@ -111,11 +113,11 @@ require_once './libraries/List.class.php'; if ($this->_show_databases_disabled) { return array(); } - + if (null !== $like_db_name) { $command = "SHOW DATABASES LIKE '" . $like_db_name . "'"; } elseif (null === $this->_command) { - $command = str_replace('#user#', $GLOBALS['cfg']['Server']['user'], + $command = str_replace('#user#', $GLOBALS['cfg']['Server']['user'], $GLOBALS['cfg']['Server']['ShowDatabasesCommand']); $this->_command = $command; } else { @@ -165,7 +167,7 @@ require_once './libraries/List.class.php'; } $this->exchangeArray($items); } - + $this->_checkHideDatabase(); } @@ -197,7 +199,7 @@ require_once './libraries/List.class.php'; if (! is_array($GLOBALS['cfg']['Server']['only_db'])) { return false; } - + $items = array(); foreach ($GLOBALS['cfg']['Server']['only_db'] as $each_only_db) { @@ -224,7 +226,7 @@ require_once './libraries/List.class.php'; // @todo induce error, about not using wildcards with SHOW DATABASE disabled? } - + $this->exchangeArray($items); return true; @@ -313,7 +315,7 @@ require_once './libraries/List.class.php'; 'disp_name' => $disp_name, 'comment' => $db_tooltip, ); - + if ($GLOBALS['cfg']['Server']['CountTables']) { $dbgroups[$group][$db]['num_tables'] = PMA_getTableCount($db); } @@ -371,7 +373,7 @@ require_once './libraries/List.class.php'; } else { $return .= htmlspecialchars($db['disp_name']); } - + if (! empty($db['num_tables'])) { $return .= ' (' . $db['num_tables'] . ')'; } diff --git a/libraries/Message.class.php b/libraries/Message.class.php index 50245e0cf..2c6920642 100644 --- a/libraries/Message.class.php +++ b/libraries/Message.class.php @@ -4,6 +4,7 @@ * Holds class PMA_Message * * @version $Id: Error.class.php 10738 2007-10-08 16:02:58Z cybot_tm $ + * @package phpMyAdmin */ /** @@ -47,6 +48,7 @@ * // strSomeLocaleMessage 1 strSomeMoreLocale
* // strSomeEvenMoreLocale - some final words * + * @package phpMyAdmin */ class PMA_Message { diff --git a/libraries/PMA.php b/libraries/PMA.php index b85f04c7a..4b391c2cc 100644 --- a/libraries/PMA.php +++ b/libraries/PMA.php @@ -1,15 +1,21 @@ controllink; break; } - + return null; } - + /** * magic access to protected/inaccessible members/properties * @@ -72,7 +78,7 @@ class PMA break; } } - + /** * Accessor to PMA::$databases * @@ -87,7 +93,7 @@ class PMA if (null === $this->databases) { $this->databases = new PMA_List_Database($this->userlink, $this->controllink); } - + return $this->databases; } } diff --git a/libraries/Partition.class.php b/libraries/Partition.class.php index bf6209093..cd696338a 100644 --- a/libraries/Partition.class.php +++ b/libraries/Partition.class.php @@ -4,16 +4,18 @@ * Library for extracting information about the partitions * * @version $Id$ + * @package phpMyAdmin */ /** * base Partition Class + * @package phpMyAdmin */ class PMA_Partition { /** - * returns array of partition names for a specific db/table + * returns array of partition names for a specific db/table * * @access public * @uses PMA_DBI_fetch_result() @@ -29,14 +31,14 @@ class PMA_Partition } /** - * checks if MySQL server supports partitioning + * checks if MySQL server supports partitioning * * @static * @staticvar boolean $have_partitioning * @staticvar boolean $already_checked * @access public * @uses PMA_DBI_fetch_result() - * @return boolean + * @return boolean */ static public function havePartitioning() { diff --git a/libraries/StorageEngine.class.php b/libraries/StorageEngine.class.php index 69d51e557..5b621b9f1 100644 --- a/libraries/StorageEngine.class.php +++ b/libraries/StorageEngine.class.php @@ -4,6 +4,7 @@ * Library for extracting information about the available storage engines * * @version $Id$ + * @package phpMyAdmin */ /** @@ -21,6 +22,7 @@ define('PMA_ENGINE_DETAILS_TYPE_BOOLEAN', 3); // 'ON' or 'OFF' /** * base Storage Engine Class + * @package phpMyAdmin */ class PMA_StorageEngine { diff --git a/libraries/Table.class.php b/libraries/Table.class.php index acb806761..6e21ced5f 100644 --- a/libraries/Table.class.php +++ b/libraries/Table.class.php @@ -3,16 +3,18 @@ /** * * @version $Id$ + * @package phpMyAdmin */ /** * @todo make use of PMA_Message and PMA_Error + * @package phpMyAdmin */ class PMA_Table { static $cache = array(); - + /** * @var string table name */ @@ -248,10 +250,10 @@ class PMA_Table $comment = strtoupper(PMA_Table::sGetStatusInfo($db, $table, 'Comment')); return substr($comment, 0, 4) == 'VIEW'; } - + static public function sGetToolTip($db, $table) { - return PMA_Table::sGetStatusInfo($db, $table, 'Comment') + return PMA_Table::sGetStatusInfo($db, $table, 'Comment') . ' (' . PMA_Table::countRecords($db, $table, true) . ')'; } @@ -260,11 +262,11 @@ class PMA_Table if (! isset(PMA_Table::$cache[$db][$table]) || $force_read) { PMA_Table::$cache[$db][$table] = PMA_DBI_fetch_single_row('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . $table . '\''); } - + if (null === $info) { return PMA_Table::$cache[$db][$table]; } - + if (! isset(PMA_Table::$cache[$db][$table][$info]) || $force_read) { PMA_Table::$cache[$db][$table] = PMA_DBI_fetch_single_row('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . $table . '\''); } @@ -327,7 +329,7 @@ class PMA_Table $query .= ' NOT NULL'; } } - + switch ($default_type) { case 'USER_DEFINED' : if ($is_timestamp && $default_value === '0') { @@ -352,7 +354,7 @@ class PMA_Table if (!empty($extra)) { $query .= ' ' . $extra; // Force an auto_increment field to be part of the primary key - // even if user did not tick the PK box; + // even if user did not tick the PK box; if ($extra == 'AUTO_INCREMENT') { $primary_cnt = count($field_primary); if (1 == $primary_cnt) { @@ -401,25 +403,25 @@ class PMA_Table * * @access public */ - static public function countRecords($db, $table, $ret = false, + static public function countRecords($db, $table, $ret = false, $force_exact = false, $is_view = null) { if (isset(PMA_Table::$cache[$db][$table]['ExactRows'])) { $row_count = PMA_Table::$cache[$db][$table]['ExactRows']; } else { $row_count = false; - + if (null === $is_view) { $is_view = PMA_Table::isView($db, $table); } - + if (! $force_exact) { if (! isset(PMA_Table::$cache[$db][$table]['Rows']) && ! $is_view) { PMA_Table::$cache[$db][$table] = PMA_DBI_fetch_single_row('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . PMA_sqlAddslashes($table, true) . '\''); } $row_count = PMA_Table::$cache[$db][$table]['Rows']; } - + // for a VIEW, $row_count is always false at this point if (false === $row_count || $row_count < $GLOBALS['cfg']['MaxExactCount']) { if (! $is_view) { @@ -431,7 +433,7 @@ class PMA_Table // count could bring down a server, so we offer an // alternative: setting MaxExactCountViews to 0 will bypass // completely the record counting for views - + if ($GLOBALS['cfg']['MaxExactCountViews'] == 0) { $row_count = 0; } else { diff --git a/libraries/dbg/setup.php b/libraries/dbg/setup.php index 233172fe7..5e0683ac0 100644 --- a/libraries/dbg/setup.php +++ b/libraries/dbg/setup.php @@ -2,6 +2,7 @@ /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * @version $Id$ + * @package phpMyAdmin-DBG */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/display_change_password.lib.php b/libraries/display_change_password.lib.php index 3ebff87f2..e454a4492 100644 --- a/libraries/display_change_password.lib.php +++ b/libraries/display_change_password.lib.php @@ -4,13 +4,16 @@ * Displays form for password change * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; } -// loic1: autocomplete feature of IE kills the "onchange" event handler and it -// must be replaced by the "onpropertychange" one in this case +/** + * loic1: autocomplete feature of IE kills the "onchange" event handler and it + * must be replaced by the "onpropertychange" one in this case + */ $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5) ? 'onpropertychange' : 'onchange'; diff --git a/libraries/display_create_database.lib.php b/libraries/display_create_database.lib.php index 7bf4e613b..2a2687357 100644 --- a/libraries/display_create_database.lib.php +++ b/libraries/display_create_database.lib.php @@ -4,6 +4,7 @@ * Displays form for creating database (if user has privileges for that) * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/display_create_table.lib.php b/libraries/display_create_table.lib.php index d76a70cf8..cde2f21e2 100644 --- a/libraries/display_create_table.lib.php +++ b/libraries/display_create_table.lib.php @@ -23,6 +23,7 @@ * on MySQL 5.0.18. * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/display_export.lib.php b/libraries/display_export.lib.php index 0d7956df8..ad07a404b 100644 --- a/libraries/display_export.lib.php +++ b/libraries/display_export.lib.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/display_import.lib.php b/libraries/display_import.lib.php index 69d4194f2..00f515689 100644 --- a/libraries/display_import.lib.php +++ b/libraries/display_import.lib.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/display_select_lang.lib.php b/libraries/display_select_lang.lib.php index a7a1f84be..831f8c5cc 100644 --- a/libraries/display_select_lang.lib.php +++ b/libraries/display_select_lang.lib.php @@ -4,6 +4,7 @@ * Code for displaying language selection * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index 2a0cfdaea..f1ffa4044 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -4,6 +4,7 @@ * library for displaying table with results from all sort of select queries * * @version $Id$ + * @package phpMyAdmin */ /** @@ -467,7 +468,7 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $ $unsorted_sql_query = $analyzed_sql[0]['unsorted_query']; } // Handles the case of multiple clicks on a column's header - // which would add many spaces before "ORDER BY" in the + // which would add many spaces before "ORDER BY" in the // generated query. $unsorted_sql_query = trim($unsorted_sql_query); @@ -507,15 +508,15 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $ $asc_sort = '`' . implode('` ASC, `', array_keys($index->getColumns())) . '` ASC'; $desc_sort = '`' . implode('` DESC, `', array_keys($index->getColumns())) . '` DESC'; $used_index = $used_index || $local_order == $asc_sort || $local_order == $desc_sort; - echo ''; - echo ''; } echo ''; @@ -588,7 +589,7 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $ echo ''; } - // Start of form for multi-rows edit/delete/export + // Start of form for multi-rows edit/delete/export if ($is_display['del_lnk'] == 'dr' || $is_display['del_lnk'] == 'kp') { echo '
' . "\n"; @@ -749,9 +750,9 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $ if (isset($fields_meta[$i]->orgname)) { $name_to_use_in_sort = $fields_meta[$i]->orgname; } - // $name_to_use_in_sort might contain a space due to + // $name_to_use_in_sort might contain a space due to // formatting of function expressions like "COUNT(name )" - // so we remove the space in this situation + // so we remove the space in this situation $name_to_use_in_sort = str_replace(' )', ')', $name_to_use_in_sort); if (empty($sort_expression)) { @@ -1327,9 +1328,9 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) { $row[$i] = PMA_printable_bit_value($row[$i], $meta->length); } elseif (stristr($field_flags, 'BINARY') && $meta->type == 'string') { if ($_SESSION['userconf']['display_binary'] || (isset($GLOBALS['is_analyse']) && $GLOBALS['is_analyse'])) { - // user asked to see the real contents of BINARY - // fields, or we detected a PROCEDURE ANALYSE in - // the query (results are reported as being + // user asked to see the real contents of BINARY + // fields, or we detected a PROCEDURE ANALYSE in + // the query (results are reported as being // binary strings) $row[$i] = PMA_replace_binary_contents($row[$i]); } else { @@ -1681,7 +1682,7 @@ function PMA_displayTable_checkConfigParams() // we know that the checkbox was unchecked unset($_SESSION['userconf']['query'][$sql_key]['hide_transformation']); } - + // move current query to the last position, to be removed last // so only least executed query will be removed if maximum remembered queries // limit is reached @@ -1815,8 +1816,8 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql) $sort_expression = $sort_expression_nodirection = $sort_direction = ''; } - // 1.4 Prepares display of first and last value of the sorted column - + // 1.4 Prepares display of first and last value of the sorted column + if (! empty($sort_expression_nodirection)) { list($sort_table, $sort_column) = explode('.', $sort_expression_nodirection); $sort_table = PMA_unQuote($sort_table); @@ -1833,11 +1834,11 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql) if ($sorted_column_index !== false) { // fetch first row of the result set $row = PMA_DBI_fetch_row($dt_result); - $column_for_first_row = $row[$sorted_column_index]; + $column_for_first_row = $row[$sorted_column_index]; // fetch last row of the result set PMA_DBI_data_seek($dt_result, $num_rows - 1); $row = PMA_DBI_fetch_row($dt_result); - $column_for_last_row = $row[$sorted_column_index]; + $column_for_last_row = $row[$sorted_column_index]; // reset to first row for the loop in PMA_displayTableBody() PMA_DBI_data_seek($dt_result, 0); // we could also use here $sort_expression_nodirection @@ -1846,7 +1847,7 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql) } unset($sorted_column_index, $sort_table, $sort_column); } - + // 2. ----- Displays the top of the page ----- // 2.1 Displays a messages with position informations @@ -2109,7 +2110,7 @@ function PMA_displayResultsOperations($the_disp_mode, $analyzed_sql) { // (the url_query has extra parameters that won't be used to export) // (the single_table parameter is used in display_export.lib.php // to hide the SQL and the structure export dialogs) - // If the parser found a PROCEDURE clause + // If the parser found a PROCEDURE clause // (most probably PROCEDURE ANALYSE()) it makes no sense to // display the Export link). if (isset($analyzed_sql[0]) && $analyzed_sql[0]['querytype'] == 'SELECT' && !isset($printview) && ! isset($analyzed_sql[0]['queryflags']['procedure'])) { @@ -2151,10 +2152,10 @@ function PMA_displayResultsOperations($the_disp_mode, $analyzed_sql) { } /** - * Verifies what to do with non-printable contents (binary or BLOB) + * Verifies what to do with non-printable contents (binary or BLOB) * in Browse mode. * - * @uses is_null() + * @uses is_null() * @uses isset() * @uses strlen() * @uses PMA_formatByteDown() @@ -2162,10 +2163,10 @@ function PMA_displayResultsOperations($the_disp_mode, $analyzed_sql) { * @uses str_replace() * @param string $category BLOB|BINARY * @param string $content the binary content - * @param string $transform_function + * @param string $transform_function * @param string $transform_options * @param string $default_function - * @param object $meta the meta-information about this field + * @param object $meta the meta-information about this field * @return mixed string or float */ function PMA_handle_non_printable_contents($category, $content, $transform_function, $transform_options, $default_function, $meta) { @@ -2190,7 +2191,7 @@ function PMA_handle_non_printable_contents($category, $content, $transform_funct $result = $default_function($result, array(), $meta); if (stristr($meta->type, 'BLOB') && $_SESSION['userconf']['display_blob']) { // in this case, restart from the original $content - $result = PMA_replace_binary_contents($content); + $result = PMA_replace_binary_contents($content); } } } @@ -2202,20 +2203,20 @@ function PMA_handle_non_printable_contents($category, $content, $transform_funct * taking into account foreign key description field and transformations * * @uses is_array() - * @uses PMA_backquote() - * @uses PMA_DBI_try_query() - * @uses PMA_DBI_num_rows() - * @uses PMA_DBI_fetch_row() - * @uses $GLOBALS['strLinkNotFound'] - * @uses PMA_DBI_free_result() - * @uses $GLOBALS['printview'] - * @uses htmlspecialchars() - * @uses PMA_generate_common_url() - * @param string $mouse_events + * @uses PMA_backquote() + * @uses PMA_DBI_try_query() + * @uses PMA_DBI_num_rows() + * @uses PMA_DBI_fetch_row() + * @uses $GLOBALS['strLinkNotFound'] + * @uses PMA_DBI_free_result() + * @uses $GLOBALS['printview'] + * @uses htmlspecialchars() + * @uses PMA_generate_common_url() + * @param string $mouse_events * @param string $class * @param string $condition_field * @param string $analyzed_sql - * @param object $meta the meta-information about this field + * @param object $meta the meta-information about this field * @param string $map * @param string $data * @param string $transform_function @@ -2240,17 +2241,17 @@ function PMA_prepare_row_data($mouse_events, $class, $condition_field, $analyzed $meta->name = $true_column; } // end if } // end if - } // end foreach + } // end foreach } // end if if (isset($map[$meta->name])) { // Field to display from the foreign table? if (isset($map[$meta->name][2]) && strlen($map[$meta->name][2])) { $dispsql = 'SELECT ' . PMA_backquote($map[$meta->name][2]) - . ' FROM ' . PMA_backquote($map[$meta->name][3]) + . ' FROM ' . PMA_backquote($map[$meta->name][3]) . '.' . PMA_backquote($map[$meta->name][0]) . ' WHERE ' . PMA_backquote($map[$meta->name][1]) - . $where_comparison; + . $where_comparison; $dispresult = PMA_DBI_try_query($dispsql, null, PMA_DBI_QUERY_STORE); if ($dispresult && PMA_DBI_num_rows($dispresult) > 0) { list($dispval) = PMA_DBI_fetch_row($dispresult, 0); @@ -2285,15 +2286,15 @@ function PMA_prepare_row_data($mouse_events, $class, $condition_field, $analyzed ); $result .= ''; - + if ($transform_function != $default_function) { - // always apply a transformation on the real data, + // always apply a transformation on the real data, // not on the display field $result .= $transform_function($data, $transform_options, $meta); } else { if ('D' == $_SESSION['userconf']['relational_display']) { - // user chose "relational display field" in the - // display options, so show display field in the cell + // user chose "relational display field" in the + // display options, so show display field in the cell $result .= $transform_function($dispval, array(), $meta); } else { // otherwise display data in the cell diff --git a/libraries/display_tbl_links.lib.php b/libraries/display_tbl_links.lib.php index 9888b37e3..092ad55b2 100644 --- a/libraries/display_tbl_links.lib.php +++ b/libraries/display_tbl_links.lib.php @@ -8,6 +8,7 @@ * - also changes made in js/functions.js * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/export/pdf.php b/libraries/export/pdf.php index d4367c514..8512ad767 100644 --- a/libraries/export/pdf.php +++ b/libraries/export/pdf.php @@ -36,8 +36,10 @@ if (isset($plugin_list)) { define('PMA_PDF_FONT', 'DejaVuSans'); require_once './libraries/tcpdf/tcpdf.php'; -// Adapted from a LGPL script by Philip Clarke - +/** + * Adapted from a LGPL script by Philip Clarke + * @package phpMyAdmin-Export-PDF + */ class PMA_PDF extends TCPDF { var $tablewidths; diff --git a/libraries/export/xml.php b/libraries/export/xml.php index bc99eb006..e903afa01 100644 --- a/libraries/export/xml.php +++ b/libraries/export/xml.php @@ -4,6 +4,7 @@ * Set of functions used to build XML dumps of tables * * @version $Id$ + * @package phpMyAdmin-Export-XML */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/file_listing.php b/libraries/file_listing.php index 8f6c0a6cd..ff9e1a8c8 100644 --- a/libraries/file_listing.php +++ b/libraries/file_listing.php @@ -5,6 +5,7 @@ * * @todo rename to file_listing.lib.php * @version $Id$ + * @package phpMyAdmin */ /** @@ -23,7 +24,7 @@ function PMA_getDirContent($dir, $expression = '') } while ($file = @readdir($handle)) { // for PHP < 5.2.4, is_file() gives a warning when using open_basedir - // and verifying '..' or '.' + // and verifying '..' or '.' if ('.' != $file && '..' != $file && is_file($dir . $file) && ($expression == '' || preg_match($expression, $file))) { $result[] = $file; } diff --git a/libraries/footer.inc.php b/libraries/footer.inc.php index 09036b577..ead3e4144 100644 --- a/libraries/footer.inc.php +++ b/libraries/footer.inc.php @@ -42,6 +42,7 @@ * @uses basename() * @uses file_exists() * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/grab_globals.lib.php b/libraries/grab_globals.lib.php index 72a63e56b..2b626da78 100644 --- a/libraries/grab_globals.lib.php +++ b/libraries/grab_globals.lib.php @@ -2,11 +2,12 @@ /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * This library grabs the names and values of the variables sent or posted to a - * script in $_GET, $_POST and $_FILES superglobals and sets simple globals - * variables from them. It does the same work for $HTTP_ACCEPT_LANGUAGE and + * script in $_GET, $_POST and $_FILES superglobals and sets simple globals + * variables from them. It does the same work for $HTTP_ACCEPT_LANGUAGE and * $HTTP_AUTHORIZATION. * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/header.inc.php b/libraries/header.inc.php index 52dc94193..1f0dc81a8 100644 --- a/libraries/header.inc.php +++ b/libraries/header.inc.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/header_http.inc.php b/libraries/header_http.inc.php index a75c3488e..9d2025f02 100644 --- a/libraries/header_http.inc.php +++ b/libraries/header_http.inc.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/header_meta_style.inc.php b/libraries/header_meta_style.inc.php index 96183fce2..66b6561a4 100644 --- a/libraries/header_meta_style.inc.php +++ b/libraries/header_meta_style.inc.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/header_printview.inc.php b/libraries/header_printview.inc.php index 04e03960f..70996f761 100644 --- a/libraries/header_printview.inc.php +++ b/libraries/header_printview.inc.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/header_scripts.inc.php b/libraries/header_scripts.inc.php index 8ed8b534a..128193707 100644 --- a/libraries/header_scripts.inc.php +++ b/libraries/header_scripts.inc.php @@ -3,6 +3,7 @@ /** * * @version $Id: header.inc.php 10719 2007-10-04 15:03:44Z cybot_tm $ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/iconv_wrapper.lib.php b/libraries/iconv_wrapper.lib.php index 26566e728..2a69f2a45 100644 --- a/libraries/iconv_wrapper.lib.php +++ b/libraries/iconv_wrapper.lib.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/import.lib.php b/libraries/import.lib.php index 7d9a10232..9984968ff 100644 --- a/libraries/import.lib.php +++ b/libraries/import.lib.php @@ -4,6 +4,7 @@ * Library that provides common import functions that are used by import plugins * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; @@ -82,7 +83,7 @@ function PMA_detectCompression($filepath) function PMA_importRunQuery($sql = '', $full = '', $controluser = false) { global $import_run_buffer, $go_sql, $complete_query, $display_query, - $sql_query, $my_die, $error, $reload, + $sql_query, $my_die, $error, $reload, $skip_queries, $executed_queries, $max_sql_len, $read_multiply, $cfg, $sql_query_disabled, $db, $run_query, $is_superuser; $read_multiply = 1; diff --git a/libraries/import/docsql.php b/libraries/import/docsql.php index a982f78bc..6a1ee0b75 100644 --- a/libraries/import/docsql.php +++ b/libraries/import/docsql.php @@ -10,6 +10,9 @@ if (! defined('PHPMYADMIN')) { exit; } +/** + * Load relations. + */ require_once './libraries/relation.lib.php'; $cfgRelation = PMA_getRelationsParam(); diff --git a/libraries/information_schema_relations.lib.php b/libraries/information_schema_relations.lib.php index 8255360bf..670cd310f 100644 --- a/libraries/information_schema_relations.lib.php +++ b/libraries/information_schema_relations.lib.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ /** diff --git a/libraries/ip_allow_deny.lib.php b/libraries/ip_allow_deny.lib.php index 2f03b2601..d67e7cd42 100644 --- a/libraries/ip_allow_deny.lib.php +++ b/libraries/ip_allow_deny.lib.php @@ -5,6 +5,7 @@ * feature * * @version $Id$ + * @package phpMyAdmin */ diff --git a/libraries/kanji-encoding.lib.php b/libraries/kanji-encoding.lib.php index f9e58b266..00a81c56f 100644 --- a/libraries/kanji-encoding.lib.php +++ b/libraries/kanji-encoding.lib.php @@ -10,6 +10,7 @@ * 2002/2/22 - by Yukihiro Kawada * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/mult_submits.inc.php b/libraries/mult_submits.inc.php index 89bb4f6ac..306e00816 100644 --- a/libraries/mult_submits.inc.php +++ b/libraries/mult_submits.inc.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/mysql_charsets.lib.php b/libraries/mysql_charsets.lib.php index 518b92a4f..b0274d223 100644 --- a/libraries/mysql_charsets.lib.php +++ b/libraries/mysql_charsets.lib.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/navigation_header.inc.php b/libraries/navigation_header.inc.php index fbe649ce9..4e90938f1 100644 --- a/libraries/navigation_header.inc.php +++ b/libraries/navigation_header.inc.php @@ -4,6 +4,7 @@ * displays the pma logo, links and db and server selection in left frame * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/ob.lib.php b/libraries/ob.lib.php index 0c970f830..df1c97101 100644 --- a/libraries/ob.lib.php +++ b/libraries/ob.lib.php @@ -10,6 +10,7 @@ * Make some wrappers for the top and bottoms of our files. * * @version $Id$ + * @package phpMyAdmin */ /** diff --git a/libraries/opendocument.lib.php b/libraries/opendocument.lib.php index dfa27ffc8..b81d7594c 100644 --- a/libraries/opendocument.lib.php +++ b/libraries/opendocument.lib.php @@ -4,13 +4,14 @@ * Simple interface for creating OASIS OpenDocument files. * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; } /** - * + * Load ZIP handler. */ require_once './libraries/zip.lib.php'; diff --git a/libraries/parse_analyze.lib.php b/libraries/parse_analyze.lib.php index ad05fb0d3..59e59129e 100644 --- a/libraries/parse_analyze.lib.php +++ b/libraries/parse_analyze.lib.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/plugin_interface.lib.php b/libraries/plugin_interface.lib.php index 144dc6fbb..61226823e 100644 --- a/libraries/plugin_interface.lib.php +++ b/libraries/plugin_interface.lib.php @@ -4,6 +4,7 @@ * Generic plugin interface. * * @version $Id$ + * @package phpMyAdmin */ /** diff --git a/libraries/relation.lib.php b/libraries/relation.lib.php index 50a9b4137..d8f73b49e 100644 --- a/libraries/relation.lib.php +++ b/libraries/relation.lib.php @@ -4,6 +4,7 @@ * Set of functions used with the relation and pdf feature * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; @@ -44,7 +45,7 @@ function PMA_query_as_cu($sql, $show_error = true, $options = 0) /** * @uses $_SESSION['relation' . $GLOBALS['server']] for caching * @uses $GLOBALS['cfgRelation'] to set it - * @uses $GLOBALS['server'] to ensure we are using server-specific pmadb + * @uses $GLOBALS['server'] to ensure we are using server-specific pmadb * @uses PMA__getRelationsParam() * @uses PMA_printRelationsParamDiagnostic() * @param bool $verbose whether to print diagnostic info @@ -391,7 +392,7 @@ function PMA_getForeigners($db, $table, $column = '', $source = 'both') if (count($one_key['index_list']) == 1) { foreach ($one_key['index_list'] as $i => $field) { // If a foreign key is defined in the 'internal' source (pmadb) - // and as a native foreign key, we won't get it twice + // and as a native foreign key, we won't get it twice // if $source='both' because we use $field as key // The parser looks for a CONSTRAINT clause just before @@ -1096,7 +1097,7 @@ function PMA_getRelatives($from) /** * Rename a field in relation tables - * + * * usually called after a field in a table was renamed in tbl_alter.php * * @uses PMA_getRelationsParam() @@ -1111,7 +1112,7 @@ function PMA_getRelatives($from) function PMA_REL_renameField($db, $table, $field, $new_name) { $cfgRelation = PMA_getRelationsParam(); - + if ($cfgRelation['displaywork']) { $table_query = 'UPDATE ' . PMA_backquote($cfgRelation['db']) . '.' . PMA_backquote($cfgRelation['table_info']) . ' SET display_field = \'' . PMA_sqlAddslashes($new_name) . '\'' @@ -1140,7 +1141,7 @@ function PMA_REL_renameField($db, $table, $field, $new_name) /** * Create a PDF page - * + * * @uses $GLOBALS['strNoDescription'] * @uses PMA_backquote() * @uses $GLOBALS['cfgRelation']['db'] @@ -1152,7 +1153,7 @@ function PMA_REL_renameField($db, $table, $field, $new_name) * @param array $cfgRelation * @param string $db * @param string $query_default_option - * @return string $pdf_page_number + * @return string $pdf_page_number */ function PMA_REL_create_page($newpage, $cfgRelation, $db, $query_default_option) { if (! isset($newpage) || $newpage == '') { diff --git a/libraries/relation_cleanup.lib.php b/libraries/relation_cleanup.lib.php index 391fd6af7..60bc6fd14 100644 --- a/libraries/relation_cleanup.lib.php +++ b/libraries/relation_cleanup.lib.php @@ -4,6 +4,7 @@ * Set of functions used for cleaning up phpMyAdmin tables * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; @@ -28,7 +29,7 @@ require_once './libraries/relation.lib.php'; function PMA_relationsCleanupColumn($db, $table, $column) { $cfgRelation = PMA_getRelationsParam(); - + if ($cfgRelation['commwork']) { $remove_query = 'DELETE FROM ' . PMA_backquote($cfgRelation['db']) . '.' . PMA_backquote($cfgRelation['column_info']) . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' diff --git a/libraries/sanitizing.lib.php b/libraries/sanitizing.lib.php index 858ce487a..2b54bf197 100644 --- a/libraries/sanitizing.lib.php +++ b/libraries/sanitizing.lib.php @@ -1,9 +1,10 @@ ' at the moment.) * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; @@ -1150,7 +1151,7 @@ if (! defined('PMA_MINIMUM_COMMON')) { break; } // end switch - if ($subresult['querytype'] == 'SELECT' + if ($subresult['querytype'] == 'SELECT' && ! $in_group_concat && ! ($seen_subquery && $arr[$i - 1]['type'] == 'punct_bracket_close_round')) { if (!$seen_from) { @@ -1705,7 +1706,7 @@ if (! defined('PMA_MINIMUM_COMMON')) { $limit_clause .= $sep; } } - if ($after_limit && $seen_limit) { + if ($after_limit && $seen_limit) { $section_after_limit .= $arr[$i]['data'] . $sep; } diff --git a/libraries/sqlvalidator.class.php b/libraries/sqlvalidator.class.php index 24e9c05d4..c44728e18 100644 --- a/libraries/sqlvalidator.class.php +++ b/libraries/sqlvalidator.class.php @@ -1,32 +1,33 @@ -* http://www.orbis-terrarum.net/?l=people.robbat2 -* -* All data is transported over HTTP-SOAP -* And uses the PEAR SOAP Module -* -* Install instructions for PEAR SOAP -* Make sure you have a really recent PHP with PEAR support -* run this: "pear install Mail_Mime Net_DIME SOAP" -* -* If you got this file from somewhere other than phpMyAdmin -* please be aware that the latest copy will always be in the -* phpMyAdmin subversion tree as -* $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/libraries/sqlvalidator.class.php $ -* -* This code that also used to depend on the PHP overload module, but that has been -* removed now. -* -* @access public -* -* @author Robin Johnson -* -* @version $Id$ -*/ + * PHP interface to MimerSQL Validator + * + * Copyright 2002, 2003 Robin Johnson + * http://www.orbis-terrarum.net/?l=people.robbat2 + * + * All data is transported over HTTP-SOAP + * And uses the PEAR SOAP Module + * + * Install instructions for PEAR SOAP + * Make sure you have a really recent PHP with PEAR support + * run this: "pear install Mail_Mime Net_DIME SOAP" + * + * If you got this file from somewhere other than phpMyAdmin + * please be aware that the latest copy will always be in the + * phpMyAdmin subversion tree as + * $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/libraries/sqlvalidator.class.php $ + * + * This code that also used to depend on the PHP overload module, but that has been + * removed now. + * + * @access public + * + * @author Robin Johnson + * + * @version $Id$ + * @package phpMyAdmin + */ if (! defined('PHPMYADMIN')) { exit; } diff --git a/libraries/sqlvalidator.lib.php b/libraries/sqlvalidator.lib.php index 4c75f3d0e..533dfdb44 100644 --- a/libraries/sqlvalidator.lib.php +++ b/libraries/sqlvalidator.lib.php @@ -28,6 +28,7 @@ * Also set a username and password if you have a private one * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/string.lib.php b/libraries/string.lib.php index 8ca51c9ed..3b38383bd 100644 --- a/libraries/string.lib.php +++ b/libraries/string.lib.php @@ -19,6 +19,7 @@ * @uses mb_internal_encoding() * @uses defined() * @todo a .lib filename should not have code in main(), split or rename file + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/transformations/global.inc.php b/libraries/transformations/global.inc.php index 6648b7b31..1e662ee6d 100644 --- a/libraries/transformations/global.inc.php +++ b/libraries/transformations/global.inc.php @@ -20,6 +20,7 @@ * Please provide a comment for your function, what it does and what parameters are available. * * @version $Id$ + * @package phpMyAdmin-Transformation */ /** diff --git a/libraries/zip.lib.php b/libraries/zip.lib.php index 2d377cc08..6ba8d48bf 100644 --- a/libraries/zip.lib.php +++ b/libraries/zip.lib.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ /** @@ -23,6 +24,7 @@ * Official ZIP file format: http://www.pkware.com/appnote.txt * * @access public + * @package phpMyAdmin */ class zipfile { diff --git a/license.php b/license.php index 91927f41a..0f03fcdbb 100644 --- a/license.php +++ b/license.php @@ -7,6 +7,7 @@ * that would read any file using a GET parameter, it would open a hole * * @version $Id$ + * @package phpMyAdmin */ /** diff --git a/main.php b/main.php index cc41fca50..12ce9a7c3 100644 --- a/main.php +++ b/main.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ /** diff --git a/pdf_pages.php b/pdf_pages.php index 7457aca59..ed61de2b5 100644 --- a/pdf_pages.php +++ b/pdf_pages.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ /** @@ -74,7 +75,7 @@ if ($cfgRelation['pdfwork']) { } break; case 'createpage': - $pdf_page_number = PMA_REL_create_page($newpage, $cfgRelation, $db, $query_default_option); + $pdf_page_number = PMA_REL_create_page($newpage, $cfgRelation, $db, $query_default_option); // A u t o m a t i c l a y o u t // ================================ @@ -85,10 +86,10 @@ if ($cfgRelation['pdfwork']) { if (isset($auto_layout_foreign)) { // get the tables list $tables = PMA_DBI_get_tables_full($db); - // find the ones who support FOREIGN KEY; it's not + // find the ones who support FOREIGN KEY; it's not // important that we group together InnoDB tables // and PBXT tables, as this logic is just to put - // the tables on the layout, not to determine relations + // the tables on the layout, not to determine relations $foreignkey_tables = array(); foreach($tables as $table_name => $table_properties) { if (PMA_foreignkey_supported($table_properties['ENGINE'])) { diff --git a/pdf_schema.php b/pdf_schema.php index 56d82cbb9..d06185bf8 100644 --- a/pdf_schema.php +++ b/pdf_schema.php @@ -48,6 +48,7 @@ require_once './libraries/tcpdf/tcpdf.php'; * * @access public * @see FPDF + * @package phpMyAdmin */ class PMA_PDF extends TCPDF { /** @@ -496,6 +497,7 @@ class PMA_PDF extends TCPDF { * * @access private * @see PMA_RT + * @package phpMyAdmin */ class PMA_RT_Table { /** @@ -680,6 +682,7 @@ class PMA_RT_Table { * * @access private * @see PMA_RT + * @package phpMyAdmin */ class PMA_RT_Relation { /** @@ -806,6 +809,7 @@ class PMA_RT_Relation { * * @access public * @see PMA_PDF + * @package phpMyAdmin */ class PMA_RT { /** diff --git a/phpinfo.php b/phpinfo.php index e740315b1..043db9563 100644 --- a/phpinfo.php +++ b/phpinfo.php @@ -1,8 +1,9 @@ diff --git a/sql.php b/sql.php index d556ab61d..e314660bd 100644 --- a/sql.php +++ b/sql.php @@ -4,6 +4,7 @@ * @todo we must handle the case if sql.php is called directly with a query * what returns 0 rows - to prevent cyclic redirects or includes * @version $Id$ + * @package phpMyAdmin */ /** diff --git a/test/Environment_test.php b/test/Environment_test.php index e3775f16a..7bc16e75e 100644 --- a/test/Environment_test.php +++ b/test/Environment_test.php @@ -12,6 +12,9 @@ */ require_once 'PHPUnit/Framework.php'; +/** + * @package phpMyAdmin-test + */ class Environment_test extends PHPUnit_Framework_TestCase { public function testPhpVersion() diff --git a/test/FailTest.php b/test/FailTest.php index e11ca4af8..0cecf6934 100644 --- a/test/FailTest.php +++ b/test/FailTest.php @@ -12,6 +12,9 @@ */ require_once 'PHPUnit/Framework.php'; +/** + * @package phpMyAdmin-test + */ class FailTest extends PHPUnit_Framework_TestCase { public function testFail() diff --git a/test/PMA_STR_sub_test.php b/test/PMA_STR_sub_test.php index 0ed9de428..e29426e93 100644 --- a/test/PMA_STR_sub_test.php +++ b/test/PMA_STR_sub_test.php @@ -32,6 +32,9 @@ $GLOBALS['charset'] = 'UTF-8'; require_once './libraries/string.lib.php'; +/** + * @package phpMyAdmin-test + */ class PMA_STR_sub_test extends PHPUnit_Framework_TestCase { public function testMultiByte() diff --git a/test/PMA_blowfish_test.php b/test/PMA_blowfish_test.php index 4bb9d0c0a..307d966ab 100644 --- a/test/PMA_blowfish_test.php +++ b/test/PMA_blowfish_test.php @@ -20,6 +20,7 @@ require_once './libraries/blowfish.php'; /** * Test java script escaping. * + * @package phpMyAdmin-test */ class PMA_blowfish_test extends PHPUnit_Framework_TestCase { @@ -27,7 +28,7 @@ class PMA_blowfish_test extends PHPUnit_Framework_TestCase { $secret = '$%ÄüfuDFRR'; $string = '12345678'; - $this->assertEquals($string, + $this->assertEquals($string, PMA_blowfish_decrypt(PMA_blowfish_encrypt($string, $secret), $secret)); } @@ -35,7 +36,7 @@ class PMA_blowfish_test extends PHPUnit_Framework_TestCase { $secret = '$%ÄüfuDFRR'; $string = 'abcDEF012!"§$%&/()=?`´"\',.;:-_#+*~öäüÖÄÜ^°²³'; - $this->assertEquals($string, + $this->assertEquals($string, PMA_blowfish_decrypt(PMA_blowfish_encrypt($string, $secret), $secret)); } diff --git a/test/PMA_escapeJsString_test.php b/test/PMA_escapeJsString_test.php index b4d70ed9f..350ce371c 100644 --- a/test/PMA_escapeJsString_test.php +++ b/test/PMA_escapeJsString_test.php @@ -21,6 +21,7 @@ require_once './libraries/js_escape.lib.php'; /** * Test java script escaping. * + * @package phpMyAdmin-test */ class PMA_escapeJsString_test extends PHPUnit_Framework_TestCase { diff --git a/test/PMA_escapeMySqlWildcards_test.php b/test/PMA_escapeMySqlWildcards_test.php index 289067c4b..229e0161c 100644 --- a/test/PMA_escapeMySqlWildcards_test.php +++ b/test/PMA_escapeMySqlWildcards_test.php @@ -21,12 +21,13 @@ require_once './libraries/common.lib.php'; /** * Test MySQL escaping. * + * @package phpMyAdmin-test */ class PMA_escapeMySqlWildcards_test extends PHPUnit_Framework_TestCase { - /** - * PMA_escape_mysql_wildcards tests + /** + * PMA_escape_mysql_wildcards tests */ public function testEscape_1() @@ -54,8 +55,8 @@ class PMA_escapeMySqlWildcards_test extends PHPUnit_Framework_TestCase $this->assertEquals('\\\_\\\%', PMA_escape_mysql_wildcards('\_\%')); } - /** - * PMA_unescape_mysql_wildcards tests + /** + * PMA_unescape_mysql_wildcards tests */ public function testUnEscape_1() @@ -77,7 +78,7 @@ class PMA_escapeMySqlWildcards_test extends PHPUnit_Framework_TestCase { $this->assertEquals('%_', PMA_unescape_mysql_wildcards('%\_')); } - + public function testUnEscape_5() { $this->assertEquals('\%\_', PMA_unescape_mysql_wildcards('\\\%\\\_')); diff --git a/test/PMA_generateCommonUrl_test.php b/test/PMA_generateCommonUrl_test.php index 3c6115557..2d6957496 100644 --- a/test/PMA_generateCommonUrl_test.php +++ b/test/PMA_generateCommonUrl_test.php @@ -14,6 +14,9 @@ require_once 'PHPUnit/Framework.php'; require_once './libraries/core.lib.php'; require_once './libraries/url_generating.lib.php'; +/** + * @package phpMyAdmin-test + */ class PMA_generate_common_url_test extends PHPUnit_Framework_TestCase { public function setUp() diff --git a/test/PMA_get_real_size_test.php b/test/PMA_get_real_size_test.php index 71ca5248e..baad230eb 100644 --- a/test/PMA_get_real_size_test.php +++ b/test/PMA_get_real_size_test.php @@ -13,6 +13,9 @@ require_once 'PHPUnit/Framework.php'; require_once './libraries/core.lib.php'; +/** + * @package phpMyAdmin-test + */ class PMA_get_real_size_test extends PHPUnit_Framework_TestCase { public function testNull() diff --git a/test/PMA_isValid_test.php b/test/PMA_isValid_test.php index e33deaed3..fd561ff5d 100644 --- a/test/PMA_isValid_test.php +++ b/test/PMA_isValid_test.php @@ -13,6 +13,9 @@ require_once 'PHPUnit/Framework.php'; require_once './libraries/core.lib.php'; +/** + * @package phpMyAdmin-test + */ class PMA_isValid_test extends PHPUnit_Framework_TestCase { public function testVarNotSetAfterTest() diff --git a/test/PMA_pow_test.php b/test/PMA_pow_test.php index 15c0182e5..e9b9441b5 100644 --- a/test/PMA_pow_test.php +++ b/test/PMA_pow_test.php @@ -13,6 +13,9 @@ require_once 'PHPUnit/Framework.php'; require_once './libraries/common.lib.php'; +/** + * @package phpMyAdmin-test + */ class PMA_pow_test extends PHPUnit_Framework_TestCase { public function testIntOverflow() diff --git a/test/PMA_sanitize_test.php b/test/PMA_sanitize_test.php index 25168c8f4..396daa604 100644 --- a/test/PMA_sanitize_test.php +++ b/test/PMA_sanitize_test.php @@ -13,6 +13,9 @@ require_once 'PHPUnit/Framework.php'; require_once './libraries/sanitizing.lib.php'; +/** + * @package phpMyAdmin-test + */ class PMA_sanitize_test extends PHPUnit_Framework_TestCase { public function testXssInHref() diff --git a/test/PMA_transformation_getOptions_test.php b/test/PMA_transformation_getOptions_test.php index dba3f6b09..b47812df5 100644 --- a/test/PMA_transformation_getOptions_test.php +++ b/test/PMA_transformation_getOptions_test.php @@ -13,6 +13,9 @@ require_once 'PHPUnit/Framework.php'; require_once './libraries/transformations.lib.php'; +/** + * @package phpMyAdmin-test + */ class PMA_transformation_getOptions_test extends PHPUnit_Framework_TestCase { public function testDefault() diff --git a/view_create.php b/view_create.php index 5eb63b927..b3b06a0f7 100644 --- a/view_create.php +++ b/view_create.php @@ -6,6 +6,7 @@ * @todo js error when view name is empty (strFormEmpty) * @todo (also validate if js is disabled, after form submission?) * @version $Id$ + * @package phpMyAdmin */ /** diff --git a/webapp.php b/webapp.php index 9c21162fb..db65ad87f 100644 --- a/webapp.php +++ b/webapp.php @@ -3,6 +3,7 @@ * generate an WebApp file for Prism / WebRunner * * @see http://wiki.mozilla.org/Prism + * @package phpMyAdmin */ /**