Skip to content

Commit

Permalink
Move server_{links,common}.inc.php to libraries folder as it does not…
Browse files Browse the repository at this point in the history
… require direct access.
  • Loading branch information
nijel committed Nov 24, 2005
1 parent f5f7fc3 commit 66aa9d2
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 25 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ $Source$
tbl_row_action.php, libraries/mult_submits.inc.php: Move
mult_submits.inc.php to libraries folder as it does not require direct
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>
* themes/original/*, css/phpmyadmin.css.php:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion server_links.inc.php → libraries/server_links.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Check parameters

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);

Expand Down
4 changes: 2 additions & 2 deletions server_binlog.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
/**
* Does the common work
*/
require_once('./server_common.inc.php');
require_once('./libraries/server_common.inc.php');


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


/**
Expand Down
4 changes: 2 additions & 2 deletions server_collations.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
/**
* Does the common work
*/
require('./server_common.inc.php');
require('./libraries/server_common.inc.php');


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


/**
Expand Down
4 changes: 2 additions & 2 deletions server_databases.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


$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
Expand Down Expand Up @@ -85,7 +85,7 @@ function PMA_dbCmp($a, $b) {
/**
* Displays the links
*/
require('./server_links.inc.php');
require('./libraries/server_links.inc.php');


/**
Expand Down
4 changes: 2 additions & 2 deletions server_engines.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
/**
* Does the common work
*/
require('./server_common.inc.php');
require('./libraries/server_common.inc.php');
require('./libraries/storage_engines.lib.php');


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


/**
Expand Down
2 changes: 1 addition & 1 deletion server_export.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* 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
Expand Down
4 changes: 2 additions & 2 deletions server_import.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
/**
* Does the common work
*/
require('./server_common.inc.php');
require('./libraries/server_common.inc.php');


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

$import_type = 'server';
require('./libraries/display_import.lib.php');
Expand Down
6 changes: 3 additions & 3 deletions server_privileges.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Does the common work
*/
$js_to_run = 'server_privileges.js';
require('./server_common.inc.php');
require('./libraries/server_common.inc.php');


/**
Expand Down Expand Up @@ -37,7 +37,7 @@
* Checks if the user is allowed to do what he tries to...
*/
if (!$is_superuser) {
require('./server_links.inc.php');
require('./libraries/server_links.inc.php');
echo '<h2>' . "\n"
. ($GLOBALS['cfg']['MainPageIconic'] ? '<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 'b_usrlist.png" alt="" />' : '')
. $GLOBALS['strPrivileges'] . "\n"
Expand Down Expand Up @@ -1203,7 +1203,7 @@ function PMA_displayLoginInformationFields($mode = 'new', $indent = 0 ) {
require('./db_details_db_info.php');
echo "\n";
} else {
require('./server_links.inc.php');
require('./libraries/server_links.inc.php');
}


Expand Down
4 changes: 2 additions & 2 deletions server_processlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Does the common work
*/
require_once('./server_common.inc.php');
require_once('./libraries/server_common.inc.php');


/**
Expand All @@ -25,7 +25,7 @@
/**
* Displays the links
*/
require('./server_links.inc.php');
require('./libraries/server_links.inc.php');


/**
Expand Down
4 changes: 2 additions & 2 deletions server_sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
* Does the common work
*/
$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';


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


/**
Expand Down
4 changes: 2 additions & 2 deletions server_status.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
/**
* Does the common work
*/
require './server_common.inc.php';
require './libraries/server_common.inc.php';


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


/**
Expand Down
4 changes: 2 additions & 2 deletions server_variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
/**
* Does the common work
*/
require('./server_common.inc.php');
require('./libraries/server_common.inc.php');


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


/**
Expand Down
4 changes: 2 additions & 2 deletions sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,8 @@
require('./db_details_db_info.php');
}
else {
require('./server_common.inc.php');
require('./server_links.inc.php');
require('./libraries/server_common.inc.php');
require('./libraries/server_links.inc.php');
}
}

Expand Down

0 comments on commit 66aa9d2

Please sign in to comment.