coding standard: no braces around include
This commit is contained in:
22
import.php
22
import.php
@@ -9,7 +9,7 @@
|
||||
/**
|
||||
* Get the variables sent or posted to this script and a core script
|
||||
*/
|
||||
require_once('./libraries/common.inc.php');
|
||||
require_once './libraries/common.inc.php';
|
||||
$js_to_run = 'functions.js';
|
||||
|
||||
// default values
|
||||
@@ -49,10 +49,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('./libraries/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('./libraries/footer.inc.php');
|
||||
require './libraries/footer.inc.php';
|
||||
}
|
||||
|
||||
// Check needed parameters
|
||||
@@ -62,7 +62,7 @@ PMA_checkParameters(array('import_type', 'format'));
|
||||
$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') {
|
||||
@@ -132,7 +132,7 @@ $bookmark_created = FALSE;
|
||||
|
||||
// Bookmark Support: get a query back from bookmark if required
|
||||
if (!empty($id_bookmark)) {
|
||||
require_once('./libraries/bookmark.lib.php');
|
||||
require_once './libraries/bookmark.lib.php';
|
||||
switch ($action_bookmark) {
|
||||
case 0: // bookmarked query that have to be run
|
||||
$import_text = PMA_queryBookmarks($db, $cfg['Bookmark'], $id_bookmark, 'id', isset($action_bookmark_all));
|
||||
@@ -167,7 +167,7 @@ if (isset($GLOBALS['show_as_php'])) {
|
||||
|
||||
// Store the query as a bookmark before executing it if bookmarklabel was given
|
||||
if (!empty($bkm_label) && !empty($import_text)) {
|
||||
require_once('./libraries/bookmark.lib.php');
|
||||
require_once './libraries/bookmark.lib.php';
|
||||
$bfields = array(
|
||||
'dbase' => $db,
|
||||
'user' => $cfg['Bookmark']['user'],
|
||||
@@ -276,7 +276,7 @@ if ($import_file != 'none' && !$error) {
|
||||
break;
|
||||
case 'application/zip':
|
||||
if ($cfg['GZipDump'] && @function_exists('gzinflate')) {
|
||||
include_once('./libraries/unzip.lib.php');
|
||||
include_once './libraries/unzip.lib.php';
|
||||
$import_handle = new SimpleUnzip();
|
||||
$import_handle->ReadFile($import_file);
|
||||
if ($import_handle->Count() == 0) {
|
||||
@@ -355,7 +355,7 @@ if (!$error) {
|
||||
} else {
|
||||
// Do the real import
|
||||
$plugin_param = $import_type;
|
||||
require('./libraries/import/' . $format . '.php');
|
||||
require './libraries/import/' . $format . '.php';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -397,7 +397,7 @@ if ($timeout_passed) {
|
||||
|
||||
// Parse and analyze the query, for correct db and table name
|
||||
// in case of a query typed in the query window
|
||||
require_once('./libraries/parse_analyze.lib.php');
|
||||
require_once './libraries/parse_analyze.lib.php';
|
||||
|
||||
// There was an error?
|
||||
if (isset($my_die)) {
|
||||
@@ -414,10 +414,10 @@ if ($go_sql) {
|
||||
// Set pos to zero to possibly append limit
|
||||
$pos = 0;
|
||||
}
|
||||
require('./sql.php');
|
||||
require './sql.php';
|
||||
} else {
|
||||
$active_page = $goto;
|
||||
require('./' . $goto);
|
||||
require './' . $goto;
|
||||
}
|
||||
exit();
|
||||
?>
|
||||
|
Reference in New Issue
Block a user