diff --git a/libraries/Theme.class.php b/libraries/Theme.class.php index 7f8f22210..30cfff224 100644 --- a/libraries/Theme.class.php +++ b/libraries/Theme.class.php @@ -4,6 +4,7 @@ * hold PMA_Theme class * * @version $Id$ + * @package phpMyAdmin */ /** @@ -14,6 +15,7 @@ * @todo make css optionally replacing 'parent' css or extending it (by appending at the end) * @todo add an optional global css file - which will be used for both frames * + * @package phpMyAdmin */ class PMA_Theme { /** diff --git a/libraries/Theme_Manager.class.php b/libraries/Theme_Manager.class.php index 194cab24f..418f40b5a 100644 --- a/libraries/Theme_Manager.class.php +++ b/libraries/Theme_Manager.class.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ /** @@ -12,6 +13,7 @@ require_once './libraries/Theme.class.php'; /** * + * @package phpMyAdmin */ class PMA_Theme_Manager { diff --git a/libraries/tbl_info.inc.php b/libraries/tbl_info.inc.php index 11f91c1f9..d4c10935e 100644 --- a/libraries/tbl_info.inc.php +++ b/libraries/tbl_info.inc.php @@ -7,6 +7,7 @@ * @todo this should be recoded as functions, to avoid messing with global variables * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/tbl_links.inc.php b/libraries/tbl_links.inc.php index 362ba08ff..2212ae1d3 100644 --- a/libraries/tbl_links.inc.php +++ b/libraries/tbl_links.inc.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/tbl_triggers.lib.php b/libraries/tbl_triggers.lib.php index 14f290653..3055688cd 100644 --- a/libraries/tbl_triggers.lib.php +++ b/libraries/tbl_triggers.lib.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ if (! defined('PHPMYADMIN')) { exit; diff --git a/libraries/transformations.lib.php b/libraries/transformations.lib.php index edd9652d0..b966395ef 100644 --- a/libraries/transformations.lib.php +++ b/libraries/transformations.lib.php @@ -4,6 +4,7 @@ * Set of functions used with the relation and pdf feature * * @version $Id$ + * @package phpMyAdmin */ /** diff --git a/libraries/url_generating.lib.php b/libraries/url_generating.lib.php index 78c03dc49..659c63e2a 100644 --- a/libraries/url_generating.lib.php +++ b/libraries/url_generating.lib.php @@ -4,6 +4,7 @@ * URL/hidden inputs generating. * * @version $Id$ + * @package phpMyAdmin */ /** @@ -124,7 +125,7 @@ function PMA_getHiddenFields($values, $pre = '') if (is_array($value)) { $fields .= PMA_getHiddenFields($value, $name); } else { - // do not generate an ending "\n" because + // do not generate an ending "\n" because // PMA_generate_common_hidden_inputs() is sometimes called // from a JS document.write() $fields .= ' $vrow) { $data = $field['Default']; } if ($field['True_Type'] == 'bit') { - $special_chars = PMA_printable_bit_value($field['Default'], $extracted_fieldspec['spec_in_brackets']); + $special_chars = PMA_printable_bit_value($field['Default'], $extracted_fieldspec['spec_in_brackets']); } else { $special_chars = htmlspecialchars($field['Default']); } @@ -925,7 +926,7 @@ foreach ($rows as $row_id => $vrow) { if (!empty($bs_tables) && strlen($db) > 0) { $bs_tables = $bs_tables[$db]; - + // check if reference to BLOBStreaming tables exists if (isset($bs_tables)) { diff --git a/tbl_create.php b/tbl_create.php index a8404fae2..c86934c85 100644 --- a/tbl_create.php +++ b/tbl_create.php @@ -32,6 +32,7 @@ * @uses sprintf() * @uses htmlspecialchars() * @version $Id$ + * @package phpMyAdmin */ /** @@ -99,7 +100,7 @@ if (isset($_REQUEST['do_save_data'])) { } } // end if } // end for - + // Builds the fields creation statements for ($i = 0; $i < $field_cnt; $i++) { // '0' is also empty for php :-( @@ -108,25 +109,25 @@ if (isset($_REQUEST['do_save_data'])) { } $query = PMA_Table::generateFieldSpec( - $_REQUEST['field_name'][$i], + $_REQUEST['field_name'][$i], $_REQUEST['field_type'][$i], - $_REQUEST['field_length'][$i], + $_REQUEST['field_length'][$i], $_REQUEST['field_attribute'][$i], - isset($_REQUEST['field_collation'][$i]) - ? $_REQUEST['field_collation'][$i] + isset($_REQUEST['field_collation'][$i]) + ? $_REQUEST['field_collation'][$i] : '', - isset($_REQUEST['field_null'][$i]) - ? $_REQUEST['field_null'][$i] + isset($_REQUEST['field_null'][$i]) + ? $_REQUEST['field_null'][$i] : 'NOT NULL', - $_REQUEST['field_default_type'][$i], + $_REQUEST['field_default_type'][$i], $_REQUEST['field_default_value'][$i], isset($_REQUEST['field_extra'][$i]) ? $_REQUEST['field_extra'][$i] : false, - isset($_REQUEST['field_comments'][$i]) - ? $_REQUEST['field_comments'][$i] + isset($_REQUEST['field_comments'][$i]) + ? $_REQUEST['field_comments'][$i] : '', - $field_primary, + $field_primary, $i); $query .= ', '; diff --git a/tbl_export.php b/tbl_export.php index d86942eeb..ed13551cf 100644 --- a/tbl_export.php +++ b/tbl_export.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ /** diff --git a/tbl_import.php b/tbl_import.php index 242c91146..a0500fd07 100644 --- a/tbl_import.php +++ b/tbl_import.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin */ /** diff --git a/tbl_indexes.php b/tbl_indexes.php index 899bd9952..d1500f51d 100644 --- a/tbl_indexes.php +++ b/tbl_indexes.php @@ -4,6 +4,7 @@ * Displays index edit/creation form and handles it * * @version $Id$ + * @package phpMyAdmin */ /** @@ -44,7 +45,7 @@ if (isset($_REQUEST['index'])) { */ if (isset($_REQUEST['do_save_data'])) { $error = false; - + // $sql_query is the one displayed in the query box $sql_query = 'ALTER TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table); @@ -77,7 +78,7 @@ if (isset($_REQUEST['do_save_data'])) { . ($index->getName() ? PMA_backquote($index->getName()) : ''); break; } // end switch - + $index_fields = array(); foreach ($index->getColumns() as $key => $column) { $index_fields[$key] = PMA_backquote($column->getName()); @@ -85,18 +86,18 @@ if (isset($_REQUEST['do_save_data'])) { $index_fields[$key] .= '(' . $column->getSubPart() . ')'; } } // end while - + if (empty($index_fields)){ $error = PMA_Message::error('strNoIndexPartsDefined'); } else { $sql_query .= ' (' . implode(', ', $index_fields) . ')'; } - + if (! $error) { PMA_DBI_query($sql_query); $message = PMA_Message::success('strTableAlteredSuccessfully'); $message->addParam($table); - + $active_page = 'tbl_structure.php'; require './tbl_structure.php'; exit; @@ -119,7 +120,7 @@ require_once './libraries/tbl_links.inc.php'; if (isset($_REQUEST['index']) && is_array($_REQUEST['index'])) { // coming already from form - $add_fields = + $add_fields = count($_REQUEST['index']['columns']['names']) - $index->getColumnCount(); if (isset($_REQUEST['add_fields'])) { $add_fields += $_REQUEST['added_fields']; @@ -155,8 +156,8 @@ echo PMA_generate_common_hidden_inputs($form_params);