Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Leading ./ paths for includes can be omitted, part 2

  • Loading branch information...
commit b2fd866d87abe49b7003393004dcec8805125362 1 parent 3b56f6a
Jo Michael authored
Showing with 490 additions and 490 deletions.
  1. +5 −5 browse_foreigners.php
  2. +1 −1  changelog.php
  3. +3 −3 chk_rel.php
  4. +8 −8 db_create.php
  5. +5 −5 db_datadict.php
  6. +4 −4 db_events.php
  7. +6 −6 db_export.php
  8. +5 −5 db_import.php
  9. +8 −8 db_operations.php
  10. +3 −3 db_printview.php
  11. +6 −6 db_qbe.php
  12. +7 −7 db_routines.php
  13. +4 −4 db_search.php
  14. +6 −6 db_sql.php
  15. +12 −12 db_structure.php
  16. +7 −7 db_tracking.php
  17. +4 −4 db_triggers.php
  18. +3 −3 enum_editor.php
  19. +26 −26 export.php
  20. +1 −1  file_echo.php
  21. +6 −6 gis_data_editor.php
  22. +14 −14 import.php
  23. +2 −2 import_status.php
  24. +2 −2 index.php
  25. +1 −1  license.php
  26. +15 −15 main.php
  27. +10 −10 navigation.php
  28. +1 −1  phpinfo.php
  29. +2 −2 phpmyadmin.css.php
  30. +1 −1  pmd_display_field.php
  31. +4 −4 pmd_general.php
  32. +2 −2 pmd_pdf.php
  33. +1 −1  pmd_relation_new.php
  34. +1 −1  pmd_relation_upd.php
  35. +1 −1  pmd_save_pos.php
  36. +11 −11 prefs_forms.php
  37. +16 −16 prefs_manage.php
  38. +10 −10 querywindow.php
  39. +12 −12 schema_edit.php
  40. +6 −6 schema_export.php
  41. +4 −4 server_binlog.php
  42. +5 −5 server_collations.php
  43. +8 −8 server_databases.php
  44. +5 −5 server_engines.php
  45. +4 −4 server_export.php
  46. +5 −5 server_import.php
  47. +4 −4 server_plugins.php
  48. +9 −9 server_privileges.php
  49. +10 −10 server_replication.php
  50. +5 −5 server_sql.php
  51. +6 −6 server_status.php
  52. +5 −5 server_synchronize.php
  53. +5 −5 server_variables.php
  54. +1 −1  show_config_errors.php
  55. +28 −28 sql.php
  56. +9 −9 tbl_addfield.php
  57. +9 −9 tbl_alter.php
  58. +11 −11 tbl_change.php
  59. +9 −9 tbl_chart.php
  60. +8 −8 tbl_create.php
  61. +6 −6 tbl_export.php
  62. +2 −2 tbl_get_field.php
  63. +5 −5 tbl_gis_visualization.php
  64. +6 −6 tbl_import.php
  65. +7 −7 tbl_indexes.php
  66. +1 −1  tbl_move_copy.php
  67. +11 −11 tbl_operations.php
  68. +7 −7 tbl_printview.php
  69. +5 −5 tbl_relation.php
  70. +12 −12 tbl_replace.php
  71. +9 −9 tbl_row_action.php
  72. +8 −8 tbl_select.php
  73. +6 −6 tbl_sql.php
  74. +13 −13 tbl_structure.php
