Move tbl_properties{.inc,_links,_table_info}.php to libraries folder as it does not require direct access.

This commit is contained in:
Michal Čihař
2005-11-24 08:55:33 +00:00
parent 8d7014c92c
commit c40b663969
18 changed files with 36 additions and 36 deletions

View File

@@ -640,7 +640,7 @@ $cfg['ColumnTypes'] = array(
// Attributes // Attributes
// Note: the "ON UPDATE CURRENT_TIMESTAMP" attribute is added dynamically // 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( $cfg['AttributeTypes'] = array(
'', '',

View File

@@ -175,7 +175,7 @@ if (empty($GLOBALS['is_header_sent'])) {
's_db.png' ); 's_db.png' );
if (!empty($GLOBALS['table'])) { if (!empty($GLOBALS['table'])) {
require_once('./tbl_properties_table_info.php'); require_once('./libraries/tbl_properties_table_info.inc.php');
echo $separator; echo $separator;
printf( $item, printf( $item,
@@ -187,7 +187,7 @@ if (empty($GLOBALS['is_header_sent'])) {
/** /**
* Displays table comment * 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 * @uses $GLOBALS['avoid_show_comment'] from tbl_relation.php
*/ */
if (!empty($show_comment) && !isset($GLOBALS['avoid_show_comment'])) { if (!empty($show_comment) && !isset($GLOBALS['avoid_show_comment'])) {

View File

@@ -129,7 +129,7 @@ if ( !empty($submit_mult) && !empty($what)) {
if (!empty($table)) { if (!empty($table)) {
require('./tbl_properties_common.php'); require('./tbl_properties_common.php');
$url_query .= '&goto=tbl_properties.php&back=tbl_properties.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)) { elseif (!empty($db)) {
require('./libraries/db_details_common.inc.php'); require('./libraries/db_details_common.inc.php');

View File

@@ -691,8 +691,8 @@ else {
if (!empty($table)) { if (!empty($table)) {
require('./tbl_properties_common.php'); require('./tbl_properties_common.php');
$url_query .= '&goto=tbl_properties.php&back=tbl_properties.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');
require('./tbl_properties_links.php'); require('./libraries/tbl_properties_links.inc.php');
} }
elseif (!empty($db)) { elseif (!empty($db)) {
require('./libraries/db_details_common.inc.php'); require('./libraries/db_details_common.inc.php');

View File

@@ -192,7 +192,7 @@ if (isset($submit_num_fields)) {
PMA_mysqlDie('', '', '', $err_url, FALSE); PMA_mysqlDie('', '', '', $err_url, FALSE);
// garvin: An error happened while inserting/updating a table definition. // garvin: An error happened while inserting/updating a table definition.
// to prevent total loss of that data, we embed the form once again. // 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; $num_fields = $orig_num_fields;
if (isset($orig_after_field)) { if (isset($orig_after_field)) {
$after_field = $orig_after_field; $after_field = $orig_after_field;
@@ -212,17 +212,17 @@ if ($abort == FALSE) {
* Gets tables informations * Gets tables informations
*/ */
require_once('./tbl_properties_common.php'); 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 * Displays top menu links
*/ */
$active_page = 'tbl_properties_structure.php'; $active_page = 'tbl_properties_structure.php';
require_once('./tbl_properties_links.php'); require_once('./libraries/tbl_properties_links.inc.php');
/** /**
* Display the form * Display the form
*/ */
$action = 'tbl_addfield.php'; $action = 'tbl_addfield.php';
require_once('./tbl_properties.inc.php'); require_once('./libraries/tbl_properties.inc.php');
// Diplays the footer // Diplays the footer
echo "\n"; echo "\n";

View File

@@ -17,13 +17,13 @@ PMA_checkParameters(array('db', 'table'));
* Gets tables informations * Gets tables informations
*/ */
require_once('./tbl_properties_common.php'); 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 * Displays top menu links
*/ */
$active_page = 'tbl_properties_structure.php'; $active_page = 'tbl_properties_structure.php';
// I don't see the need to display the links here, they will be displayed later // 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');
/** /**
@@ -142,7 +142,7 @@ if (isset($do_save_data)) {
PMA_mysqlDie('', '', '', $err_url, FALSE); PMA_mysqlDie('', '', '', $err_url, FALSE);
// garvin: An error happened while inserting/updating a table definition. // garvin: An error happened while inserting/updating a table definition.
// to prevent total loss of that data, we embed the form once again. // 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)) { if (isset($orig_field)) {
$field = $orig_field; $field = $orig_field;
} }
@@ -194,7 +194,7 @@ if ($abort == FALSE) {
0, 1 ); 0, 1 );
$analyzed_sql = PMA_SQP_analyze( PMA_SQP_parse( $show_create_table ) ); $analyzed_sql = PMA_SQP_analyze( PMA_SQP_parse( $show_create_table ) );
require('./tbl_properties.inc.php'); require('./libraries/tbl_properties.inc.php');
} }

View File

@@ -72,7 +72,7 @@ require_once('./libraries/db_table_exists.lib.php');
$url_query = PMA_generate_common_url($db, $table) $url_query = PMA_generate_common_url($db, $table)
. '&goto=tbl_properties.php'; . '&goto=tbl_properties.php';
require_once('./tbl_properties_table_info.php'); require_once('./libraries/tbl_properties_table_info.inc.php');
/* Get comments */ /* Get comments */
@@ -92,7 +92,7 @@ if ($GLOBALS['cfg']['ShowPropertyComments']) {
/** /**
* Displays top menu links * Displays top menu links
*/ */
require_once('./tbl_properties_links.php'); require_once('./libraries/tbl_properties_links.inc.php');
/** /**

View File

@@ -200,7 +200,7 @@ if (isset($submit_num_fields)) {
PMA_mysqlDie('', '', '', $err_url, FALSE); PMA_mysqlDie('', '', '', $err_url, FALSE);
// garvin: An error happened while inserting/updating a table definition. // garvin: An error happened while inserting/updating a table definition.
// to prevent total loss of that data, we embed the form once again. // 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; $num_fields = $orig_num_fields;
$regenerate = TRUE; $regenerate = TRUE;
} }
@@ -228,7 +228,7 @@ if ($abort == FALSE) {
// Table name and number of fields are valid -> show the form // Table name and number of fields are valid -> show the form
else { else {
$action = 'tbl_create.php'; $action = 'tbl_create.php';
require('./tbl_properties.inc.php'); require('./libraries/tbl_properties.inc.php');
// Displays the footer // Displays the footer
echo "\n"; echo "\n";
require_once('./footer.inc.php'); require_once('./footer.inc.php');

View File

@@ -8,11 +8,11 @@ require_once('./libraries/common.lib.php');
* Gets tables informations and displays top links * Gets tables informations and displays top links
*/ */
require_once('./tbl_properties_common.php'); 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 * Displays top menu links
*/ */
require_once('./tbl_properties_links.php'); require_once('./libraries/tbl_properties_links.inc.php');
$import_type = 'table'; $import_type = 'table';
require_once('./libraries/display_import.lib.php'); require_once('./libraries/display_import.lib.php');

View File

@@ -17,12 +17,12 @@ $back = 'tbl_properties.php';
/** /**
* Get table information * Get table information
*/ */
require_once('./tbl_properties_table_info.php'); require_once('./libraries/tbl_properties_table_info.inc.php');
/** /**
* Displays top menu links * 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 * Query box, bookmark, insert data from textfile

View File

@@ -9,7 +9,7 @@ require_once('./libraries/common.lib.php');
*/ */
require_once('./tbl_properties_common.php'); require_once('./tbl_properties_common.php');
$url_query .= '&goto=tbl_properties_export.php&back=tbl_properties_export.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 --> <!-- Dump of a table -->
@@ -104,7 +104,7 @@ if (isset($sql_query)) {
/** /**
* Displays top menu links * Displays top menu links
*/ */
require('./tbl_properties_links.php'); require('./libraries/tbl_properties_links.inc.php');
$export_type = 'table'; $export_type = 'table';
require_once('./libraries/display_export.lib.php'); require_once('./libraries/display_export.lib.php');

View File

@@ -79,7 +79,7 @@ if (isset($submitoptions)) {
} }
if ($reread_info) { if ($reread_info) {
require('./tbl_properties_table_info.php'); require('./libraries/tbl_properties_table_info.inc.php');
} }
unset($reread_info); unset($reread_info);
@@ -99,12 +99,12 @@ if (isset($submitorderby) && !empty($order_field)) {
/** /**
* Gets tables informations * Gets tables informations
*/ */
require_once('./tbl_properties_table_info.php'); require_once('./libraries/tbl_properties_table_info.inc.php');
/** /**
* Displays top menu links * Displays top menu links
*/ */
require_once('./tbl_properties_links.php'); require_once('./libraries/tbl_properties_links.inc.php');
/** /**
* Get columns names * Get columns names

View File

@@ -44,7 +44,7 @@ $url_query .= '&amp;goto=tbl_properties_structure.php&amp;back=tbl_properties_st
/** /**
* Gets tables informations * 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 * Show result of multi submit operation
@@ -57,7 +57,7 @@ if ((!empty($submit_mult) && isset($selected_fld))
/** /**
* Displays top menu links * 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 // 2. Gets table keys and retains them
$result = PMA_DBI_query('SHOW INDEX FROM ' . PMA_backquote($table) . ';'); $result = PMA_DBI_query('SHOW INDEX FROM ' . PMA_backquote($table) . ';');
@@ -508,7 +508,7 @@ echo $strPrintView;
<?php <?php
if ( ! $tbl_is_view && ! $db_is_information_schema ) { if ( ! $tbl_is_view && ! $db_is_information_schema ) {
// if internal relations are available, or the table type is INNODB // 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") { if ($cfg['Server']['relation'] || $tbl_type=="INNODB") {
?> ?>
@@ -560,7 +560,7 @@ echo $strPrintView;
* links again * links again
*/ */
if ($fields_cnt > 20) { if ($fields_cnt > 20) {
require('./tbl_properties_links.php'); require('./libraries/tbl_properties_links.inc.php');
} // end if ($fields_cnt > 20) } // end if ($fields_cnt > 20)
echo "\n\n"; echo "\n\n";

View File

@@ -13,9 +13,9 @@ $url_query .= '&amp;goto=tbl_properties.php';
/** /**
* Gets tables informations * 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 // For InnoDB, this comment contains the REFER information but any update
// has not been done yet (will be done in tbl_relation.php later). // has not been done yet (will be done in tbl_relation.php later).
$avoid_show_comment = TRUE; $avoid_show_comment = TRUE;
@@ -23,7 +23,7 @@ $avoid_show_comment = TRUE;
/** /**
* Displays top menu links * Displays top menu links
*/ */
require_once('./tbl_properties_links.php'); require_once('./libraries/tbl_properties_links.inc.php');
require_once('./libraries/relation.lib.php'); require_once('./libraries/relation.lib.php');

View File

@@ -35,12 +35,12 @@ if (!isset($param) || $param[0] == '') {
/** /**
* Gets tables informations * Gets tables informations
*/ */
require_once('./tbl_properties_table_info.php'); require_once('./libraries/tbl_properties_table_info.inc.php');
/** /**
* Displays top menu links * Displays top menu links
*/ */
require_once('./tbl_properties_links.php'); require_once('./libraries/tbl_properties_links.inc.php');
if (!isset($goto)) { if (!isset($goto)) {
$goto = $GLOBALS['cfg']['DefaultTabTable']; $goto = $GLOBALS['cfg']['DefaultTabTable'];