Permalink
Browse files

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

  • Loading branch information...
Jo Michael
Jo Michael committed Mar 16, 2012
1 parent 3b56f6a commit b2fd866d87abe49b7003393004dcec8805125362
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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';
?>
Oops, something went wrong.

0 comments on commit b2fd866

Please sign in to comment.