View
10 browse_foreigners.php
@@ -9,19 +9,19 @@
/**
* Gets a core script and starts output buffering work
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
PMA_checkParameters(array('db', 'table', 'field'));
-require_once './libraries/ob.lib.php';
+require_once 'libraries/ob.lib.php';
PMA_outBufferPre();
-require_once './libraries/header_http.inc.php';
+require_once 'libraries/header_http.inc.php';
/**
* Displays the frame
*/
-require_once './libraries/transformations.lib.php'; // Transformations
+require_once 'libraries/transformations.lib.php'; // Transformations
$cfgRelation = PMA_getRelationsParam();
$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : false);
@@ -85,7 +85,7 @@
href="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&amp;js_frame=right&amp;nocache=<?php echo $GLOBALS['PMA_Config']->getThemeUniqueValue(); ?>" />
<?php
// includes everything asked for by libraries/common.inc.php
-require_once './libraries/header_scripts.inc.php';
+require_once 'libraries/header_scripts.inc.php';
?>
<script type="text/javascript">
//<![CDATA[
View
2  changelog.php
@@ -9,7 +9,7 @@
/**
* Gets core libraries and defines some variables
*/
-require './libraries/common.inc.php';
+require 'libraries/common.inc.php';
$filename = CHANGELOG_FILE;
View
6 chk_rel.php
@@ -8,8 +8,8 @@
/**
* Gets some core libraries
*/
-require_once './libraries/common.inc.php';
-require_once './libraries/header.inc.php';
+require_once 'libraries/common.inc.php';
+require_once 'libraries/header.inc.php';
/**
@@ -21,5 +21,5 @@
/**
* Displays the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
16 db_create.php
@@ -8,15 +8,15 @@
/**
* Gets some core libraries
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
$GLOBALS['js_include'][] = 'functions.js';
$GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.16.custom.js';
-require_once './libraries/mysql_charsets.lib.php';
+require_once 'libraries/mysql_charsets.lib.php';
if (!PMA_DRIZZLE) {
- include_once './libraries/replication.inc.php';
+ include_once 'libraries/replication.inc.php';
}
-require './libraries/build_html_for_db.lib.php';
+require 'libraries/build_html_for_db.lib.php';
/**
* Sets globals from $_POST
@@ -67,8 +67,8 @@
PMA_ajaxResponse($message, false);
}
- include_once './libraries/header.inc.php';
- include_once './main.php';
+ include_once 'libraries/header.inc.php';
+ include_once 'main.php';
} else {
$message = PMA_Message::success(__('Database %1$s has been created.'));
$message->addParam($new_db);
@@ -138,7 +138,7 @@
PMA_ajaxResponse($message, true, $extra_data);
}
- include_once './libraries/header.inc.php';
- include_once './' . $cfg['DefaultTabDatabase'];
+ include_once 'libraries/header.inc.php';
+ include_once '' . $cfg['DefaultTabDatabase'];
}
?>
View
10 db_datadict.php
@@ -8,11 +8,11 @@
/**
* Gets the variables sent or posted to this script, then displays headers
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
if (! isset($selected_tbl)) {
- include './libraries/db_common.inc.php';
- include './libraries/db_info.inc.php';
+ include 'libraries/db_common.inc.php';
+ include 'libraries/db_info.inc.php';
}
@@ -21,7 +21,7 @@
*/
$cfgRelation = PMA_getRelationsParam();
-require_once './libraries/transformations.lib.php';
+require_once 'libraries/transformations.lib.php';
/**
@@ -271,5 +271,5 @@
*/
PMA_printButton();
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
8 db_events.php
@@ -9,8 +9,8 @@
/**
* Include required files
*/
-require_once './libraries/common.inc.php';
-require_once './libraries/common.lib.php';
+require_once 'libraries/common.inc.php';
+require_once 'libraries/common.lib.php';
/**
* Include JavaScript libraries
@@ -25,12 +25,12 @@
/**
* Include all other files
*/
-require_once './libraries/rte/rte_events.lib.php';
+require_once 'libraries/rte/rte_events.lib.php';
/**
* Do the magic
*/
$_PMA_RTE = 'EVN';
-require_once './libraries/rte/rte_main.inc.php';
+require_once 'libraries/rte/rte_main.inc.php';
?>
View
12 db_export.php
@@ -9,16 +9,16 @@
/**
* Gets some core libraries
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
$GLOBALS['js_include'][] = 'export.js';
// $sub_part is also used in db_info.inc.php to see if we are coming from
// db_export.php, in which case we don't obey $cfg['MaxTableList']
$sub_part = '_export';
-require_once './libraries/db_common.inc.php';
+require_once 'libraries/db_common.inc.php';
$url_query .= '&amp;goto=db_export.php';
-require_once './libraries/db_info.inc.php';
+require_once 'libraries/db_info.inc.php';
/**
* Displays the form
@@ -28,7 +28,7 @@
// exit if no tables in db found
if ($num_tables < 1) {
PMA_Message::error(__('No tables found in database.'))->display();
- include './libraries/footer.inc.php';
+ include 'libraries/footer.inc.php';
exit;
} // end if
@@ -77,10 +77,10 @@
$multi_values .= '</select></div>';
$export_type = 'database';
-require_once './libraries/display_export.lib.php';
+require_once 'libraries/display_export.lib.php';
/**
* Displays the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
10 db_import.php
@@ -8,22 +8,22 @@
/**
*
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
$GLOBALS['js_include'][] = 'import.js';
/**
* Gets tables informations and displays top links
*/
-require './libraries/db_common.inc.php';
-require './libraries/db_info.inc.php';
+require 'libraries/db_common.inc.php';
+require 'libraries/db_info.inc.php';
$import_type = 'database';
-require './libraries/display_import.lib.php';
+require 'libraries/display_import.lib.php';
/**
* Displays the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
16 db_operations.php
@@ -15,8 +15,8 @@
/**
* requirements
*/
-require_once './libraries/common.inc.php';
-require_once './libraries/mysql_charsets.lib.php';
+require_once 'libraries/common.inc.php';
+require_once 'libraries/mysql_charsets.lib.php';
// add a javascript file for jQuery functions to handle Ajax actions
// also add jQueryUI
@@ -129,7 +129,7 @@
$views = array();
// remove all foreign key constraints, otherwise we can get errors
- include_once './libraries/export/sql.php';
+ include_once 'libraries/export/sql.php';
foreach ($tables_full as $each_table => $tmp) {
$sql_constraints = '';
$sql_drop_foreign_keys = '';
@@ -289,7 +289,7 @@
/**
* cleanup pmadb stuff for this db
*/
- include_once './libraries/relation_cleanup.lib.php';
+ include_once 'libraries/relation_cleanup.lib.php';
PMA_relationsCleanupDatabase($db);
// if someday the RENAME DATABASE reappears, do not DROP
@@ -355,12 +355,12 @@
* because there is no table in the database ($is_info is true)
*/
if (empty($is_info)) {
- include './libraries/db_common.inc.php';
+ include 'libraries/db_common.inc.php';
$url_query .= '&amp;goto=db_operations.php';
// Gets the database structure
$sub_part = '_structure';
- include './libraries/db_info.inc.php';
+ include 'libraries/db_info.inc.php';
echo "\n";
if (isset($message)) {
@@ -403,7 +403,7 @@
}
?>
<div class="operations_half_width">
- <?php include './libraries/display_create_table.lib.php'; ?>
+ <?php include 'libraries/display_create_table.lib.php'; ?>
</div>
<?php
/**
@@ -618,5 +618,5 @@
/**
* Displays the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
6 db_printview.php
@@ -8,13 +8,13 @@
/**
*
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
/**
* Gets the variables sent or posted to this script, then displays headers
*/
$print_view = true;
-require_once './libraries/header.inc.php';
+require_once 'libraries/header.inc.php';
PMA_checkParameters(array('db'));
@@ -248,5 +248,5 @@
echo "<div id='PMA_disable_floating_menubar'></div>\n";
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
12 db_qbe.php
@@ -9,7 +9,7 @@
/**
* requirements
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
/**
* Gets the relation settings
@@ -26,16 +26,16 @@
$message_to_display = true;
} else {
$goto = 'db_sql.php';
- include './sql.php';
+ include 'sql.php';
exit;
}
}
$sub_part = '_qbe';
-require './libraries/db_common.inc.php';
+require 'libraries/db_common.inc.php';
$url_query .= '&amp;goto=db_qbe.php';
$url_params['goto'] = 'db_qbe.php';
-require './libraries/db_info.inc.php';
+require 'libraries/db_info.inc.php';
if ($message_to_display) {
PMA_Message::error(__('You have to choose at least one column to display'))->display();
@@ -99,7 +99,7 @@
$tbl_result_cnt = PMA_DBI_num_rows($tbl_result);
if (0 == $tbl_result_cnt) {
PMA_Message::error(__('No tables found in database.'))->display();
- include './libraries/footer.inc.php';
+ include 'libraries/footer.inc.php';
exit;
}
@@ -962,5 +962,5 @@ function showColumnSelectCell($columns, $column_number, $selected = '')
/**
* Displays the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
14 db_routines.php
@@ -9,13 +9,13 @@
/**
* Include required files
*/
-require_once './libraries/common.inc.php';
-require_once './libraries/common.lib.php';
-require_once './libraries/mysql_charsets.lib.php';
+require_once 'libraries/common.inc.php';
+require_once 'libraries/common.lib.php';
+require_once 'libraries/mysql_charsets.lib.php';
if (PMA_DRIZZLE) {
- include_once './libraries/data_drizzle.inc.php';
+ include_once 'libraries/data_drizzle.inc.php';
} else {
- include_once './libraries/data_mysql.inc.php';
+ include_once 'libraries/data_mysql.inc.php';
}
/**
@@ -31,12 +31,12 @@
/**
* Include all other files
*/
-require_once './libraries/rte/rte_routines.lib.php';
+require_once 'libraries/rte/rte_routines.lib.php';
/**
* Do the magic
*/
$_PMA_RTE = 'RTN';
-require_once './libraries/rte/rte_main.inc.php';
+require_once 'libraries/rte/rte_main.inc.php';
?>
View
8 db_search.php
@@ -11,7 +11,7 @@
/**
*
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
$GLOBALS['js_include'][] = 'db_search.js';
$GLOBALS['js_include'][] = 'sql.js';
@@ -21,7 +21,7 @@
/**
* Gets some core libraries and send headers
*/
-require './libraries/db_common.inc.php';
+require 'libraries/db_common.inc.php';
/**
* init
@@ -94,7 +94,7 @@
$sub_part = '';
if ( $GLOBALS['is_ajax_request'] != true) {
- include './libraries/db_info.inc.php';
+ include 'libraries/db_info.inc.php';
echo '<div id="searchresults">';
}
@@ -357,5 +357,5 @@ function PMA_getSearchSqls($table, $field, $search_str, $search_option)
/**
* Displays the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
12 db_sql.php
@@ -8,7 +8,7 @@
/**
*
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
/**
* Runs common work
@@ -19,8 +19,8 @@
$GLOBALS['js_include'][] = 'codemirror/lib/codemirror.js';
$GLOBALS['js_include'][] = 'codemirror/mode/mysql/mysql.js';
-require './libraries/db_common.inc.php';
-require_once './libraries/sql_query_form.lib.php';
+require 'libraries/db_common.inc.php';
+require_once 'libraries/sql_query_form.lib.php';
// After a syntax error, we return to this script
// with the typed query in the textarea.
@@ -45,11 +45,11 @@
* Gets informations about the database and, if it is empty, move to the
* "db_structure.php" script where table can be created
*/
-require './libraries/db_info.inc.php';
+require 'libraries/db_info.inc.php';
if ($num_tables == 0 && empty($db_query_force)) {
$sub_part = '';
$is_info = true;
- include './db_structure.php';
+ include 'db_structure.php';
exit();
}
@@ -61,5 +61,5 @@
/**
* Displays the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
24 db_structure.php
@@ -8,7 +8,7 @@
/**
*
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
$GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.16.custom.js';
$GLOBALS['js_include'][] = 'db_structure.js';
@@ -51,33 +51,33 @@
// -> db_structure.php and if we got an error on the multi submit,
// we must display it here and not call again mult_submits.inc.php
if (! isset($error) || false === $error) {
- include './libraries/mult_submits.inc.php';
+ include 'libraries/mult_submits.inc.php';
}
if (empty($message)) {
$message = PMA_Message::success();
}
}
- include './libraries/db_common.inc.php';
+ include 'libraries/db_common.inc.php';
$url_query .= '&amp;goto=db_structure.php';
// Gets the database structure
$sub_part = '_structure';
- include './libraries/db_info.inc.php';
+ include 'libraries/db_info.inc.php';
if (!PMA_DRIZZLE) {
- include_once './libraries/replication.inc.php';
+ include_once 'libraries/replication.inc.php';
} else {
$server_slave_status = false;
}
}
-require_once './libraries/bookmark.lib.php';
+require_once 'libraries/bookmark.lib.php';
-require_once './libraries/mysql_charsets.lib.php';
+require_once 'libraries/mysql_charsets.lib.php';
$db_collation = PMA_getDbCollation($db);
// in a separate file to avoid redeclaration of functions in some code paths
-require_once './libraries/db_structure.lib.php';
+require_once 'libraries/db_structure.lib.php';
$titles = PMA_buildActionTitles();
// 1. No tables
@@ -86,13 +86,13 @@
echo '<p>' . __('No tables found in database') . '</p>' . "\n";
if (empty($db_is_information_schema)) {
- include './libraries/display_create_table.lib.php';
+ include 'libraries/display_create_table.lib.php';
} // end if (Create Table dialog)
/**
* Displays the footer
*/
- include_once './libraries/footer.inc.php';
+ include_once 'libraries/footer.inc.php';
exit;
}
@@ -649,11 +649,11 @@
echo '</p>';
if (empty($db_is_information_schema)) {
- include './libraries/display_create_table.lib.php';
+ include 'libraries/display_create_table.lib.php';
} // end if (Create Table dialog)
/**
* Displays the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
14 db_tracking.php
@@ -7,7 +7,7 @@
/**
* Run common work
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
//Get some js files needed for Ajax requests
$GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.16.custom.js';
@@ -17,13 +17,13 @@
* If we are not in an Ajax request, then do the common work and show the links etc.
*/
if ($GLOBALS['is_ajax_request'] != true) {
- include './libraries/db_common.inc.php';
+ include 'libraries/db_common.inc.php';
}
$url_query .= '&amp;goto=tbl_tracking.php&amp;back=db_tracking.php';
// Get the database structure
$sub_part = '_structure';
-require './libraries/db_info.inc.php';
+require 'libraries/db_info.inc.php';
// Work to do?
// (here, do not use $_REQUEST['db] as it can be crafted)
@@ -48,11 +48,11 @@
echo '<p>' . __('No tables found in database.') . '</p>' . "\n";
if (empty($db_is_information_schema)) {
- include './libraries/display_create_table.lib.php';
+ include 'libraries/display_create_table.lib.php';
}
// Display the footer
- include './libraries/footer.inc.php';
+ include 'libraries/footer.inc.php';
exit;
}
@@ -61,7 +61,7 @@
/*
* Display top menu links
*/
-require_once './libraries/db_links.inc.php';
+require_once 'libraries/db_links.inc.php';
// Prepare statement to get HEAD version
$all_tables_query = ' SELECT table_name, MAX(version) as version FROM ' .
@@ -230,5 +230,5 @@
/**
* Display the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
8 db_triggers.php
@@ -9,8 +9,8 @@
/**
* Include required files
*/
-require_once './libraries/common.inc.php';
-require_once './libraries/common.lib.php';
+require_once 'libraries/common.inc.php';
+require_once 'libraries/common.lib.php';
/**
* Include JavaScript libraries
@@ -24,12 +24,12 @@
/**
* Include all other files
*/
-require_once './libraries/rte/rte_triggers.lib.php';
+require_once 'libraries/rte/rte_triggers.lib.php';
/**
* Do the magic
*/
$_PMA_RTE = 'TRI';
-require_once './libraries/rte/rte_main.inc.php';
+require_once 'libraries/rte/rte_main.inc.php';
?>
View
6 enum_editor.php
@@ -10,9 +10,9 @@
* @package PhpMyAdmin
*/
-require_once './libraries/common.inc.php';
-require_once './libraries/header_http.inc.php';
-require_once './libraries/header_meta_style.inc.php';
+require_once 'libraries/common.inc.php';
+require_once 'libraries/header_http.inc.php';
+require_once 'libraries/header_meta_style.inc.php';
?>
</head>
<body>
View
52 export.php
@@ -8,9 +8,9 @@
/**
* Get the variables sent or posted to this script and a core script
*/
-require_once './libraries/common.inc.php';
-require_once './libraries/zip.lib.php';
-require_once './libraries/plugin_interface.lib.php';
+require_once 'libraries/common.inc.php';
+require_once 'libraries/zip.lib.php';
+require_once 'libraries/plugin_interface.lib.php';
/**
* Sets globals from all $_POST (in export.php only)
@@ -25,7 +25,7 @@
// Scan plugins
$export_list = PMA_getPlugins(
- './libraries/export/',
+ 'libraries/export/',
array(
'export_type' => $export_type,
'single_table' => isset($single_table)));
@@ -84,16 +84,16 @@
// Does export require to be into file?
if (isset($export_list[$type]['force_file']) && ! $asfile) {
$message = PMA_Message::error(__('Selected export type has to be saved in file!'));
- include_once './libraries/header.inc.php';
+ include_once 'libraries/header.inc.php';
if ($export_type == 'server') {
$active_page = 'server_export.php';
- include './server_export.php';
+ include 'server_export.php';
} elseif ($export_type == 'database') {
$active_page = 'db_export.php';
- include './db_export.php';
+ include 'db_export.php';
} else {
$active_page = 'tbl_export.php';
- include './tbl_export.php';
+ include 'tbl_export.php';
}
exit();
}
@@ -116,7 +116,7 @@
}
// Get the functions specific to the export type
-require './libraries/export/' . PMA_securePath($type) . '.php';
+require 'libraries/export/' . PMA_securePath($type) . '.php';
/**
* Increase time limit for script execution and initializes some variables
@@ -337,16 +337,16 @@ function PMA_exportOutputHandler($line)
}
}
if (isset($message)) {
- include_once './libraries/header.inc.php';
+ include_once 'libraries/header.inc.php';
if ($export_type == 'server') {
$active_page = 'server_export.php';
- include './server_export.php';
+ include 'server_export.php';
} elseif ($export_type == 'database') {
$active_page = 'db_export.php';
- include './db_export.php';
+ include 'db_export.php';
} else {
$active_page = 'tbl_export.php';
- include './tbl_export.php';
+ include 'tbl_export.php';
}
exit();
}
@@ -371,14 +371,14 @@ function PMA_exportOutputHandler($line)
$num_tables = count($tables);
if ($num_tables == 0) {
$message = PMA_Message::error(__('No tables found in database.'));
- include_once './libraries/header.inc.php';
+ include_once 'libraries/header.inc.php';
$active_page = 'db_export.php';
- include './db_export.php';
+ include 'db_export.php';
exit();
}
}
$backup_cfgServer = $cfg['Server'];
- include_once './libraries/header.inc.php';
+ include_once 'libraries/header.inc.php';
$cfg['Server'] = $backup_cfgServer;
unset($backup_cfgServer);
echo "\n" . '<div align="' . $cell_align_left . '">' . "\n";
@@ -435,7 +435,7 @@ function PMA_exportOutputHandler($line)
$cfgRelation = PMA_getRelationsParam();
}
if ($do_mime) {
- include_once './libraries/transformations.lib.php';
+ include_once 'libraries/transformations.lib.php';
}
// Include dates in export?
@@ -620,16 +620,16 @@ function PMA_exportOutputHandler($line)
// End of fake loop
if ($save_on_server && isset($message)) {
- include_once './libraries/header.inc.php';
+ include_once 'libraries/header.inc.php';
if ($export_type == 'server') {
$active_page = 'server_export.php';
- include './server_export.php';
+ include 'server_export.php';
} elseif ($export_type == 'database') {
$active_page = 'db_export.php';
- include './db_export.php';
+ include 'db_export.php';
} else {
$active_page = 'tbl_export.php';
- include './tbl_export.php';
+ include 'tbl_export.php';
}
exit();
}
@@ -674,16 +674,16 @@ function PMA_exportOutputHandler($line)
$message = new PMA_Message(__('Dump has been saved to file %s.'), PMA_Message::SUCCESS, $save_filename);
}
- include_once './libraries/header.inc.php';
+ include_once 'libraries/header.inc.php';
if ($export_type == 'server') {
$active_page = 'server_export.php';
- include_once './server_export.php';
+ include_once 'server_export.php';
} elseif ($export_type == 'database') {
$active_page = 'db_export.php';
- include_once './db_export.php';
+ include_once 'db_export.php';
} else {
$active_page = 'tbl_export.php';
- include_once './tbl_export.php';
+ include_once 'tbl_export.php';
}
exit();
} else {
@@ -724,6 +724,6 @@ function PMA_exportOutputHandler($line)
//]]>
</script>
<?php
- include './libraries/footer.inc.php';
+ include 'libraries/footer.inc.php';
} // end if
?>
View
2  file_echo.php
@@ -7,7 +7,7 @@
* @package PhpMyAdmin
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
/* For chart exporting */
if (isset($_REQUEST['filename']) && isset($_REQUEST['image'])) {
View
12 gis_data_editor.php
@@ -1,11 +1,11 @@
<?php
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
if (! isset($_REQUEST['get_gis_editor']) && ! isset($_REQUEST['generate'])) {
- include_once './libraries/header_http.inc.php';
- include_once './libraries/header_meta_style.inc.php';
+ include_once 'libraries/header_http.inc.php';
+ include_once 'libraries/header_meta_style.inc.php';
}
-require_once './libraries/gis/pma_gis_factory.php';
-require_once './libraries/gis_visualization.lib.php';
+require_once 'libraries/gis/pma_gis_factory.php';
+require_once 'libraries/gis_visualization.lib.php';
// Get data if any posted
$gis_data = array();
@@ -336,6 +336,6 @@
/**
* Displays the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
28 import.php
@@ -9,8 +9,8 @@
/**
* Get the variables sent or posted to this script and a core script
*/
-require_once './libraries/common.inc.php';
-//require_once './libraries/display_import_functions.lib.php';
+require_once 'libraries/common.inc.php';
+//require_once 'libraries/display_import_functions.lib.php';
if (isset($_REQUEST['show_as_php'])) {
$GLOBALS['show_as_php'] = $_REQUEST['show_as_php'];
@@ -82,7 +82,7 @@
// upload limit has been reached, let's assume the second possibility.
;
if ($_POST == array() && $_GET == array()) {
- include_once './libraries/header.inc.php';
+ include_once 'libraries/header.inc.php';
$message = PMA_Message::error(__('You probably tried to upload too large file. Please refer to %sdocumentation%s for ways to workaround this limit.'));
$message->addParam('[a@./Documentation.html#faq1_16@_blank]');
$message->addParam('[/a]');
@@ -92,7 +92,7 @@
$_SESSION['Import_message']['go_back_url'] = $goto;
$message->display();
- include './libraries/footer.inc.php';
+ include 'libraries/footer.inc.php';
}
/**
@@ -119,7 +119,7 @@
$format = PMA_securePath($format);
// Import functions
-require_once './libraries/import.lib.php';
+require_once 'libraries/import.lib.php';
// Create error and goto url
if ($import_type == 'table') {
@@ -194,7 +194,7 @@
// Bookmark Support: get a query back from bookmark if required
if (!empty($id_bookmark)) {
$id_bookmark = (int)$id_bookmark;
- include_once './libraries/bookmark.lib.php';
+ include_once 'libraries/bookmark.lib.php';
switch ($action_bookmark) {
case 0: // bookmarked query that have to be run
$import_text = PMA_Bookmark_get($db, $id_bookmark, 'id', isset($action_bookmark_all));
@@ -243,7 +243,7 @@
// Store the query as a bookmark before executing it if bookmarklabel was given
if (!empty($bkm_label) && !empty($import_text)) {
- include_once './libraries/bookmark.lib.php';
+ include_once 'libraries/bookmark.lib.php';
$bfields = array(
'dbase' => $db,
'user' => $cfg['Bookmark']['user'],
@@ -316,7 +316,7 @@
if (!empty($open_basedir)) {
- $tmp_subdir = (PMA_IS_WINDOWS ? '.\\tmp\\' : './tmp/');
+ $tmp_subdir = (PMA_IS_WINDOWS ? '.\\tmp\\' : 'tmp/');
if (is_writable($tmp_subdir)) {
@@ -364,7 +364,7 @@
/**
* Load interface for zip extension.
*/
- include_once './libraries/zip_extension.lib.php';
+ include_once 'libraries/zip_extension.lib.php';
$result = PMA_getZipContents($import_file);
if (! empty($result['error'])) {
$message = PMA_Message::rawError($result['error']);
@@ -434,13 +434,13 @@
if (!$error) {
// Check for file existance
- if (!file_exists('./libraries/import/' . $format . '.php')) {
+ if (!file_exists('libraries/import/' . $format . '.php')) {
$error = true;
$message = PMA_Message::error(__('Could not load import plugins, please check your installation!'));
} else {
// Do the real import
$plugin_param = $import_type;
- include './libraries/import/' . $format . '.php';
+ include 'libraries/import/' . $format . '.php';
}
}
@@ -504,7 +504,7 @@
// (but if the query is too large, in case of an imported file, the parser
// can choke on it so avoid parsing)
if (strlen($sql_query) <= $GLOBALS['cfg']['MaxCharactersInDisplayedSQL']) {
- include_once './libraries/parse_analyze.lib.php';
+ include_once 'libraries/parse_analyze.lib.php';
}
// There was an error?
@@ -524,10 +524,10 @@
}
if ($go_sql) {
- include './sql.php';
+ include 'sql.php';
} else {
$active_page = $goto;
- include './' . $goto;
+ include '' . $goto;
}
exit();
?>
View
4 import_status.php
@@ -5,8 +5,8 @@
* @package PhpMyAdmin
*/
-require_once './libraries/common.inc.php';
-require_once './libraries/display_import_ajax.lib.php';
+require_once 'libraries/common.inc.php';
+require_once 'libraries/display_import_ajax.lib.php';
/**
* Sets globals from $_GET
View
4 index.php
@@ -10,7 +10,7 @@
/**
* Gets core libraries and defines some variables
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
// free the session file, for the other frames to be loaded
session_write_close();
@@ -69,7 +69,7 @@
// start output
-require './libraries/header_http.inc.php';
+require 'libraries/header_http.inc.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
View
2  license.php
@@ -12,7 +12,7 @@
/**
* Gets core libraries and defines some variables
*/
-require './libraries/common.inc.php';
+require 'libraries/common.inc.php';
/**
*
View
30 main.php
@@ -8,7 +8,7 @@
/**
* Gets some core libraries and displays a top message if required
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
$GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.16.custom.js';
$GLOBALS['js_include'][] = 'jquery/jquery.sprintf.js';
@@ -17,7 +17,7 @@
$GLOBALS['db'] = '';
$GLOBALS['table'] = '';
$show_query = '1';
-require_once './libraries/header.inc.php';
+require_once 'libraries/header.inc.php';
// Any message to display?
if (! empty($message)) {
@@ -30,9 +30,9 @@
// when $server > 0, a server has been chosen so we can display
// all MySQL-related information
if ($server > 0) {
- include './libraries/server_common.inc.php';
- include './libraries/StorageEngine.class.php';
- include './libraries/server_links.inc.php';
+ 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
@@ -71,7 +71,7 @@
if (! $cfg['LeftDisplayServers']
&& (count($cfg['Servers']) > 1 || $server == 0 && count($cfg['Servers']) == 1)) {
echo '<li id="li_select_server">';
- include_once './libraries/select_server.lib.php';
+ include_once 'libraries/select_server.lib.php';
PMA_select_server(true, true);
echo '</li>';
}
@@ -80,7 +80,7 @@
* Displays the mysql server related links
*/
if ($server > 0 && !PMA_DRIZZLE) {
- include_once './libraries/check_user_privileges.lib.php';
+ include_once 'libraries/check_user_privileges.lib.php';
// Logout for advanced authentication
if ($cfg['Server']['auth_type'] != 'config') {
@@ -93,7 +93,7 @@
PMA_printListItem(
__('Change password'),
'li_change_password',
- './user_password.php?' . $common_url_query,
+ 'user_password.php?' . $common_url_query,
null,
null,
'change_password_anchor',
@@ -127,7 +127,7 @@
// Displays language selection combo
if (empty($cfg['Lang'])) {
echo '<li id="li_select_lang">';
- include_once './libraries/display_select_lang.lib.php';
+ include_once 'libraries/display_select_lang.lib.php';
PMA_select_language();
echo '</li>';
}
@@ -152,7 +152,7 @@
echo PMA_printListItem(
__('More settings'),
'li_user_preferences',
- './prefs_manage.php?' . $common_url_query
+ 'prefs_manage.php?' . $common_url_query
);
echo '</ul>';
}
@@ -218,7 +218,7 @@
}
if ($cfg['ShowPhpInfo']) {
- PMA_printListItem(__('Show PHP information'), 'li_phpinfo', './phpinfo.php?' . $common_url_query);
+ PMA_printListItem(__('Show PHP information'), 'li_phpinfo', 'phpinfo.php?' . $common_url_query);
}
echo ' </ul>';
echo ' </div>';
@@ -312,7 +312,7 @@
* Check for existence of config directory which should not exist in
* production environment.
*/
-if (file_exists('./config')) {
+if (file_exists('config')) {
trigger_error(__('Directory [code]config[/code], which is used by the setup script, still exists in your phpMyAdmin directory. You should remove it once phpMyAdmin has been configured.'), E_USER_WARNING);
}
@@ -398,8 +398,8 @@
*
* The data file is created while creating release by ./scripts/remove-incomplete-mo
*/
-if (file_exists('./libraries/language_stats.inc.php')) {
- include './libraries/language_stats.inc.php';
+if (file_exists('libraries/language_stats.inc.php')) {
+ include 'libraries/language_stats.inc.php';
/*
* This message is intentionally not translated, because we're
* handling incomplete translations here and focus on english
@@ -457,5 +457,5 @@ function PMA_printListItem($name, $id = null, $url = null, $mysql_help_page = nu
/**
* Displays the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
20 navigation.php
@@ -9,7 +9,7 @@
/**
* Gets a core script and starts output buffering work
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
/**
* finish and cleanup navigation.php script execution, only to be used in navigation.php
@@ -22,8 +22,8 @@ function PMA_exitNavigationFrame()
exit;
}
-require_once './libraries/common.lib.php';
-require_once './libraries/RecentTable.class.php';
+require_once 'libraries/common.lib.php';
+require_once 'libraries/RecentTable.class.php';
/**
* Check if it is an ajax request to reload the recent tables list.
@@ -58,7 +58,7 @@ function PMA_exitNavigationFrame()
/**
* the output compression library
*/
-require_once './libraries/ob.lib.php';
+require_once 'libraries/ob.lib.php';
PMA_outBufferPre();
@@ -80,7 +80,7 @@ function PMA_exitNavigationFrame()
* For re-usability, moved http-headers to a seperate file.
* It can now be included by libraries/header.inc.php, querywindow.php.
*/
-require_once './libraries/header_http.inc.php';
+require_once 'libraries/header_http.inc.php';
/*
* Displays the frame
@@ -158,7 +158,7 @@ function PMA_exitNavigationFrame()
<body id="body_leftFrame">
<?php
-require './libraries/navigation_header.inc.php';
+require 'libraries/navigation_header.inc.php';
// display recently used tables
if ($GLOBALS['cfg']['LeftRecentTable'] > 0) {
@@ -405,8 +405,8 @@ function PMA_displayDbList($ext_dblist, $offset, $count)
title="<?php echo htmlspecialchars($db['comment']); ?>"
onclick="
if (! toggle('<?php echo $element_counter; ?>', true))
- window.parent.goTo('./navigation.php?<?php echo $common_url_query; ?>');
- window.parent.goTo('./<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
+ window.parent.goTo('navigation.php?<?php echo $common_url_query; ?>');
+ window.parent.goTo('<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
. '?' . $common_url_query; ?>', 'main');
return false;">
<?php
@@ -540,8 +540,8 @@ function PMA_displayTableList($tables, $visible = false,
target="_parent"
onclick="
if (! toggle('<?php echo $element_counter; ?>', true))
- window.parent.goTo('./navigation.php?<?php echo $common_url_query; ?>');
- window.parent.goTo('./<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
+ window.parent.goTo('navigation.php?<?php echo $common_url_query; ?>');
+ window.parent.goTo('<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
. '?' . $common_url_query; ?>', 'main');
return false;">
<?php
View
2  phpinfo.php
@@ -8,7 +8,7 @@
/**
* Gets core libraries and defines some variables
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
/**
View
4 phpmyadmin.css.php
@@ -12,8 +12,8 @@
define('PMA_FRAME', (! empty($_REQUEST['js_frame']) && is_string($_REQUEST['js_frame'])) ? $_REQUEST['js_frame'] : 'right');
define('PMA_MINIMUM_COMMON', true);
-require_once './libraries/common.inc.php';
-require_once './libraries/sqlparser.lib.php';
+require_once 'libraries/common.inc.php';
+require_once 'libraries/sqlparser.lib.php';
// MSIE 6 (at least some unpatched versions) has problems loading CSS
// when zlib_compression is on
View
2  pmd_display_field.php
@@ -7,7 +7,7 @@
/**
*
*/
-require_once './libraries/pmd_common.php';
+require_once 'libraries/pmd_common.php';
$table = $T;
View
8 pmd_general.php
@@ -7,9 +7,9 @@
/**
*
*/
-require_once './libraries/pmd_common.php';
-require './libraries/db_common.inc.php';
-require './libraries/db_info.inc.php';
+require_once 'libraries/pmd_common.php';
+require 'libraries/db_common.inc.php';
+require 'libraries/db_info.inc.php';
$tab_column = get_tab_info();
$script_tabs = get_script_tabs();
@@ -22,7 +22,7 @@
if (isset($GLOBALS['db'])) {
$params['db'] = $GLOBALS['db'];
}
-require_once './libraries/header_scripts.inc.php';
+require_once 'libraries/header_scripts.inc.php';
?>
<script type="text/javascript">
// <![CDATA[
View
4 pmd_pdf.php
@@ -5,7 +5,7 @@
* @package PhpMyAdmin-Designer
*/
-require_once './libraries/pmd_common.php';
+require_once 'libraries/pmd_common.php';
/**
* If called directly from the designer, first save the positions
@@ -58,7 +58,7 @@
}
// no need to use pmd/styles
-require_once './libraries/header_meta_style.inc.php';
+require_once 'libraries/header_meta_style.inc.php';
?>
</head>
<body>
View
2  pmd_relation_new.php
@@ -8,7 +8,7 @@
/**
*
*/
-require_once './libraries/pmd_common.php';
+require_once 'libraries/pmd_common.php';
$die_save_pos = 0;
require_once 'pmd_save_pos.php';
extract($_POST, EXTR_SKIP);
View
2  pmd_relation_upd.php
@@ -8,7 +8,7 @@
/**
*
*/
-require_once './libraries/pmd_common.php';
+require_once 'libraries/pmd_common.php';
extract($_POST, EXTR_SKIP);
extract($_GET, EXTR_SKIP);
$die_save_pos = 0;
View
2  pmd_save_pos.php
@@ -8,7 +8,7 @@
/**
*
*/
-require_once './libraries/pmd_common.php';
+require_once 'libraries/pmd_common.php';
$cfgRelation = PMA_getRelationsParam();
View
22 prefs_forms.php
@@ -9,14 +9,14 @@
/**
* Gets some core libraries and displays a top message if required
*/
-require_once './libraries/common.inc.php';
-require_once './libraries/user_preferences.lib.php';
-require_once './libraries/config/config_functions.lib.php';
-require_once './libraries/config/messages.inc.php';
-require_once './libraries/config/ConfigFile.class.php';
-require_once './libraries/config/Form.class.php';
-require_once './libraries/config/FormDisplay.class.php';
-require './libraries/config/user_preferences.forms.php';
+require_once 'libraries/common.inc.php';
+require_once 'libraries/user_preferences.lib.php';
+require_once 'libraries/config/config_functions.lib.php';
+require_once 'libraries/config/messages.inc.php';
+require_once 'libraries/config/ConfigFile.class.php';
+require_once 'libraries/config/Form.class.php';
+require_once 'libraries/config/FormDisplay.class.php';
+require 'libraries/config/user_preferences.forms.php';
PMA_userprefs_pageinit();
@@ -66,8 +66,8 @@
// display forms
$GLOBALS['js_include'][] = 'config.js';
-require './libraries/header.inc.php';
-require './libraries/user_preferences.inc.php';
+require 'libraries/header.inc.php';
+require 'libraries/user_preferences.inc.php';
if ($error) {
$error->display();
}
@@ -85,5 +85,5 @@
/**
* Displays the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
32 prefs_manage.php
@@ -9,14 +9,14 @@
/**
* Gets some core libraries and displays a top message if required
*/
-require_once './libraries/common.inc.php';
-require_once './libraries/user_preferences.lib.php';
-require_once './libraries/config/config_functions.lib.php';
-require_once './libraries/config/messages.inc.php';
-require_once './libraries/config/ConfigFile.class.php';
-require_once './libraries/config/Form.class.php';
-require_once './libraries/config/FormDisplay.class.php';
-require './libraries/config/user_preferences.forms.php';
+require_once 'libraries/common.inc.php';
+require_once 'libraries/user_preferences.lib.php';
+require_once 'libraries/config/config_functions.lib.php';
+require_once 'libraries/config/messages.inc.php';
+require_once 'libraries/config/ConfigFile.class.php';
+require_once 'libraries/config/Form.class.php';
+require_once 'libraries/config/FormDisplay.class.php';
+require 'libraries/config/user_preferences.forms.php';
PMA_userprefs_pageinit();
@@ -51,7 +51,7 @@
// before opening it. The doc explains how to create the "./tmp"
// directory
if (!empty($open_basedir)) {
- $tmp_subdir = (PMA_IS_WINDOWS ? '.\\tmp\\' : './tmp/');
+ $tmp_subdir = (PMA_IS_WINDOWS ? '.\\tmp\\' : 'tmp/');
if (is_writable($tmp_subdir)) {
$import_file_new = tempnam($tmp_subdir, 'prefs');
if (move_uploaded_file($import_file, $import_file_new)) {
@@ -105,8 +105,8 @@
}
if (!$all_ok) {
// mimic original form and post json in a hidden field
- include './libraries/header.inc.php';
- include './libraries/user_preferences.inc.php';
+ include 'libraries/header.inc.php';
+ include 'libraries/user_preferences.inc.php';
$msg = PMA_Message::error(__('Configuration contains incorrect data for some fields.'));
$msg->display();
echo '<div class="config-form">';
@@ -128,7 +128,7 @@
<input type="submit" name="submit_ignore" value="<?php echo __('No') ?>" />
</form>
<?php
- include './libraries/footer.inc.php';
+ include 'libraries/footer.inc.php';
return;
}
@@ -209,8 +209,8 @@
}
$GLOBALS['js_include'][] = 'config.js';
-require './libraries/header.inc.php';
-require './libraries/user_preferences.inc.php';
+require 'libraries/header.inc.php';
+require 'libraries/user_preferences.inc.php';
if ($error) {
if (!$error instanceof PMA_Message) {
$error = PMA_Message::error($error);
@@ -264,7 +264,7 @@
</form>
</div>
<?php
- if (file_exists('./setup/index.php')) {
+ if (file_exists('setup/index.php')) {
// show only if setup script is available, allows to disable this message
// by simply removing setup directory
?>
@@ -331,5 +331,5 @@
/**
* Displays the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
20 querywindow.php
@@ -10,19 +10,19 @@
/**
*
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
$is_superuser = PMA_isSuperuser();
/**
* Gets a core script and starts output buffering work
*/
-require_once './libraries/sql_query_form.lib.php';
+require_once 'libraries/sql_query_form.lib.php';
/**
* starts output buffering if requested and supported
*/
-require_once './libraries/ob.lib.php';
+require_once 'libraries/ob.lib.php';
PMA_outBufferPre();
/**
@@ -33,7 +33,7 @@
/**
* load bookmark support
*/
-require_once './libraries/bookmark.lib.php';
+require_once 'libraries/bookmark.lib.php';
$querydisplay_tabs = array(
'sql',
@@ -95,11 +95,11 @@
// ... we redirect to appropriate query sql page
// works only full if $db and $table is also stored/grabbed from $_COOKIE
if (strlen($table)) {
- include './tbl_sql.php';
+ include 'tbl_sql.php';
} elseif (strlen($db)) {
- include './db_sql.php';
+ include 'db_sql.php';
} else {
- include './server_sql.php';
+ include 'server_sql.php';
}
exit;
}
@@ -145,9 +145,9 @@
/**
* start HTTP/HTML output
*/
-require_once './libraries/header_http.inc.php';
-require_once './libraries/header_meta_style.inc.php';
-require_once './libraries/header_scripts.inc.php';
+require_once 'libraries/header_http.inc.php';
+require_once 'libraries/header_meta_style.inc.php';
+require_once 'libraries/header_scripts.inc.php';
?>
</head>
View
24 schema_edit.php
@@ -9,21 +9,21 @@
* Gets some core libraries
*/
-require_once './libraries/common.inc.php';
-require_once './libraries/db_common.inc.php';
-require './libraries/StorageEngine.class.php';
+require_once 'libraries/common.inc.php';
+require_once 'libraries/db_common.inc.php';
+require 'libraries/StorageEngine.class.php';
$active_page = 'db_operations.php';
-require_once './libraries/db_common.inc.php';
+require_once 'libraries/db_common.inc.php';
$url_query .= '&amp;goto=schema_edit.php';
-require_once './libraries/db_info.inc.php';
+require_once 'libraries/db_info.inc.php';
/**
* Includ settings for relation stuff
* get all variables needed for exporting relational schema
* in $cfgRelation
*/
-require_once './libraries/relation.lib.php';
+require_once 'libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
/**
@@ -37,24 +37,24 @@
if (! $cfgRelation['relwork']) {
echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'relation', 'config.inc.php') . '<br />' . "\n"
. PMA_showDocu('relation') . "\n";
- include_once './libraries/footer.inc.php';
+ include_once 'libraries/footer.inc.php';
}
if (! $cfgRelation['displaywork']) {
echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'table_info', 'config.inc.php') . '<br />' . "\n"
. PMA_showDocu('table_info') . "\n";
- include_once './libraries/footer.inc.php';
+ include_once 'libraries/footer.inc.php';
}
if (! isset($cfgRelation['table_coords'])) {
echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'table_coords', 'config.inc.php') . '<br />' . "\n"
. PMA_showDocu('table_coords') . "\n";
- include_once './libraries/footer.inc.php';
+ include_once 'libraries/footer.inc.php';
}
if (! isset($cfgRelation['pdf_pages'])) {
echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'pdf_page', 'config.inc.php') . '<br />' . "\n"
. PMA_showDocu('pdf_pages') . "\n";
- include_once './libraries/footer.inc.php';
+ include_once 'libraries/footer.inc.php';
}
if ($cfgRelation['pdfwork']) {
@@ -64,7 +64,7 @@
* so, user can interact with it and perform export of relations schema
*/
- include_once './libraries/schema/User_Schema.class.php';
+ include_once 'libraries/schema/User_Schema.class.php';
$user_schema = new PMA_User_Schema();
/**
@@ -128,5 +128,5 @@
* Displays the footer
*/
echo "\n";
-require_once './libraries/footer.inc.php';
+require_once 'libraries/footer.inc.php';
?>
View
12 schema_export.php
@@ -8,19 +8,19 @@
/**
* Gets some core libraries
*/
-require_once './libraries/common.inc.php';
-require './libraries/StorageEngine.class.php';
+require_once 'libraries/common.inc.php';
+require 'libraries/StorageEngine.class.php';
/**
* Include settings for relation stuff
* get all variables needed for exporting relational schema
* in $cfgRelation
*/
-require_once './libraries/relation.lib.php';
+require_once 'libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
-require_once './libraries/transformations.lib.php';
-require_once './libraries/Index.class.php';
+require_once 'libraries/transformations.lib.php';
+require_once 'libraries/Index.class.php';
require_once "libraries/schema/Export_Relation_Schema.class.php";
/**
@@ -35,7 +35,7 @@
PMA_DBI_select_db($db);
$path = PMA_securePath(ucfirst($export_type));
-if (!file_exists('./libraries/schema/' . $path . '_Relation_Schema.class.php')) {
+if (!file_exists('libraries/schema/' . $path . '_Relation_Schema.class.php')) {
PMA_Export_Relation_Schema::dieSchema($_POST['chpage'], $export_type, __('File doesn\'t exist'));
}
require "libraries/schema/".$path."_Relation_Schema.class.php";
View
8 server_binlog.php
@@ -9,17 +9,17 @@
/**
*
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
/**
* Does the common work, provides $binary_logs
*/
-require_once './libraries/server_common.inc.php';
+require_once 'libraries/server_common.inc.php';
/**
* Displays the links
*/
-require_once './libraries/server_links.inc.php';
+require_once 'libraries/server_links.inc.php';
$url_params = array();
@@ -213,6 +213,6 @@
/**
* Sends the footer
*/
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
10 server_collations.php
@@ -15,18 +15,18 @@
/**
* requirements
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
/**
* Does the common work
*/
-require './libraries/server_common.inc.php';
+require 'libraries/server_common.inc.php';
/**
* Displays the links
*/
-require './libraries/server_links.inc.php';
+require 'libraries/server_links.inc.php';
/**
@@ -42,7 +42,7 @@
/**
* Includes the required charset library
*/
-require_once './libraries/mysql_charsets.lib.php';
+require_once 'libraries/mysql_charsets.lib.php';
/**
@@ -95,6 +95,6 @@
echo '</table>' . "\n"
. '</div>' . "\n";
-require './libraries/footer.inc.php';
+require 'libraries/footer.inc.php';
?>
View
16 server_databases.php
@@ -8,16 +8,16 @@
/**
* Does the common work
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
-require './libraries/server_common.inc.php';
+require 'libraries/server_common.inc.php';
if (!PMA_DRIZZLE) {
- include_once './libraries/replication.inc.php';
+ include_once 'libraries/replication.inc.php';
} else {
$replication_types = array();
$replication_info = null;
}
-require './libraries/build_html_for_db.lib.php';
+require 'libraries/build_html_for_db.lib.php';
/**
* Sets globals from $_POST
@@ -88,7 +88,7 @@
if (isset($_REQUEST['selected_dbs'])) {
$selected_db = $_REQUEST['selected_dbs'];
}
- include './libraries/mult_submits.inc.php';
+ include 'libraries/mult_submits.inc.php';
unset($action, $submit_mult, $err_url, $selected_db, $GLOBALS['db']);
if (empty($message)) {
$message = PMA_Message::success(__('%s databases have been dropped successfully.'));