No need to explicitely include relation.lib its anyway included in common.inc

This commit is contained in:
Michal Čihař
2010-07-26 16:17:59 +02:00
parent bcc372b5c5
commit ee767e2d3d
42 changed files with 4 additions and 74 deletions

View File

@@ -22,7 +22,6 @@ require_once './libraries/header_http.inc.php';
* Displays the frame
*/
$per_page = 200;
require_once './libraries/relation.lib.php'; // foreign keys
require_once './libraries/transformations.lib.php'; // Transformations
$cfgRelation = PMA_getRelationsParam();
$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : FALSE);

View File

@@ -10,7 +10,6 @@
*/
require_once './libraries/common.inc.php';
require_once './libraries/header.inc.php';
require_once './libraries/relation.lib.php';
/**

View File

@@ -18,10 +18,10 @@ if (!isset($selected_tbl)) {
/**
* Gets the relations settings
*/
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
require_once './libraries/transformations.lib.php';
$cfgRelation = PMA_getRelationsParam();
/**
* Check parameters

View File

@@ -262,7 +262,6 @@ if (strlen($db) && (! empty($db_rename) || ! empty($db_copy))) {
* Settings for relations stuff
*/
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
/**

View File

@@ -26,7 +26,6 @@ $err_url = 'db_sql.php?' . PMA_generate_common_url($db);
/**
* Settings for relations stuff
*/
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
/**

View File

@@ -11,7 +11,6 @@
*/
require_once './libraries/common.inc.php';
require_once './libraries/Table.class.php';
require_once './libraries/relation.lib.php';
/**

View File

@@ -17,9 +17,6 @@ $url_query .= '&goto=tbl_tracking.php&back=db_tracking.php';
$sub_part = '_structure';
require './libraries/db_info.inc.php';
// Get relation settings
require_once './libraries/relation.lib.php';
// Work to do?
// (here, do not use $_REQUEST['db] as it can be crafted)
if (isset($_REQUEST['delete_tracking']) && isset($_REQUEST['table'])) {

View File

@@ -383,7 +383,6 @@ $do_relation = isset($GLOBALS[$what . '_relation']);
$do_comments = isset($GLOBALS[$what . '_comments']);
$do_mime = isset($GLOBALS[$what . '_mime']);
if ($do_relation || $do_comments || $do_mime) {
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
}
if ($do_mime) {

View File

@@ -32,11 +32,6 @@
*/
require_once './libraries/common.inc.php';
/**
* Includes the ThemeManager if it hasn't been included yet
*/
require_once './libraries/relation.lib.php';
// free the session file, for the other frames to be loaded
session_write_close();

View File

