Skip to content

Commit

Permalink
Dropped server_links.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
roccivic committed May 5, 2012
1 parent 7245a3b commit 7b85c70
Show file tree
Hide file tree
Showing 20 changed files with 10 additions and 98 deletions.
1 change: 0 additions & 1 deletion libraries/mult_submits.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@
include './libraries/db_info.inc.php';
} else {
include_once './libraries/server_common.inc.php';
include_once './libraries/server_links.inc.php';
}

// Builds the query
Expand Down
2 changes: 2 additions & 0 deletions libraries/server_common.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@
$binary_logs = PMA_DRIZZLE
? null
: PMA_DBI_fetch_result('SHOW MASTER LOGS', 'Log_name', null, null, PMA_DBI_QUERY_STORE);

PMA_checkParameters(array('is_superuser', 'url_query'), false);
?>
18 changes: 0 additions & 18 deletions libraries/server_links.inc.php

This file was deleted.

4 changes: 0 additions & 4 deletions libraries/user_preferences.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
if (!defined('PHPMYADMIN')) {
exit;
}

// show server tabs
require './libraries/server_links.inc.php';

// build user preferences menu

$form_param = filter_input(INPUT_GET, 'form');
Expand Down
1 change: 0 additions & 1 deletion main.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
if ($server > 0) {
include 'libraries/server_common.inc.php';
include 'libraries/StorageEngine.class.php';
include 'libraries/server_links.inc.php';

// Use the verbose name of the server instead of the hostname
// if a value is set
Expand Down
5 changes: 0 additions & 5 deletions server_binlog.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
*/
require_once 'libraries/server_common.inc.php';

/**
* Displays the links
*/
require_once 'libraries/server_links.inc.php';

$url_params = array();

/**
Expand Down
6 changes: 0 additions & 6 deletions server_collations.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
require 'libraries/server_common.inc.php';


/**
* Displays the links
*/
require 'libraries/server_links.inc.php';


/**
* Displays the sub-page heading
*/
Expand Down
6 changes: 0 additions & 6 deletions server_databases.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@
}
}

/**
* Displays the links
*/
require 'libraries/server_links.inc.php';


/**
* Displays the sub-page heading
*/
Expand Down
6 changes: 0 additions & 6 deletions server_engines.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
require 'libraries/server_common.inc.php';
require 'libraries/StorageEngine.class.php';


/**
* Displays the links
*/
require 'libraries/server_links.inc.php';

/**
* Did the user request information about a certain storage engine?
*/
Expand Down
6 changes: 1 addition & 5 deletions server_export.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@
* Does the common work
*/
require_once 'libraries/common.inc.php';
require 'libraries/server_common.inc.php';

$GLOBALS['js_include'][] = 'export.js';

/**
* Displays the links
*/
require 'libraries/server_links.inc.php';

$export_page_title = __('View dump (schema) of databases') . "\n";
$checkall_url = 'server_export.php?'
. PMA_generate_common_url()
Expand Down
6 changes: 0 additions & 6 deletions server_import.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
*/
require 'libraries/server_common.inc.php';


/**
* Displays the links
*/
require 'libraries/server_links.inc.php';

$import_type = 'server';
require 'libraries/display_import.lib.php';
/**
Expand Down
6 changes: 0 additions & 6 deletions server_plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
*/
require 'libraries/server_common.inc.php';


/**
* Displays the links
*/
require 'libraries/server_links.inc.php';

/**
* Displays the sub-page heading
*/
Expand Down
7 changes: 5 additions & 2 deletions server_privileges.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
* Checks if the user is allowed to do what he tries to...
*/
if (! $is_superuser) {
include 'libraries/server_links.inc.php';
include 'libraries/header.inc.php';
echo '<h2>' . "\n"
. PMA_getIcon('b_usrlist.png')
. __('Privileges') . "\n"
Expand Down Expand Up @@ -1656,7 +1656,10 @@ function PMA_getGrants($user, $host)
include 'libraries/db_info.inc.php';
echo "\n";
} else {
include 'libraries/server_links.inc.php';
if (! empty($GLOBALS['message'])) {
PMA_showMessage($GLOBALS['message']);
unset($GLOBALS['message']);
}
}


Expand Down
7 changes: 2 additions & 5 deletions server_replication.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* Checks if the user is allowed to do what he tries to...
*/
if (! $is_superuser) {
include 'libraries/server_links.inc.php';
include 'libraries/header.inc.php';
echo '<h2>' . "\n"
. PMA_getIcon('s_replication.png')
. __('Replication') . "\n"
Expand Down Expand Up @@ -181,10 +181,7 @@
}
unset($refresh);
}
/**
* Displays the links
*/
require 'libraries/server_links.inc.php';


echo '<div id="replication">';
echo ' <h2>';
Expand Down
7 changes: 0 additions & 7 deletions server_sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@
require_once 'libraries/server_common.inc.php';
require_once 'libraries/sql_query_form.lib.php';


/**
* Displays the links
*/
require 'libraries/server_links.inc.php';


/**
* Query box, bookmark, insert data from textfile
*/
Expand Down
7 changes: 0 additions & 7 deletions server_status.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,13 +772,6 @@
*/
require 'libraries/server_common.inc.php';



/**
* Displays the links
*/
require 'libraries/server_links.inc.php';

?>
<div id="serverstatus">
<h2><?php
Expand Down
5 changes: 0 additions & 5 deletions server_synchronize.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
*/
@set_time_limit($cfg['ExecTimeLimit']);

/**
* Displays the links
*/
require 'libraries/server_links.inc.php';

/**
* Enables warnings on the page
*/
Expand Down
6 changes: 0 additions & 6 deletions server_variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@
}
}

/**
* Displays the links
*/
require 'libraries/server_links.inc.php';


/**
* Displays the sub-page heading
*/
Expand Down
1 change: 0 additions & 1 deletion sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,6 @@
include 'libraries/db_info.inc.php';
} else {
include 'libraries/server_common.inc.php';
include 'libraries/server_links.inc.php';
}
} else {
include_once 'libraries/header.inc.php';
Expand Down
1 change: 0 additions & 1 deletion tbl_chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
$url_params['goto'] = $cfg['DefaultTabServer'];
$url_params['back'] = 'sql.php';
include 'libraries/server_common.inc.php';
include 'libraries/server_links.inc.php';
}

/*
Expand Down

0 comments on commit 7b85c70

Please sign in to comment.