diff --git a/db_operations.php b/db_operations.php
index 2818864c6e..bed41307b5 100644
--- a/db_operations.php
+++ b/db_operations.php
@@ -66,7 +66,7 @@ if (strlen($db) && (! empty($_REQUEST['db_rename']) || ! empty($_REQUEST['db_cop
$tables_full = PMA_DBI_get_tables_full($db);
- require_once "libraries/plugin_interface.lib.php";
+ include_once "libraries/plugin_interface.lib.php";
// remove all foreign key constraints, otherwise we can get errors
$export_sql_plugin = PMA_getPlugin(
"export",
@@ -77,8 +77,8 @@ if (strlen($db) && (! empty($_REQUEST['db_rename']) || ! empty($_REQUEST['db_cop
'export_type' => 'database'
)
);
- $GLOBALS['sql_constraints_query_full_db'] =
- PMA_getSqlConstraintsQueryForFullDb(
+ $GLOBALS['sql_constraints_query_full_db']
+ = PMA_getSqlConstraintsQueryForFullDb(
$tables_full, $export_sql_plugin, $move, $db
);
diff --git a/db_structure.php b/db_structure.php
index 95c2fc4959..7d71d7562d 100644
--- a/db_structure.php
+++ b/db_structure.php
@@ -271,9 +271,9 @@ foreach ($tables as $keyname => $current_table) {
list($html_output, $odd_row) = PMA_getHtmlForStructureTableRow(
$i, $odd_row, $table_is_view, $current_table, $checked,
- $browse_table_label, $tracking_icon,$server_slave_status,
+ $browse_table_label, $tracking_icon, $server_slave_status,
$browse_table, $tbl_url_query, $search_table, $db_is_information_schema,
- $titles, $empty_table,$drop_query, $drop_message, $collation,
+ $titles, $empty_table, $drop_query, $drop_message, $collation,
$formatted_size, $unit, $overhead,
(isset ($create_time) ? $create_time : ''),
(isset ($update_time) ? $update_time : ''),
diff --git a/import.php b/import.php
index 70e471b07b..f34fa70c53 100644
--- a/import.php
+++ b/import.php
@@ -442,7 +442,7 @@ $sql_data = array('valid_sql' => array(), 'valid_queries' => 0);
if (! $error) {
// Check for file existance
- require_once("libraries/plugin_interface.lib.php");
+ include_once "libraries/plugin_interface.lib.php";
$import_plugin = PMA_getPlugin(
"import",
$format,
diff --git a/js/tbl_zoom_plot_jqplot.js b/js/tbl_zoom_plot_jqplot.js
index 4c3b0706fa..cb01a35a7f 100644
--- a/js/tbl_zoom_plot_jqplot.js
+++ b/js/tbl_zoom_plot_jqplot.js
@@ -142,10 +142,10 @@ $(document).ready(function() {
$('#tableFieldsId tr:eq(1) td:eq(1)').html(data.field_collation);
$('#tableFieldsId tr:eq(1) td:eq(2)').html(data.field_operators);
$('#tableFieldsId tr:eq(1) td:eq(3)').html(data.field_value);
- xLabel = $('#tableid_0').val();
- $('#types_0').val(data.field_type);
+ xLabel = $('#tableid_0').val();
+ $('#types_0').val(data.field_type);
xType = data.field_type;
- $('#collations_0').val(data.field_collations);
+ $('#collations_0').val(data.field_collations);
addDateTimePicker();
});
});
@@ -153,7 +153,7 @@ $(document).ready(function() {
// second column choice corresponds to the Y axis
$('#tableid_1').change(function() {
//AJAX request for field type, collation, operators, and value field
- $.post('tbl_zoom_select.php',{
+ $.post('tbl_zoom_select.php',{
'ajax_request' : true,
'change_tbl_info' : true,
'db' : window.parent.db,
@@ -166,17 +166,17 @@ $(document).ready(function() {
$('#tableFieldsId tr:eq(3) td:eq(1)').html(data.field_collation);
$('#tableFieldsId tr:eq(3) td:eq(2)').html(data.field_operators);
$('#tableFieldsId tr:eq(3) td:eq(3)').html(data.field_value);
- yLabel = $('#tableid_1').val();
- $('#types_1').val(data.field_type);
+ yLabel = $('#tableid_1').val();
+ $('#types_1').val(data.field_type);
yType = data.field_type;
- $('#collations_1').val(data.field_collations);
+ $('#collations_1').val(data.field_collations);
addDateTimePicker();
});
});
$('#tableid_2').change(function() {
//AJAX request for field type, collation, operators, and value field
- $.post('tbl_zoom_select.php',{
+ $.post('tbl_zoom_select.php',{
'ajax_request' : true,
'change_tbl_info' : true,
'db' : window.parent.db,
@@ -189,15 +189,15 @@ $(document).ready(function() {
$('#tableFieldsId tr:eq(6) td:eq(1)').html(data.field_collation);
$('#tableFieldsId tr:eq(6) td:eq(2)').html(data.field_operators);
$('#tableFieldsId tr:eq(6) td:eq(3)').html(data.field_value);
- $('#types_2').val(data.field_type);
- $('#collations_2').val(data.field_collations);
+ $('#types_2').val(data.field_type);
+ $('#collations_2').val(data.field_collations);
addDateTimePicker();
});
});
$('#tableid_3').change(function() {
//AJAX request for field type, collation, operators, and value field
- $.post('tbl_zoom_select.php',{
+ $.post('tbl_zoom_select.php',{
'ajax_request' : true,
'change_tbl_info' : true,
'db' : window.parent.db,
@@ -210,8 +210,8 @@ $(document).ready(function() {
$('#tableFieldsId tr:eq(8) td:eq(1)').html(data.field_collation);
$('#tableFieldsId tr:eq(8) td:eq(2)').html(data.field_operators);
$('#tableFieldsId tr:eq(8) td:eq(3)').html(data.field_value);
- $('#types_3').val(data.field_type);
- $('#collations_3').val(data.field_collations);
+ $('#types_3').val(data.field_type);
+ $('#collations_3').val(data.field_collations);
addDateTimePicker();
});
});
diff --git a/libraries/CommonFunctions.class.php b/libraries/CommonFunctions.class.php
index f90a508b0e..3f48a40825 100644
--- a/libraries/CommonFunctions.class.php
+++ b/libraries/CommonFunctions.class.php
@@ -3514,7 +3514,7 @@ class PMA_CommonFunctions
/* Optional escaping */
if (! is_null($escape)) {
if (is_array($escape)) {
- require_once $escape[2];
+ include_once $escape[2];
$escape_class = new $escape[1];
$escape_method = $escape[0];
}
diff --git a/libraries/Tracker.class.php b/libraries/Tracker.class.php
index 9d8c430dc5..052804f10e 100644
--- a/libraries/Tracker.class.php
+++ b/libraries/Tracker.class.php
@@ -267,7 +267,7 @@ class PMA_Tracker
}
// get Export SQL instance
- require_once "libraries/plugin_interface.lib.php";
+ include_once "libraries/plugin_interface.lib.php";
$export_sql_plugin = PMA_getPlugin(
"export",
"sql",
diff --git a/libraries/error.inc.php b/libraries/error.inc.php
index 22b7474ee9..7e3f8ae118 100644
--- a/libraries/error.inc.php
+++ b/libraries/error.inc.php
@@ -14,7 +14,7 @@ if (! defined('TESTSUITE')) {
header('Content-Type: text/html; charset=utf-8');
}
-include_once 'libraries/Response.class.php';
+require_once 'libraries/Response.class.php';
PMA_Response::getInstance()->disable();
?>
diff --git a/libraries/mult_submits.inc.php b/libraries/mult_submits.inc.php
index 3008805431..4fc5c747ee 100644
--- a/libraries/mult_submits.inc.php
+++ b/libraries/mult_submits.inc.php
@@ -496,7 +496,7 @@ if (!empty($submit_mult) && !empty($what)) {
} elseif ($query_type == 'drop_tbl') {
PMA_clearTransformations($db, $selected[$i]);
} else if ($query_type == 'drop_fld') {
- PMA_clearTransformations($db, $table ,$selected[$i]);
+ PMA_clearTransformations($db, $table, $selected[$i]);
}
} // end if
diff --git a/libraries/replication_gui.lib.php b/libraries/replication_gui.lib.php
index 3cad0da787..d2bd825444 100644
--- a/libraries/replication_gui.lib.php
+++ b/libraries/replication_gui.lib.php
@@ -150,8 +150,7 @@ function PMA_replication_print_status_table($type, $hidden = false, $title = tru
'Replicate_Wild_Do_Table', 'Replicate_Wild_Ignore_Table');
if (in_array($variable, $variables_wrap)) {
echo str_replace(',', ', ', ${"server_{$type}_replication"}[0][$variable]);
- }
- else {
+ } else {
echo ${"server_{$type}_replication"}[0][$variable];
}
echo '';
diff --git a/libraries/rte/rte_routines.lib.php b/libraries/rte/rte_routines.lib.php
index 8c13151c59..978141e91a 100644
--- a/libraries/rte/rte_routines.lib.php
+++ b/libraries/rte/rte_routines.lib.php
@@ -264,7 +264,7 @@ function PMA_RTN_parseRoutineDefiner($parsed_query)
function PMA_RTN_handleEditor()
{
global $_GET, $_POST, $_REQUEST, $GLOBALS, $db, $errors;
-
+
$common_functions = PMA_CommonFunctions::getInstance();
if (! empty($_REQUEST['editor_process_add'])
@@ -443,7 +443,7 @@ function PMA_RTN_handleEditor()
function PMA_RTN_getDataFromRequest()
{
global $_REQUEST, $param_directions, $param_sqldataaccess;
-
+
$common_functions = PMA_CommonFunctions::getInstance();
$retval = array();
@@ -689,7 +689,7 @@ function PMA_RTN_getDataFromName($name, $type, $all = true)
function PMA_RTN_getParameterRow($routine = array(), $index = null, $class = '')
{
global $param_directions, $param_opts_num, $titles;
-
+
$common_functions = PMA_CommonFunctions::getInstance();
if ($index === null) {
@@ -1045,7 +1045,7 @@ function PMA_RTN_getQueryFromRequest()
{
global $_REQUEST, $errors, $param_sqldataaccess, $param_directions;
- $common_functions = PMA_CommonFunctions::getInstance();
+ $common_functions = PMA_CommonFunctions::getInstance();
$_REQUEST['item_type'] = isset($_REQUEST['item_type'])
? $_REQUEST['item_type'] : '';
@@ -1202,7 +1202,7 @@ function PMA_RTN_getQueryFromRequest()
function PMA_RTN_handleExecute()
{
global $_GET, $_POST, $_REQUEST, $GLOBALS, $db;
-
+
$common_functions = PMA_CommonFunctions::getInstance();
/**
@@ -1253,26 +1253,26 @@ function PMA_RTN_handleExecute()
. "(" . implode(', ', $args) . ") "
. "AS " . $common_functions->backquote($routine['item_name']) . ";\n";
}
-
+
// Get all the queries as one SQL statement
$multiple_query = implode("", $queries);
-
+
$outcome = true;
$affected = 0;
-
+
// Execute query
if (! PMA_DBI_try_multi_query($multiple_query)) {
$outcome = false;
}
-
+
// Generate output
if ($outcome) {
-
+
// Pass the SQL queries through the "pretty printer"
$output = '';
$output .= PMA_SQP_formatHtml(PMA_SQP_parse(implode($queries)));
$output .= '';
-
+
// Display results
$output .= "