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.

@@ -4147,7 +4147,7 @@ RewriteRule ^([a-zA-Z0-9_]+)$ index.php?db=$1 [R]

' . "\n"; /** * Sends the footer */ -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/server_engines.php b/server_engines.php index c3896c3c0..fac7d17b1 100644 --- a/server_engines.php +++ b/server_engines.php @@ -223,6 +223,6 @@ if (empty($engine) || empty($mysql_storage_engines[$engine])) { /** * Sends the footer */ -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/server_export.php b/server_export.php index c591ad10d..c4b47979d 100644 --- a/server_export.php +++ b/server_export.php @@ -58,5 +58,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/server_import.php b/server_import.php index 0bd5cee42..361d5b784 100644 --- a/server_import.php +++ b/server_import.php @@ -20,6 +20,6 @@ require('./libraries/display_import.lib.php'); /** * Displays the footer */ -require('./footer.inc.php'); +require('./libraries/footer.inc.php'); ?> diff --git a/server_privileges.php b/server_privileges.php index 80cd6b0c3..c8df2ae05 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -43,7 +43,7 @@ if (!$is_superuser) { . $GLOBALS['strPrivileges'] . "\n" . '' . "\n" . $GLOBALS['strNoPrivileges'] . "\n"; - require_once('./footer.inc.php'); + require_once('./libraries/footer.inc.php'); } /** @@ -1547,7 +1547,7 @@ if ( empty( $adduser ) && empty( $checkprivs ) ) { if ( $user_does_not_exists ) { echo $GLOBALS['strUserNotFound']; PMA_displayLoginInformationFields(); - //require_once('./footer.inc.php'); + //require_once('./libraries/footer.inc.php'); } echo '
' . "\n" . PMA_generate_common_hidden_inputs('', '', 3) @@ -2109,6 +2109,6 @@ if ( empty( $adduser ) && empty( $checkprivs ) ) { * Displays the footer */ echo "\n\n"; -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/server_processlist.php b/server_processlist.php index 13c9b20ba..25d61c4f8 100644 --- a/server_processlist.php +++ b/server_processlist.php @@ -94,5 +94,5 @@ foreach ( $serverProcesses AS $process ) { /** * Sends the footer */ -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> \ No newline at end of file diff --git a/server_sql.php b/server_sql.php index a10d2672e..628484d07 100644 --- a/server_sql.php +++ b/server_sql.php @@ -26,5 +26,5 @@ PMA_sqlQueryForm(); /** * Displays the footer */ -require_once './footer.inc.php'; +require_once './libraries/footer.inc.php'; ?> diff --git a/server_status.php b/server_status.php index dab784c84..d4a3b9b13 100644 --- a/server_status.php +++ b/server_status.php @@ -682,5 +682,5 @@ unset( $section_name, $section, $sections, $server_status, $odd_row, $alerts ); /** * Sends the footer */ -require_once './footer.inc.php'; +require_once './libraries/footer.inc.php'; ?> diff --git a/server_variables.php b/server_variables.php index 2c0e93358..1d938af8c 100644 --- a/server_variables.php +++ b/server_variables.php @@ -110,6 +110,6 @@ foreach ($serverVars as $name => $value) { /** * Sends the footer */ -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/sql.php b/sql.php index 4e087616d..9f5633ed3 100644 --- a/sql.php +++ b/sql.php @@ -72,7 +72,7 @@ if (!defined('PMA_CHK_DROP') && !$cfg['AllowUserDropDatabase'] && $is_drop_database && !$is_superuser) { - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); PMA_mysqlDie($strNoDropDatabases, '', '', $err_url); } // end if @@ -221,7 +221,7 @@ if (!$cfg['Confirm'] if ( $do_confirm ) { $stripped_sql_query = $sql_query; - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); if ( $is_drop_database) { echo '

' . $strDropDatabaseStrongWarning . '

