No need to explicitely include relation.lib its anyway included in common.inc
This commit is contained in:
@@ -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);
|
||||
|
@@ -10,7 +10,6 @@
|
||||
*/
|
||||
require_once './libraries/common.inc.php';
|
||||
require_once './libraries/header.inc.php';
|
||||
require_once './libraries/relation.lib.php';
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -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
|
||||
|
@@ -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();
|
||||
|
||||
/**
|
||||
|
@@ -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();
|
||||
|
||||
/**
|
||||
|
@@ -11,7 +11,6 @@
|
||||
*/
|
||||
require_once './libraries/common.inc.php';
|
||||
require_once './libraries/Table.class.php';
|
||||
require_once './libraries/relation.lib.php';
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -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'])) {
|
||||
|
@@ -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) {
|
||||
|
@@ -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();
|
||||
|
||||
|
@@ -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 = '
|
||||
|
@@ -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
|
||||
|
@@ -6,11 +6,6 @@
|
||||
* @package phpMyAdmin
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once './libraries/relation.lib.php';
|
||||
|
||||
/**
|
||||
* Defines the bookmark parameters for the current user
|
||||
*
|
||||
|
@@ -13,7 +13,6 @@ if (! defined('PHPMYADMIN')) {
|
||||
*/
|
||||
require_once './libraries/common.inc.php';
|
||||
|
||||
require_once './libraries/relation.lib.php';
|
||||
/**
|
||||
* Gets the relation settings
|
||||
*/
|
||||
|
@@ -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();
|
||||
|
||||
|
||||
|
@@ -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'], ''),
|
||||
|
@@ -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
|
||||
|
@@ -12,7 +12,6 @@ if (! defined('PHPMYADMIN')) {
|
||||
/**
|
||||
* Load relations.
|
||||
*/
|
||||
require_once './libraries/relation.lib.php';
|
||||
$cfgRelation = PMA_getRelationsParam();
|
||||
|
||||
/**
|
||||
|
@@ -9,11 +9,6 @@ if (! defined('PHPMYADMIN')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once './libraries/relation.lib.php';
|
||||
|
||||
/**
|
||||
* Cleanu column related relation stuff
|
||||
*
|
||||
|
@@ -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();
|
||||
|
||||
|
1
main.php
1
main.php
@@ -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.'));
|
||||
|
@@ -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();
|
||||
|
||||
/**
|
||||
|
@@ -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
|
||||
|
@@ -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';
|
||||
|
||||
|
@@ -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'] =
|
||||
|
@@ -8,7 +8,6 @@
|
||||
*
|
||||
*/
|
||||
include_once 'pmd_common.php';
|
||||
require_once './libraries/relation.lib.php';
|
||||
|
||||
|
||||
$table = $T;
|
||||
|
@@ -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>");
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
|
@@ -9,7 +9,6 @@
|
||||
*
|
||||
*/
|
||||
include_once 'pmd_common.php';
|
||||
require_once './libraries/relation.lib.php';
|
||||
|
||||
$cfgRelation = PMA_getRelationsParam();
|
||||
|
||||
|
@@ -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();
|
||||
|
||||
/**
|
||||
|
1
sql.php
1
sql.php
@@ -585,7 +585,6 @@ else {
|
||||
}
|
||||
|
||||
if (strlen($db)) {
|
||||
require_once './libraries/relation.lib.php';
|
||||
$cfgRelation = PMA_getRelationsParam();
|
||||
}
|
||||
|
||||
|
@@ -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]
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
*/
|
||||
|
@@ -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]
|
||||
|
@@ -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();
|
||||
|
||||
/**
|
||||
|
@@ -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';
|
||||
|
||||
|
@@ -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',
|
||||
|
@@ -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';
|
||||
|
@@ -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();
|
||||
|
@@ -15,9 +15,6 @@ $url_query .= '&goto=tbl_tracking.php&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']);
|
||||
|
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user