Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo Michael <me@mynetx.net>2012-03-17 02:11:57 +0400
committerJo Michael <me@mynetx.net>2012-03-17 02:11:57 +0400
commitb2fd866d87abe49b7003393004dcec8805125362 (patch)
treec3593fe43dc230f17c983e460135071dc4d4371c /export.php
parent3b56f6a53b1cb74319fe58308907371ea93f725d (diff)
Leading ./ paths for includes can be omitted, part 2
Diffstat (limited to 'export.php')
-rw-r--r--export.php52
1 files changed, 26 insertions, 26 deletions
diff --git a/export.php b/export.php
index 69a2de32b8..8051dbaf8f 100644
--- a/export.php
+++ b/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 @@ PMA_checkParameters(array('what', 'export_type'));
// Scan plugins
$export_list = PMA_getPlugins(
- './libraries/export/',
+ 'libraries/export/',
array(
'export_type' => $export_type,
'single_table' => isset($single_table)));
@@ -84,16 +84,16 @@ if ($_REQUEST['output_format'] == 'astext') {
// 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 @@ if ($export_type == 'server') {
}
// 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 @@ if ($save_on_server) {
}
}
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 @@ if (!$save_on_server) {
$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 @@ do {
$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 @@ do {
// 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 @@ if (!empty($asfile)) {
$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 @@ if (!empty($asfile)) {
//]]>
</script>
<?php
- include './libraries/footer.inc.php';
+ include 'libraries/footer.inc.php';
} // end if
?>