Skip to content

Commit

Permalink
Move tbl_properties{.inc,_links,_table_info}.php to libraries folder …
Browse files Browse the repository at this point in the history
…as it does not require direct access.
  • Loading branch information
nijel committed Nov 24, 2005
1 parent 8d7014c commit c40b663
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion config.default.php
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@

// Attributes
// Note: the "ON UPDATE CURRENT_TIMESTAMP" attribute is added dynamically
// for MySQL >= 4.1.2, in tbl_properties.inc.php
// for MySQL >= 4.1.2, in libraries/tbl_properties.inc.php

$cfg['AttributeTypes'] = array(
'',
Expand Down
4 changes: 2 additions & 2 deletions header.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
's_db.png' );

if (!empty($GLOBALS['table'])) {
require_once('./tbl_properties_table_info.php');
require_once('./libraries/tbl_properties_table_info.inc.php');

echo $separator;
printf( $item,
Expand All @@ -187,7 +187,7 @@

/**
* Displays table comment
* @uses $show_comment from tbl_properties_table_info.php
* @uses $show_comment from libraries/tbl_properties_table_info.inc.php
* @uses $GLOBALS['avoid_show_comment'] from tbl_relation.php
*/
if (!empty($show_comment) && !isset($GLOBALS['avoid_show_comment'])) {
Expand Down
2 changes: 1 addition & 1 deletion libraries/mult_submits.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
if (!empty($table)) {
require('./tbl_properties_common.php');
$url_query .= '&goto=tbl_properties.php&back=tbl_properties.php';
require('./tbl_properties_table_info.php');
require('./libraries/tbl_properties_table_info.inc.php');
}
elseif (!empty($db)) {
require('./libraries/db_details_common.inc.php');
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -691,8 +691,8 @@
if (!empty($table)) {
require('./tbl_properties_common.php');
$url_query .= '&goto=tbl_properties.php&back=tbl_properties.php';
require('./tbl_properties_table_info.php');
require('./tbl_properties_links.php');
require('./libraries/tbl_properties_table_info.inc.php');
require('./libraries/tbl_properties_links.inc.php');
}
elseif (!empty($db)) {
require('./libraries/db_details_common.inc.php');
Expand Down
8 changes: 4 additions & 4 deletions tbl_addfield.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
PMA_mysqlDie('', '', '', $err_url, FALSE);
// garvin: An error happened while inserting/updating a table definition.
// to prevent total loss of that data, we embed the form once again.
// The variable $regenerate will be used to restore data in tbl_properties.inc.php
// The variable $regenerate will be used to restore data in libraries/tbl_properties.inc.php
$num_fields = $orig_num_fields;
if (isset($orig_after_field)) {
$after_field = $orig_after_field;
Expand All @@ -212,17 +212,17 @@
* Gets tables informations
*/
require_once('./tbl_properties_common.php');
require_once('./tbl_properties_table_info.php');
require_once('./libraries/tbl_properties_table_info.inc.php');
/**
* Displays top menu links
*/
$active_page = 'tbl_properties_structure.php';
require_once('./tbl_properties_links.php');
require_once('./libraries/tbl_properties_links.inc.php');
/**
* Display the form
*/
$action = 'tbl_addfield.php';
require_once('./tbl_properties.inc.php');
require_once('./libraries/tbl_properties.inc.php');

// Diplays the footer
echo "\n";
Expand Down
8 changes: 4 additions & 4 deletions tbl_alter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
* Gets tables informations
*/
require_once('./tbl_properties_common.php');
require_once('./tbl_properties_table_info.php');
require_once('./libraries/tbl_properties_table_info.inc.php');
/**
* Displays top menu links
*/
$active_page = 'tbl_properties_structure.php';
// I don't see the need to display the links here, they will be displayed later
//require('./tbl_properties_links.php');
//require('./libraries/tbl_properties_links.inc.php');


/**
Expand Down Expand Up @@ -142,7 +142,7 @@
PMA_mysqlDie('', '', '', $err_url, FALSE);
// garvin: An error happened while inserting/updating a table definition.
// to prevent total loss of that data, we embed the form once again.
// The variable $regenerate will be used to restore data in tbl_properties.inc.php
// The variable $regenerate will be used to restore data in libraries/tbl_properties.inc.php
if (isset($orig_field)) {
$field = $orig_field;
}
Expand Down Expand Up @@ -194,7 +194,7 @@
0, 1 );
$analyzed_sql = PMA_SQP_analyze( PMA_SQP_parse( $show_create_table ) );

require('./tbl_properties.inc.php');
require('./libraries/tbl_properties.inc.php');
}


Expand Down
4 changes: 2 additions & 2 deletions tbl_change.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
$url_query = PMA_generate_common_url($db, $table)
. '&goto=tbl_properties.php';

require_once('./tbl_properties_table_info.php');
require_once('./libraries/tbl_properties_table_info.inc.php');

/* Get comments */

Expand All @@ -92,7 +92,7 @@
/**
* Displays top menu links
*/
require_once('./tbl_properties_links.php');
require_once('./libraries/tbl_properties_links.inc.php');


/**
Expand Down
4 changes: 2 additions & 2 deletions tbl_create.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
PMA_mysqlDie('', '', '', $err_url, FALSE);
// garvin: An error happened while inserting/updating a table definition.
// to prevent total loss of that data, we embed the form once again.
// The variable $regenerate will be used to restore data in tbl_properties.inc.php
// The variable $regenerate will be used to restore data in libraries/tbl_properties.inc.php
$num_fields = $orig_num_fields;
$regenerate = TRUE;
}
Expand Down Expand Up @@ -228,7 +228,7 @@
// Table name and number of fields are valid -> show the form
else {
$action = 'tbl_create.php';
require('./tbl_properties.inc.php');
require('./libraries/tbl_properties.inc.php');
// Displays the footer
echo "\n";
require_once('./footer.inc.php');
Expand Down
4 changes: 2 additions & 2 deletions tbl_import.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
* Gets tables informations and displays top links
*/
require_once('./tbl_properties_common.php');
require_once('./tbl_properties_table_info.php');
require_once('./libraries/tbl_properties_table_info.inc.php');
/**
* Displays top menu links
*/
require_once('./tbl_properties_links.php');
require_once('./libraries/tbl_properties_links.inc.php');

$import_type = 'table';
require_once('./libraries/display_import.lib.php');
Expand Down
4 changes: 2 additions & 2 deletions tbl_properties.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
/**
* Get table information
*/
require_once('./tbl_properties_table_info.php');
require_once('./libraries/tbl_properties_table_info.inc.php');

/**
* Displays top menu links
*/
require_once('./tbl_properties_links.php');
require_once('./libraries/tbl_properties_links.inc.php');

/**
* Query box, bookmark, insert data from textfile
Expand Down
4 changes: 2 additions & 2 deletions tbl_properties_export.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
require_once('./tbl_properties_common.php');
$url_query .= '&goto=tbl_properties_export.php&back=tbl_properties_export.php';
require_once('./tbl_properties_table_info.php');
require_once('./libraries/tbl_properties_table_info.inc.php');
?>

<!-- Dump of a table -->
Expand Down Expand Up @@ -104,7 +104,7 @@
/**
* Displays top menu links
*/
require('./tbl_properties_links.php');
require('./libraries/tbl_properties_links.inc.php');

$export_type = 'table';
require_once('./libraries/display_export.lib.php');
Expand Down
6 changes: 3 additions & 3 deletions tbl_properties_operations.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
}

if ($reread_info) {
require('./tbl_properties_table_info.php');
require('./libraries/tbl_properties_table_info.inc.php');
}
unset($reread_info);

Expand All @@ -99,12 +99,12 @@
/**
* Gets tables informations
*/
require_once('./tbl_properties_table_info.php');
require_once('./libraries/tbl_properties_table_info.inc.php');

/**
* Displays top menu links
*/
require_once('./tbl_properties_links.php');
require_once('./libraries/tbl_properties_links.inc.php');

/**
* Get columns names
Expand Down
8 changes: 4 additions & 4 deletions tbl_properties_structure.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
/**
* Gets tables informations
*/
require_once('./tbl_properties_table_info.php');
require_once('./libraries/tbl_properties_table_info.inc.php');

/**
* Show result of multi submit operation
Expand All @@ -57,7 +57,7 @@
/**
* Displays top menu links
*/
require_once('./tbl_properties_links.php');
require_once('./libraries/tbl_properties_links.inc.php');

// 2. Gets table keys and retains them
$result = PMA_DBI_query('SHOW INDEX FROM ' . PMA_backquote($table) . ';');
Expand Down Expand Up @@ -508,7 +508,7 @@
<?php
if ( ! $tbl_is_view && ! $db_is_information_schema ) {
// if internal relations are available, or the table type is INNODB
// ($tbl_type comes from tbl_properties_table_info.php)
// ($tbl_type comes from libraries/tbl_properties_table_info.inc.php)

if ($cfg['Server']['relation'] || $tbl_type=="INNODB") {
?>
Expand Down Expand Up @@ -560,7 +560,7 @@
* links again
*/
if ($fields_cnt > 20) {
require('./tbl_properties_links.php');
require('./libraries/tbl_properties_links.inc.php');
} // end if ($fields_cnt > 20)
echo "\n\n";

Expand Down
6 changes: 3 additions & 3 deletions tbl_relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
/**
* Gets tables informations
*/
require_once('./tbl_properties_table_info.php');
require_once('./libraries/tbl_properties_table_info.inc.php');

// Note: in tbl_properties_links.php we get and display the table comment.
// Note: in libraries/tbl_properties_links.inc.php we get and display the table comment.
// For InnoDB, this comment contains the REFER information but any update
// has not been done yet (will be done in tbl_relation.php later).
$avoid_show_comment = TRUE;

/**
* Displays top menu links
*/
require_once('./tbl_properties_links.php');
require_once('./libraries/tbl_properties_links.inc.php');

require_once('./libraries/relation.lib.php');

Expand Down
4 changes: 2 additions & 2 deletions tbl_select.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
/**
* Gets tables informations
*/
require_once('./tbl_properties_table_info.php');
require_once('./libraries/tbl_properties_table_info.inc.php');

/**
* Displays top menu links
*/
require_once('./tbl_properties_links.php');
require_once('./libraries/tbl_properties_links.inc.php');

if (!isset($goto)) {
$goto = $GLOBALS['cfg']['DefaultTabTable'];
Expand Down

0 comments on commit c40b663

Please sign in to comment.