diff --git a/Documentation.html b/Documentation.html
index 62469cc19..355491632 100755
--- a/Documentation.html
+++ b/Documentation.html
@@ -2292,9 +2292,9 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
This seems to be a PWS bug. Filippo Simoncini found a workaround (at this
time there is no better fix): remove or comment the DOCTYPE
- declarations (2 lines) from the scripts header.inc.php,
- header_printview.inc.php, index.php, left.php and
- libraries/common.lib.php.
+ declarations (2 lines) from the scripts libraries/header.inc.php,
+ libraries/header_printview.inc.php, index.php,
+ left.php and libraries/common.lib.php.
- All files include header.inc.php (layout),
+ All files include libraries/header.inc.php (layout),.
libraries/common.lib.php (common functions) and
config.inc.php.
diff --git a/chk_rel.php b/chk_rel.php
index 2fde84e22..10fcdde47 100644
--- a/chk_rel.php
+++ b/chk_rel.php
@@ -20,5 +20,5 @@ $cfgRelation = PMA_getRelationsParam(TRUE);
/**
* Displays the footer
*/
-require_once('./footer.inc.php');
+require_once('./libraries/footer.inc.php');
?>
diff --git a/db_create.php b/db_create.php
index af52d0adc..35a6de244 100644
--- a/db_create.php
+++ b/db_create.php
@@ -8,7 +8,7 @@
*/
require_once('./libraries/common.lib.php');
$js_to_run = 'functions.js';
-require_once('./header.inc.php');
+require_once('./libraries/header.inc.php');
require_once('./libraries/mysql_charsets.lib.php');
diff --git a/db_datadict.php b/db_datadict.php
index b929e0cf3..37c54b8e4 100644
--- a/db_datadict.php
+++ b/db_datadict.php
@@ -8,7 +8,7 @@
require_once('./libraries/common.lib.php');
if (!isset($selected_tbl)) {
- require_once('./header.inc.php');
+ require_once('./libraries/header.inc.php');
}
@@ -295,5 +295,5 @@ function printPage()
';
-require_once('./footer.inc.php');
+require_once('./libraries/footer.inc.php');
?>
diff --git a/db_details.php b/db_details.php
index ad83a9656..28feab725 100644
--- a/db_details.php
+++ b/db_details.php
@@ -30,5 +30,5 @@ PMA_sqlQueryForm();
/**
* Displays the footer
*/
-require_once './footer.inc.php';
+require_once './libraries/footer.inc.php';
?>
diff --git a/db_details_export.php b/db_details_export.php
index 14ab1d531..8ceea1f3f 100644
--- a/db_details_export.php
+++ b/db_details_export.php
@@ -28,7 +28,7 @@ $export_page_title = $strViewDumpDB;
// exit if no tables in db found
if ( $num_tables < 1 ) {
echo $strDatabaseNoTable;
- require('./footer.inc.php');
+ require('./libraries/footer.inc.php');
exit;
} // end if
@@ -69,5 +69,5 @@ require_once('./libraries/display_export.lib.php');
/**
* Displays the footer
*/
-require_once('./footer.inc.php');
+require_once('./libraries/footer.inc.php');
?>
diff --git a/db_details_importdocsql.php b/db_details_importdocsql.php
index 2bfe545c2..ee3beb8f7 100644
--- a/db_details_importdocsql.php
+++ b/db_details_importdocsql.php
@@ -14,7 +14,7 @@ require_once('./libraries/common.lib.php');
* the headers
*/
require_once('./libraries/read_dump.lib.php');
-require_once('./header.inc.php');
+require_once('./libraries/header.inc.php');
// Check parameters
PMA_checkParameters(array('db'));
@@ -291,6 +291,6 @@ if (isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir'])) {
* Displays the footer
*/
echo "\n";
-require_once('./footer.inc.php');
+require_once('./libraries/footer.inc.php');
?>
diff --git a/db_details_qbe.php b/db_details_qbe.php
index a53880c97..ff4ed541d 100644
--- a/db_details_qbe.php
+++ b/db_details_qbe.php
@@ -1065,5 +1065,5 @@ if (!empty($qry_orderby)) {
/**
* Displays the footer
*/
-require_once('./footer.inc.php');
+require_once('./libraries/footer.inc.php');
?>
diff --git a/db_details_structure.php b/db_details_structure.php
index 7383797e5..061f09b30 100644
--- a/db_details_structure.php
+++ b/db_details_structure.php
@@ -36,7 +36,7 @@ if ( $num_tables == 0 ) {
/**
* Displays the footer
*/
- require_once('./footer.inc.php');
+ require_once('./libraries/footer.inc.php');
exit;
}
@@ -473,5 +473,5 @@ if ( empty( $db_is_information_schema ) ) {
/**
* Displays the footer
*/
-require_once('./footer.inc.php');
+require_once('./libraries/footer.inc.php');
?>
diff --git a/db_import.php b/db_import.php
index 64707085e..618d4862c 100644
--- a/db_import.php
+++ b/db_import.php
@@ -16,6 +16,6 @@ require('./libraries/display_import.lib.php');
/**
* Displays the footer
*/
-require('./footer.inc.php');
+require('./libraries/footer.inc.php');
?>
diff --git a/db_operations.php b/db_operations.php
index 2aa40a614..3bcb09d31 100644
--- a/db_operations.php
+++ b/db_operations.php
@@ -407,5 +407,5 @@ if (($cfgRelation['pdfwork'] && $num_tables > 0) ||
* Displays the footer
*/
echo "\n";
-require_once('./footer.inc.php');
+require_once('./libraries/footer.inc.php');
?>
diff --git a/db_printview.php b/db_printview.php
index e7de94c71..c64bcb461 100644
--- a/db_printview.php
+++ b/db_printview.php
@@ -8,7 +8,7 @@ require_once('./libraries/common.lib.php');
* Gets the variables sent or posted to this script, then displays headers
*/
$print_view = TRUE;
-require_once('./header.inc.php');
+require_once('./libraries/header.inc.php');
PMA_checkParameters(array('db'));
@@ -301,5 +301,5 @@ function printPage()
' . "\n";
-require_once('./footer.inc.php');
+require_once('./libraries/footer.inc.php');
?>
diff --git a/db_search.php b/db_search.php
index 88829ab89..39059a881 100644
--- a/db_search.php
+++ b/db_search.php
@@ -365,5 +365,5 @@ echo"\n";
* Displays the footer
*/
echo "\n";
-require_once('./footer.inc.php');
+require_once('./libraries/footer.inc.php');
?>
diff --git a/export.php b/export.php
index ba42a172f..934a1f281 100644
--- a/export.php
+++ b/export.php
@@ -282,7 +282,7 @@ if ($save_on_server) {
}
if (isset($message)) {
$js_to_run = 'functions.js';
- require_once('./header.inc.php');
+ require_once('./libraries/header.inc.php');
if ($export_type == 'server') {
$active_page = 'server_export.php';
require('./server_export.php');
@@ -325,7 +325,7 @@ if (!$save_on_server) {
} else {
// HTML
$backup_cfgServer = $cfg['Server'];
- require_once('./header.inc.php');
+ require_once('./libraries/header.inc.php');
$cfg['Server'] = $backup_cfgServer;
unset($backup_cfgServer);
echo "\n" . '
' . "\n";
@@ -346,7 +346,7 @@ if ($export_type == 'database') {
if ($num_tables == 0) {
$message = $strNoTablesFound;
$js_to_run = 'functions.js';
- require_once('./header.inc.php');
+ require_once('./libraries/header.inc.php');
if ($export_type == 'server') {
$active_page = 'server_export.php';
require('./server_export.php');
@@ -487,7 +487,7 @@ if (!PMA_exportFooter()) break;
if ($save_on_server && isset($message)) {
$js_to_run = 'functions.js';
- require_once('./header.inc.php');
+ require_once('./libraries/header.inc.php');
if ($export_type == 'server') {
$active_page = 'server_export.php';
require('./server_export.php');
@@ -524,9 +524,9 @@ if (!empty($asfile)) {
if (@function_exists('bzcompress')) {
$dump_buffer = bzcompress($dump_buffer);
if ($dump_buffer === -8) {
- require_once('./header.inc.php');
+ require_once('./libraries/header.inc.php');
echo sprintf($strBzError, '17300');
- require_once('./footer.inc.php');
+ require_once('./libraries/footer.inc.php');
}
}
}
@@ -549,7 +549,7 @@ if (!empty($asfile)) {
}
$js_to_run = 'functions.js';
- require_once('./header.inc.php');
+ require_once('./libraries/header.inc.php');
if ($export_type == 'server') {
$active_page = 'server_export.php';
require_once('./server_export.php');
@@ -598,6 +598,6 @@ else {
//-->
diff --git a/import.php b/import.php
index a173adb1e..7dfe56e24 100644
--- a/import.php
+++ b/import.php
@@ -38,10 +38,10 @@ if (!empty($sql_query)) {
// If we didn't get any parameters, either user called this directly, or
// upload limit has been reached, let's assume the second possibility.
if ($_POST == array() && $_GET == array()) {
- require_once('./header.inc.php');
+ require_once('./libraries/header.inc.php');
$show_error_header = TRUE;
PMA_showMessage(sprintf($strUploadLimit, '[a@./Documentation.html#faq1_16@_blank]', '[/a]'));
- require('./footer.inc.php');
+ require('./libraries/footer.inc.php');
}
// Check needed parameters
@@ -357,7 +357,7 @@ if ($timeout_passed) {
}
// Display back import page
-require_once('./header.inc.php');
+require_once('./libraries/header.inc.php');
// There was an error?
if (isset($my_die)) {
diff --git a/js/querywindow.js b/js/querywindow.js
index aa5667191..605acf69e 100644
--- a/js/querywindow.js
+++ b/js/querywindow.js
@@ -1,7 +1,7 @@
var querywindow = '';
/**
- * sets current selected server, table and db (called from footer.inc.php)
+ * sets current selected server, table and db (called from libraries/footer.inc.php)
*/
function setDb( new_db ) {
//alert('setDb(' + new_db + ')');
@@ -49,7 +49,7 @@ function refreshLeft() {
}
/**
- * sets current selected server, table and db (called from footer.inc.php)
+ * sets current selected server, table and db (called from libraries/footer.inc.php)
*/
function setAll( new_lang, new_collation_connection, new_server, new_db, new_table ) {
//alert('setAll( ' + new_lang + ', ' + new_collation_connection + ', ' + new_server + ', ' + new_db + ', ' + new_table + ' )');
diff --git a/left.php b/left.php
index 625b18350..d03f81192 100644
--- a/left.php
+++ b/left.php
@@ -49,7 +49,7 @@ $db_start = $db;
// garvin: For re-usability, moved http-headers
-// to a seperate file. It can now be included by header.inc.php,
+// to a seperate file. It can now be included by libraries/header.inc.php,
// querywindow.php.
require_once('./libraries/header_http.inc.php');
diff --git a/libraries/auth/config.auth.lib.php b/libraries/auth/config.auth.lib.php
index cacea3308..456e44dde 100644
--- a/libraries/auth/config.auth.lib.php
+++ b/libraries/auth/config.auth.lib.php
@@ -100,7 +100,7 @@ function PMA_auth_fails()
echo "\n";
$GLOBALS['is_header_sent'] = TRUE;
- //TODO: I have included this div from header.inc.php to work around
+ //TODO: I have included this div from libraries/header.inc.php to work around
// an undefined variable in tooltip.js, when the server
// is not responding. Work has to be done to merge all code that
// starts the page (DOCTYPE and this div) to one place
@@ -129,7 +129,7 @@ function PMA_auth_fails()
' . "\n\n";
if ($exit) {
- require_once('./footer.inc.php');
+ require_once('./libraries/footer.inc.php');
}
} // end of the 'PMA_mysqlDie()' function
diff --git a/libraries/db_details_common.inc.php b/libraries/db_details_common.inc.php
index 4df8ed5ff..7e9f779c3 100644
--- a/libraries/db_details_common.inc.php
+++ b/libraries/db_details_common.inc.php
@@ -51,7 +51,7 @@ if (isset($submitcollation) && !empty($db_collation) && PMA_MYSQL_INT_VERSION >=
}
$js_to_run = 'functions.js';
-require_once('./header.inc.php');
+require_once('./libraries/header.inc.php');
/**
* Set parameters for links
diff --git a/libraries/display_import.lib.php b/libraries/display_import.lib.php
index b97949379..d7ef22acf 100644
--- a/libraries/display_import.lib.php
+++ b/libraries/display_import.lib.php
@@ -22,7 +22,7 @@ if (empty($import_list)) {
$GLOBALS['show_error_header'] = TRUE;
PMA_showMessage($strCanNotLoadImportPlugins);
unset($GLOBALS['show_error_header']);
- require('./footer.inc.php');
+ require('./libraries/footer.inc.php');
}
function PMA_getString($name) {
diff --git a/footer.inc.php b/libraries/footer.inc.php
similarity index 100%
rename from footer.inc.php
rename to libraries/footer.inc.php
diff --git a/header.inc.php b/libraries/header.inc.php
similarity index 100%
rename from header.inc.php
rename to libraries/header.inc.php
diff --git a/header_printview.inc.php b/libraries/header_printview.inc.php
similarity index 97%
rename from header_printview.inc.php
rename to libraries/header_printview.inc.php
index 0b60d54d6..82c8c5261 100644
--- a/header_printview.inc.php
+++ b/libraries/header_printview.inc.php
@@ -20,7 +20,7 @@ PMA_checkParameters(array('db', 'full_sql_query'));
// garvin: For re-usability, moved http-headers
-// to a seperate file. It can now be included by header.inc.php,
+// to a seperate file. It can now be included by libraries/header.inc.php,
// querywindow.php.
require_once('./libraries/header_http.inc.php');
diff --git a/libraries/mult_submits.inc.php b/libraries/mult_submits.inc.php
index d0dda9641..780ded940 100644
--- a/libraries/mult_submits.inc.php
+++ b/libraries/mult_submits.inc.php
@@ -265,7 +265,7 @@ if ( !empty($submit_mult) && !empty($what)) {
diff --git a/pdf_pages.php b/pdf_pages.php
index 3f725d6c3..d9b8814d8 100644
--- a/pdf_pages.php
+++ b/pdf_pages.php
@@ -31,13 +31,13 @@ $query_default_option = PMA_DBI_QUERY_STORE;
if (!$cfgRelation['relwork']) {
echo sprintf($strNotSet, 'relation', 'config.inc.php') . ' ' . "\n"
. '' . $strDocu . '' . "\n";
- require_once('./footer.inc.php');
+ require_once('./libraries/footer.inc.php');
}
if (!$cfgRelation['displaywork']) {
echo sprintf($strNotSet, 'table_info', 'config.inc.php') . ' ' . "\n"
. '' . $strDocu . '' . "\n";
- require_once('./footer.inc.php');
+ require_once('./libraries/footer.inc.php');
}
if (!isset($cfgRelation['table_coords'])){
@@ -532,5 +532,5 @@ ToggleDragDrop('pdflayout');
* Displays the footer
*/
echo "\n";
-require_once('./footer.inc.php');
+require_once('./libraries/footer.inc.php');
?>
diff --git a/pdf_schema.php b/pdf_schema.php
index 09e78c21a..565f81ee1 100644
--- a/pdf_schema.php
+++ b/pdf_schema.php
@@ -275,7 +275,7 @@ class PMA_PDF extends PMA_FPDF
global $server, $lang, $convcharset, $db;
global $charset, $text_dir, $strRunning, $strDatabase;
- require_once('./header.inc.php');
+ require_once('./libraries/header.inc.php');
echo '
PDF - '. $GLOBALS['strError'] . '
' . "\n";
if (!empty($error_message)) {
@@ -289,7 +289,7 @@ class PMA_PDF extends PMA_FPDF
. '">' . $GLOBALS['strBack'] . '';
echo "\n";
- require_once('./footer.inc.php');
+ require_once('./libraries/footer.inc.php');
} // end of the "PMA_PDF_die()" function
diff --git a/querywindow.php b/querywindow.php
index 2f02ed8f1..a5d58138b 100644
--- a/querywindow.php
+++ b/querywindow.php
@@ -45,7 +45,7 @@ if ($server > 0) {
}
// garvin: For re-usability, moved http-headers and stylesheets
-// to a seperate file. It can now be included by header.inc.php,
+// to a seperate file. It can now be included by libraries/header.inc.php,
// querywindow.php.
require_once('./libraries/header_http.inc.php');
diff --git a/server_binlog.php b/server_binlog.php
index 2657e0304..8b856ad71 100644
--- a/server_binlog.php
+++ b/server_binlog.php
@@ -105,6 +105,6 @@ foreach ($serverProcesses as $value) {
/**
* Sends the footer
*/
-require_once('./footer.inc.php');
+require_once('./libraries/footer.inc.php');
?>
diff --git a/server_collations.php b/server_collations.php
index b466a668b..19b846708 100644
--- a/server_collations.php
+++ b/server_collations.php
@@ -30,7 +30,7 @@ echo '