@@ -781,7 +781,6 @@ class PMA_Table
$GLOBALS['sql_query'] .= "\n\n" . $sql_insert_data . ';';
}
require_once './libraries/relation.lib.php';
$GLOBALS['cfgRelation'] = PMA_getRelationsParam();
// Drops old table if the user has requested to move it
@@ -1057,7 +1056,6 @@ class PMA_Table
* @todo move into extra function PMA_Relation::renameTable($new_name, $old_name, $new_db, $old_db)
*/
// Move old entries from comments to new table
require_once './libraries/relation.lib.php';
$GLOBALS['cfgRelation'] = PMA_getRelationsParam();
if ($GLOBALS['cfgRelation']['commwork']) {
$remove_query = '

View File

@@ -5,11 +5,6 @@
* @package phpMyAdmin
*/
/**
* Gets relation settings
*/
require_once './libraries/relation.lib.php';
/**
* This class tracks changes on databases, tables and views.
* For more information please see phpMyAdmin/Documentation.html

View File

@@ -6,11 +6,6 @@
* @package phpMyAdmin
*/
/**
*
*/
require_once './libraries/relation.lib.php';
/**
* Defines the bookmark parameters for the current user
*

View File

@@ -13,7 +13,6 @@ if (! defined('PHPMYADMIN')) {
*/
require_once './libraries/common.inc.php';
require_once './libraries/relation.lib.php';
/**
* Gets the relation settings
*/

View File

@@ -14,7 +14,6 @@ if (! defined('PHPMYADMIN')) {
require_once './libraries/Table.class.php';
// Get relations & co. status
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();

View File

@@ -49,8 +49,6 @@ if (! defined('PHPMYADMIN')) {
/**
* for PMA_setHistory()
*/
require_once './libraries/relation.lib.php';
if (! PMA_isValid($_REQUEST['no_history']) && empty($GLOBALS['error_message'])
&& ! empty($GLOBALS['sql_query'])) {
PMA_setHistory(PMA_ifSetOr($GLOBALS['db'], ''),

View File

@@ -143,7 +143,6 @@ if (empty($GLOBALS['is_header_sent'])) {
/**
* Settings for relations stuff
*/
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
// Get additional information about tables for tooltip is done

View File

@@ -12,7 +12,6 @@ if (! defined('PHPMYADMIN')) {
/**
* Load relations.
*/
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
/**

View File

@@ -9,11 +9,6 @@ if (! defined('PHPMYADMIN')) {
exit;
}
/**
*
*/
require_once './libraries/relation.lib.php';
/**
* Cleanu column related relation stuff
*

View File

@@ -117,7 +117,6 @@ if (!$is_backup) {
$header_cells[] = '<abbr title="AUTO_INCREMENT">' . ($display_type == 'horizontal' ? 'A_I' : 'AUTO_INCREMENT') . '</abbr>';
require_once './libraries/relation.lib.php';
require_once './libraries/transformations.lib.php';
$cfgRelation = PMA_getRelationsParam();

View File

@@ -309,7 +309,6 @@ if (file_exists('./config')) {
* Check whether relations are supported.
*/
if ($server > 0) {
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
if(!$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == false) {
$message = PMA_Message::notice(__('The additional features for working with linked tables have been deactivated. To find out why click %shere%s.'));

View File

@@ -110,9 +110,8 @@ if ($GLOBALS['server'] && ! strlen($GLOBALS['db'])) {
$db_start = $GLOBALS['db'];
/**
* the relation library
* the relation settings
*/
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
/**

View File

@@ -20,7 +20,6 @@ require_once './libraries/db_info.inc.php';
/**
* Settings for relation stuff
*/
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
// This is to avoid "Command out of sync" errors. Before switching this to

View File

@@ -13,7 +13,6 @@ require_once './libraries/common.inc.php';
/**
* Settings for relation stuff
*/
require_once './libraries/relation.lib.php';
require_once './libraries/transformations.lib.php';
require_once './libraries/Index.class.php';

View File

@@ -13,7 +13,6 @@ require_once './libraries/header_http.inc.php';
$GLOBALS['PMD']['STYLE'] = 'default';
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
$GLOBALS['script_display_field'] =

View File

@@ -8,7 +8,6 @@
*
*/
include_once 'pmd_common.php';
require_once './libraries/relation.lib.php';
$table = $T;

View File

@@ -15,8 +15,6 @@ if (! isset($scale)) {
include_once 'pmd_save_pos.php';
}
require_once './libraries/relation.lib.php';
if (isset($scale) && ! isset($createpage)) {
if (empty($pdf_page_number)) {
die("<script>alert('Pages not found!');history.go(-2);</script>");

View File

@@ -11,7 +11,6 @@
include_once 'pmd_common.php';
$die_save_pos = 0;
include_once 'pmd_save_pos.php';
require_once './libraries/relation.lib.php';
extract($_POST, EXTR_SKIP);
$tables = PMA_DBI_get_tables_full($db, $T1);

View File

@@ -9,7 +9,6 @@
*
*/
include_once 'pmd_common.php';
require_once './libraries/relation.lib.php';
extract($_POST, EXTR_SKIP);
extract($_GET, EXTR_SKIP);
$die_save_pos = 0;

View File

@@ -9,7 +9,6 @@
*
*/
include_once 'pmd_common.php';
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();

View File

@@ -50,9 +50,8 @@ require_once './libraries/ob.lib.php';
PMA_outBufferPre();
/**
* load relations
* load relation params
*/
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
/**

View File

@@ -585,7 +585,6 @@ else {
}
if (strlen($db)) {
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
}

View File

@@ -164,7 +164,6 @@ if (isset($_REQUEST['do_save_data'])) {
if ($result === true) {
// If comments were sent, enable relation stuff
require_once './libraries/relation.lib.php';
require_once './libraries/transformations.lib.php';
// Update comment table for mime types [MIME]

View File

@@ -105,7 +105,6 @@ if (isset($_REQUEST['do_save_data'])) {
/**
* If comments were sent, enable relation stuff
*/
require_once './libraries/relation.lib.php';
require_once './libraries/transformations.lib.php';
// updaet field names in relation

View File

@@ -44,11 +44,6 @@ if (isset($_REQUEST['ShowFieldTypesInDataEditView'])) {
$cfg['ShowFieldTypesInDataEditView'] = $_REQUEST['ShowFieldTypesInDataEditView'];
}
/**
* load relation data, foreign keys
*/
require_once './libraries/relation.lib.php';
/**
* file listing
*/

View File

@@ -223,7 +223,6 @@ if (isset($_REQUEST['do_save_data'])) {
if ($result) {
// If comments were sent, enable relation stuff
require_once './libraries/relation.lib.php';
require_once './libraries/transformations.lib.php';
// Update comment table for mime types [MIME]

View File

@@ -23,7 +23,6 @@ $url_params['goto'] = $url_params['back'] = 'tbl_operations.php';
/**
* Gets relation settings
*/
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
/**

View File

@@ -29,7 +29,6 @@ if (! isset($the_tables) || ! is_array($the_tables)) {
/**
* Gets the relations settings
*/
require_once './libraries/relation.lib.php';
require_once './libraries/transformations.lib.php';
require_once './libraries/Index.class.php';

View File

@@ -38,8 +38,6 @@ $avoid_show_comment = TRUE;
*/
require_once './libraries/tbl_links.inc.php';
require_once './libraries/relation.lib.php';
$options_array = array(
'CASCADE' => 'CASCADE',
'SET_NULL' => 'SET NULL',

View File

@@ -14,7 +14,6 @@
* Gets some core libraries
*/
require_once './libraries/common.inc.php';
require_once './libraries/relation.lib.php'; // foreign keys
require_once './libraries/mysql_charsets.lib.php';
$GLOBALS['js_include'][] = 'tbl_change.js';

View File

@@ -11,7 +11,6 @@
*/
require_once './libraries/common.inc.php';
require_once './libraries/mysql_charsets.lib.php';
require_once './libraries/relation.lib.php';
$GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.js';
@@ -199,7 +198,6 @@ $comments_map = array();
$mime_map = array();
if ($GLOBALS['cfg']['ShowPropertyComments']) {
require_once './libraries/relation.lib.php';
require_once './libraries/transformations.lib.php';
//$cfgRelation = PMA_getRelationsParam();

View File

@@ -15,9 +15,6 @@ $url_query .= '&amp;goto=tbl_tracking.php&amp;back=tbl_tracking.php';
$url_params['goto'] = 'tbl_tracking.php';;
$url_params['back'] = 'tbl_tracking.php';
// Get relation settings
require_once './libraries/relation.lib.php';
// Init vars for tracking report
if (isset($_REQUEST['report']) || isset($_REQUEST['report_export'])) {
$data = PMA_Tracker::getTrackedData($_REQUEST['db'], $_REQUEST['table'], $_REQUEST['version']);

View File

@@ -14,7 +14,6 @@ define('IS_TRANSFORMATION_WRAPPER', true);
* Gets a core script and starts output buffering work
*/
require_once './libraries/common.inc.php';
require_once './libraries/relation.lib.php'; // foreign keys
require_once './libraries/transformations.lib.php'; // Transformations
$cfgRelation = PMA_getRelationsParam();