'; } @@ -382,7 +382,7 @@ else { // Displays an error message if required and stop parsing the script if ($error = PMA_DBI_getError()) { - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); $full_err_url = (preg_match('@^(db_details|tbl_properties)@', $err_url)) ? $err_url . '&show_query=1&sql_query=' . urlencode($sql_query) : $err_url; @@ -666,7 +666,7 @@ else { $js_to_run = 'functions.js'; } if ($goto != 'main.php') { - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); } $active_page = $goto; require('./' . $goto); @@ -684,7 +684,7 @@ else { unset($show_query); } if (isset($printview) && $printview == '1') { - require_once('./header_printview.inc.php'); + require_once('./libraries/header_printview.inc.php'); } else { $js_to_run = 'functions.js'; unset($message); @@ -916,5 +916,5 @@ echo "\n\n"; /** * Displays the footer */ -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/tbl_addfield.php b/tbl_addfield.php index 1597bd072..04aae32ac 100644 --- a/tbl_addfield.php +++ b/tbl_addfield.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'); // Check parameters PMA_checkParameters(array('db', 'table')); @@ -226,7 +226,7 @@ if ($abort == FALSE) { // Diplays the footer echo "\n"; - require_once('./footer.inc.php'); + require_once('./libraries/footer.inc.php'); } ?> diff --git a/tbl_alter.php b/tbl_alter.php index 8faaa4b29..10165377d 100644 --- a/tbl_alter.php +++ b/tbl_alter.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'); // Check parameters PMA_checkParameters(array('db', 'table')); @@ -201,5 +201,5 @@ if ($abort == FALSE) { /** * Displays the footer */ -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/tbl_change.php b/tbl_change.php index 76fbe875c..45f4fc0cd 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -8,7 +8,7 @@ require_once('./libraries/common.lib.php'); $js_to_run = 'tbl_change.js'; -require_once('./header.inc.php'); +require_once('./libraries/header.inc.php'); require_once('./libraries/relation.lib.php'); // foreign keys require_once('./libraries/file_listing.php'); // file listing @@ -146,7 +146,7 @@ if (isset($primary_key)) { unset($sql_query_cpy); } echo "\n"; - require_once('./footer.inc.php'); + require_once('./libraries/footer.inc.php'); } // end if (no record returned) } } else { @@ -944,5 +944,5 @@ if (isset($primary_key)) * Displays the footer */ echo "\n"; -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/tbl_create.php b/tbl_create.php index de9a68f3c..59991efd2 100644 --- a/tbl_create.php +++ b/tbl_create.php @@ -13,7 +13,7 @@ if (isset($table)) { $table = PMA_sanitize($table); } -require_once('./header.inc.php'); +require_once('./libraries/header.inc.php'); // Check parameters PMA_checkParameters(array('db', 'table')); @@ -231,7 +231,7 @@ if ($abort == FALSE) { require('./libraries/tbl_properties.inc.php'); // Displays the footer echo "\n"; - require_once('./footer.inc.php'); + require_once('./libraries/footer.inc.php'); } } diff --git a/tbl_import.php b/tbl_import.php index 47489e401..267561abb 100644 --- a/tbl_import.php +++ b/tbl_import.php @@ -20,6 +20,6 @@ require_once('./libraries/display_import.lib.php'); /** * Displays the footer */ -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/tbl_indexes.php b/tbl_indexes.php index 8714c09c9..14c767ab0 100644 --- a/tbl_indexes.php +++ b/tbl_indexes.php @@ -42,7 +42,7 @@ if (!defined('PMA_IDX_INCLUDED')) { // Displays headers (if needed) $js_to_run = ((isset($index) && isset($do_save_data)) ? 'functions.js' : 'indexes.js'); - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); } // end if @@ -422,6 +422,6 @@ else if (!defined('PMA_IDX_INCLUDED') echo "\n"; if (!defined('PMA_IDX_INCLUDED')){ - require_once('./footer.inc.php'); + require_once('./libraries/footer.inc.php'); } ?> diff --git a/tbl_move_copy.php b/tbl_move_copy.php index 6892d76a6..43213f309 100644 --- a/tbl_move_copy.php +++ b/tbl_move_copy.php @@ -51,7 +51,7 @@ if (isset($new_name) && trim($new_name) != '') { } } } - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); } // end is target table name @@ -59,7 +59,7 @@ if (isset($new_name) && trim($new_name) != '') { * No new name for the table! */ else { - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); PMA_mysqlDie($strTableEmpty, '', '', $err_url); } diff --git a/tbl_printview.php b/tbl_printview.php index 2878c1baf..0a8ec7e47 100644 --- a/tbl_printview.php +++ b/tbl_printview.php @@ -8,7 +8,7 @@ require_once('./libraries/common.lib.php'); */ $print_view = TRUE; if (!isset($selected_tbl)) { - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); } // Check parameters @@ -56,7 +56,7 @@ $multi_tables = (count($the_tables) > 1); if ($multi_tables) { if (empty($GLOBALS['is_header_sent'])) { - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); } $tbl_list = ''; foreach ($the_tables AS $key => $table) { @@ -557,5 +557,5 @@ function printPage()
 ' . "\n"; -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/tbl_properties.php b/tbl_properties.php index 7a50fb0cf..502d553ed 100644 --- a/tbl_properties.php +++ b/tbl_properties.php @@ -32,5 +32,5 @@ PMA_sqlQueryForm(); /** * Displays the footer */ -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/tbl_properties_common.php b/tbl_properties_common.php index c008a9f6e..87329fade 100644 --- a/tbl_properties_common.php +++ b/tbl_properties_common.php @@ -35,7 +35,7 @@ require_once('./libraries/db_table_exists.lib.php'); * Displays headers */ $js_to_run = 'functions.js'; -require_once('./header.inc.php'); +require_once('./libraries/header.inc.php'); /** diff --git a/tbl_properties_export.php b/tbl_properties_export.php index 3d99930a6..54191dddb 100644 --- a/tbl_properties_export.php +++ b/tbl_properties_export.php @@ -113,5 +113,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/tbl_properties_operations.php b/tbl_properties_operations.php index 1947d79e3..12456b2c2 100644 --- a/tbl_properties_operations.php +++ b/tbl_properties_operations.php @@ -596,5 +596,5 @@ if ($cfgRelation['relwork'] && $tbl_type != "INNODB") { * Displays the footer */ echo "\n"; -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/tbl_properties_structure.php b/tbl_properties_structure.php index 77a96d7b3..e0d9c1a33 100644 --- a/tbl_properties_structure.php +++ b/tbl_properties_structure.php @@ -787,5 +787,5 @@ echo '' . "\n"; /** * Displays the footer */ -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/tbl_relation.php b/tbl_relation.php index 02bed21e6..b72eb4aca 100644 --- a/tbl_relation.php +++ b/tbl_relation.php @@ -539,5 +539,5 @@ if ( $tbl_type === 'INNODB' && PMA_MYSQL_INT_VERSION < 40013 ) { /** * Displays the footer */ -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/tbl_rename.php b/tbl_rename.php index ddd22783e..1e9d0006c 100644 --- a/tbl_rename.php +++ b/tbl_rename.php @@ -29,7 +29,7 @@ if (isset($new_name) && trim($new_name) != '' && strpos($new_name,'.') === FALSE exit(); } - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); PMA_DBI_select_db($db); $sql_query = 'ALTER TABLE ' . PMA_backquote($old_name) . ' RENAME ' . PMA_backquote($new_name) . ';'; $result = PMA_DBI_query($sql_query); @@ -93,7 +93,7 @@ if (isset($new_name) && trim($new_name) != '' && strpos($new_name,'.') === FALSE * No new name for the table! */ else { - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); if (strpos($new_name,'.') === FALSE) { PMA_mysqlDie($strTableEmpty, '', '', $err_url); } else { diff --git a/tbl_replace.php b/tbl_replace.php index 1458799ae..da6217d9d 100644 --- a/tbl_replace.php +++ b/tbl_replace.php @@ -204,7 +204,7 @@ if (empty($valuelist) && empty($query)) { $message = $strNoModification; if ($is_gotofile) { $js_to_run = 'functions.js'; - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); require('./' . PMA_securePath($goto)); } else { PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . $goto . '&disp_message=' . urlencode($message) . '&disp_query='); @@ -257,7 +257,7 @@ if ($is_gotofile) { } $js_to_run = 'functions.js'; $active_page = $goto; - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); require('./' . PMA_securePath($goto)); } else { // I don't understand this one: diff --git a/tbl_row_action.php b/tbl_row_action.php index 0b1a166b3..eed0d23bf 100644 --- a/tbl_row_action.php +++ b/tbl_row_action.php @@ -11,7 +11,7 @@ if ((!isset($rows_to_delete) || !is_array($rows_to_delete)) && !isset($mult_btn) $disp_message = $strNoRowsSelected; $disp_query = ''; require('./sql.php'); - require_once('./footer.inc.php'); + require_once('./libraries/footer.inc.php'); } /** @@ -63,7 +63,7 @@ if ($submit_mult == 'row_delete' || $submit_mult == 'row_export') { $js_to_run = 'functions.js'; } -require_once('./header.inc.php'); +require_once('./libraries/header.inc.php'); if (!empty($submit_mult)) { switch($submit_mult) { @@ -141,7 +141,7 @@ if (!empty($submit_mult)) { /** * Displays the footer */ - require_once('./footer.inc.php'); + require_once('./libraries/footer.inc.php'); break; } } diff --git a/tbl_select.php b/tbl_select.php index 0f2095247..08d64cd88 100644 --- a/tbl_select.php +++ b/tbl_select.php @@ -301,7 +301,7 @@ while (list($operator) = each($GLOBALS['cfg']['UnaryOperators'])) {
$transform) { * Displays the footer */ echo "\n"; -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?> diff --git a/transformation_wrapper.php b/transformation_wrapper.php index 5caeb6a3c..944721a97 100644 --- a/transformation_wrapper.php +++ b/transformation_wrapper.php @@ -50,7 +50,7 @@ if ($cfgRelation['commwork'] && $cfgRelation['mimework']) { } // 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/user_password.php b/user_password.php index 6ef48500a..a17de2616 100644 --- a/user_password.php +++ b/user_password.php @@ -16,10 +16,10 @@ if (!$cfg['ShowChgPassword']) { $cfg['ShowChgPassword'] = PMA_DBI_select_db('mysql'); } if ($cfg['Server']['auth_type'] == 'config' || !$cfg['ShowChgPassword']) { - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); echo '

' . $strError . '

' . "\n" . '

    ' . $strNoRights . '

' . "\n"; - require_once('./footer.inc.php'); + require_once('./libraries/footer.inc.php'); } // end if @@ -72,7 +72,7 @@ if (isset($nopass)) { : ''; // Displays the page - require_once('./header.inc.php'); + require_once('./libraries/header.inc.php'); echo '

' . $strChangePassword . '

' . "\n\n"; $show_query = 'y'; PMA_showMessage($strUpdateProfileMessage); @@ -91,7 +91,7 @@ if (isset($nopass)) { */ // Loads the headers $js_to_run = 'user_password.js'; -require_once('./header.inc.php'); +require_once('./libraries/header.inc.php'); echo '

' . $strChangePassword . '

' . "\n\n"; // Displays an error message if required @@ -171,5 +171,5 @@ if (PMA_MYSQL_INT_VERSION >= 40102) { /** * Displays the footer */ -require_once('./footer.inc.php'); +require_once('./libraries/footer.inc.php'); ?>