Move server_{links,common}.inc.php to libraries folder as it does not require direct access.

This commit is contained in:
Michal Čihař
2005-11-24 08:29:44 +00:00
parent f5f7fc3740
commit 66aa9d2396
15 changed files with 28 additions and 25 deletions

View File

@@ -14,6 +14,9 @@ $Source$
tbl_row_action.php, libraries/mult_submits.inc.php: Move tbl_row_action.php, libraries/mult_submits.inc.php: Move
mult_submits.inc.php to libraries folder as it does not require direct mult_submits.inc.php to libraries folder as it does not require direct
access. access.
* server_*, sql.php, libraries/server_common.inc.php,
libraries/server_links.inc.php: Move server_{links,common}.inc.php to
libraries folder as it does not require direct access.
2005-11-24 Sebastian Mendel <cybot_tm@users.sourceforge.net> 2005-11-24 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* themes/original/*, css/phpmyadmin.css.php: * themes/original/*, css/phpmyadmin.css.php:

View File

@@ -5,7 +5,7 @@
// Check parameters // Check parameters
require_once('./libraries/common.lib.php'); require_once('./libraries/common.lib.php');
require_once('./server_common.inc.php'); require_once('./libraries/server_common.inc.php');
PMA_checkParameters(array('is_superuser', 'url_query'), TRUE, FALSE); PMA_checkParameters(array('is_superuser', 'url_query'), TRUE, FALSE);

View File

@@ -7,13 +7,13 @@ require_once('./libraries/common.lib.php');
/** /**
* Does the common work * Does the common work
*/ */
require_once('./server_common.inc.php'); require_once('./libraries/server_common.inc.php');
/** /**
* Displays the links * Displays the links
*/ */
require('./server_links.inc.php'); require('./libraries/server_links.inc.php');
/** /**

View File

@@ -7,13 +7,13 @@ require_once('./libraries/common.lib.php');
/** /**
* Does the common work * Does the common work
*/ */
require('./server_common.inc.php'); require('./libraries/server_common.inc.php');
/** /**
* Displays the links * Displays the links
*/ */
require('./server_links.inc.php'); require('./libraries/server_links.inc.php');
/** /**

View File

@@ -9,7 +9,7 @@ require_once('./libraries/common.lib.php');
$js_to_run = 'functions.js'; $js_to_run = 'functions.js';
require('./server_common.inc.php'); require('./libraries/server_common.inc.php');
/** /**
* Sorts the databases array according to the user's choice * Sorts the databases array according to the user's choice
@@ -85,7 +85,7 @@ if ((!empty($drop_selected_dbs) || isset($query_type)) && ($is_superuser || $cfg
/** /**
* Displays the links * Displays the links
*/ */
require('./server_links.inc.php'); require('./libraries/server_links.inc.php');
/** /**

View File

@@ -7,14 +7,14 @@ require_once('./libraries/common.lib.php');
/** /**
* Does the common work * Does the common work
*/ */
require('./server_common.inc.php'); require('./libraries/server_common.inc.php');
require('./libraries/storage_engines.lib.php'); require('./libraries/storage_engines.lib.php');
/** /**
* Displays the links * Displays the links
*/ */
require('./server_links.inc.php'); require('./libraries/server_links.inc.php');
/** /**

View File

@@ -12,7 +12,7 @@ $js_to_run = 'functions.js';
/** /**
* Displays the links * Displays the links
*/ */
require('./server_links.inc.php'); require('./libraries/server_links.inc.php');
/** /**
* Gets the databases list - if it has not been built yet * Gets the databases list - if it has not been built yet

View File

@@ -7,13 +7,13 @@ require_once('./libraries/common.lib.php');
/** /**
* Does the common work * Does the common work
*/ */
require('./server_common.inc.php'); require('./libraries/server_common.inc.php');
/** /**
* Displays the links * Displays the links
*/ */
require('./server_links.inc.php'); require('./libraries/server_links.inc.php');
$import_type = 'server'; $import_type = 'server';
require('./libraries/display_import.lib.php'); require('./libraries/display_import.lib.php');

View File

@@ -8,7 +8,7 @@ require_once('./libraries/common.lib.php');
* Does the common work * Does the common work
*/ */
$js_to_run = 'server_privileges.js'; $js_to_run = 'server_privileges.js';
require('./server_common.inc.php'); require('./libraries/server_common.inc.php');
/** /**
@@ -37,7 +37,7 @@ if ( isset( $dbname ) ) {
* Checks if the user is allowed to do what he tries to... * Checks if the user is allowed to do what he tries to...
*/ */
if (!$is_superuser) { if (!$is_superuser) {
require('./server_links.inc.php'); require('./libraries/server_links.inc.php');
echo '<h2>' . "\n" echo '<h2>' . "\n"
. ($GLOBALS['cfg']['MainPageIconic'] ? '<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 'b_usrlist.png" alt="" />' : '') . ($GLOBALS['cfg']['MainPageIconic'] ? '<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 'b_usrlist.png" alt="" />' : '')
. $GLOBALS['strPrivileges'] . "\n" . $GLOBALS['strPrivileges'] . "\n"
@@ -1203,7 +1203,7 @@ if (isset($viewing_mode) && $viewing_mode == 'db') {
require('./db_details_db_info.php'); require('./db_details_db_info.php');
echo "\n"; echo "\n";
} else { } else {
require('./server_links.inc.php'); require('./libraries/server_links.inc.php');
} }

View File

@@ -7,7 +7,7 @@ require_once('./libraries/common.lib.php');
/** /**
* Does the common work * Does the common work
*/ */
require_once('./server_common.inc.php'); require_once('./libraries/server_common.inc.php');
/** /**
@@ -25,7 +25,7 @@ if (!empty($kill)) {
/** /**
* Displays the links * Displays the links
*/ */
require('./server_links.inc.php'); require('./libraries/server_links.inc.php');
/** /**

View File

@@ -8,14 +8,14 @@ require_once('./libraries/common.lib.php');
* Does the common work * Does the common work
*/ */
$js_to_run = 'functions.js'; $js_to_run = 'functions.js';
require_once './server_common.inc.php'; require_once './libraries/server_common.inc.php';
require_once './libraries/sql_query_form.lib.php'; require_once './libraries/sql_query_form.lib.php';
/** /**
* Displays the links * Displays the links
*/ */
require './server_links.inc.php'; require './libraries/server_links.inc.php';
/** /**

View File

@@ -11,13 +11,13 @@ require_once('./libraries/common.lib.php');
/** /**
* Does the common work * Does the common work
*/ */
require './server_common.inc.php'; require './libraries/server_common.inc.php';
/** /**
* Displays the links * Displays the links
*/ */
require './server_links.inc.php'; require './libraries/server_links.inc.php';
/** /**

View File

@@ -7,13 +7,13 @@ require_once('./libraries/common.lib.php');
/** /**
* Does the common work * Does the common work
*/ */
require('./server_common.inc.php'); require('./libraries/server_common.inc.php');
/** /**
* Displays the links * Displays the links
*/ */
require('./server_links.inc.php'); require('./libraries/server_links.inc.php');
/** /**

View File

@@ -699,8 +699,8 @@ else {
require('./db_details_db_info.php'); require('./db_details_db_info.php');
} }
else { else {
require('./server_common.inc.php'); require('./libraries/server_common.inc.php');
require('./server_links.inc.php'); require('./libraries/server_links.inc.php');
} }
} }