The branch, master has been updated
via 3cf4830bbb94ce8fe7078f4a3f4fbac1c6253a8c (commit)
from 8b0fc6073a71097852e1330508cc20e8995ff5ae (commit)
- Log -----------------------------------------------------------------
commit 3cf4830bbb94ce8fe7078f4a3f4fbac1c6253a8c
Author: Michal Čihař <mcihar(a)novell.com>
Date: Mon Jun 6 11:55:09 2011 +0200
Replace TRUE/FALSE with true/false.
At least this seems to be the coding standard, so make all files
compliant.
-----------------------------------------------------------------------
Summary of changes:
browse_foreigners.php | 6 +-
bs_disp_as_mime_type.php | 4 +-
chk_rel.php | 2 +-
db_create.php | 2 +-
db_datadict.php | 6 +-
db_sql.php | 2 +-
db_structure.php | 2 +-
import.php | 62 ++--
libraries/File.class.php | 12 +-
libraries/StorageEngine.class.php | 2 +-
libraries/Theme_Manager.class.php | 2 +-
libraries/Tracker.class.php | 4 +-
libraries/auth/config.auth.lib.php | 12 +-
libraries/auth/swekey/swekey.php | 2 +-
libraries/blobstreaming.lib.php | 116 ++++----
libraries/bookmark.lib.php | 4 +-
libraries/chart/pma_pchart_chart.php | 6 +-
libraries/chart/pma_pchart_multi_line.php | 2 +-
libraries/chart/pma_pchart_multi_radar.php | 4 +-
libraries/chart/pma_pchart_pie.php | 4 +-
libraries/chart/pma_pchart_single_line.php | 2 +-
libraries/chart/pma_pchart_single_radar.php | 4 +-
libraries/common.inc.php | 2 +-
libraries/common.lib.php | 4 +-
libraries/config.default.php | 2 +-
libraries/core.lib.php | 2 +-
libraries/database_interface.lib.php | 8 +-
libraries/dbi/mysql.dbi.lib.php | 2 +-
libraries/dbi/mysqli.dbi.lib.php | 2 +-
libraries/display_create_database.lib.php | 2 +-
libraries/display_import.lib.php | 2 +-
libraries/display_select_lang.lib.php | 2 +-
libraries/display_tbl.lib.php | 14 +-
libraries/export/codegen.php | 12 +-
libraries/export/csv.php | 18 +-
libraries/export/htmlword.php | 32 +-
libraries/export/json.php | 2 +-
libraries/export/latex.php | 34 ++--
libraries/export/mediawiki.php | 12 +-
libraries/export/ods.php | 16 +-
libraries/export/odt.php | 24 +-
libraries/export/pdf.php | 16 +-
libraries/export/php_array.php | 2 +-
libraries/export/sql.php | 40 ++--
libraries/export/texytext.php | 26 +-
libraries/export/xls.php | 16 +-
libraries/export/xlsx.php | 16 +-
libraries/export/xml.php | 12 +-
libraries/export/yaml.php | 2 +-
libraries/file_listing.php | 10 +-
libraries/header_printview.inc.php | 2 +-
libraries/iconv_wrapper.lib.php | 4 +-
libraries/import.lib.php | 38 ++--
libraries/import/README | 4 +-
libraries/import/csv.php | 58 ++--
libraries/import/docsql.php | 6 +-
libraries/import/ldi.php | 10 +-
libraries/import/ods.php | 8 +-
libraries/import/sql.php | 26 +-
libraries/import/xml.php | 6 +-
libraries/kanji-encoding.lib.php | 4 +-
libraries/mult_submits.inc.php | 18 +-
libraries/mysql_charsets.lib.php | 6 +-
libraries/navigation_header.inc.php | 2 +-
libraries/relation.lib.php | 16 +-
libraries/schema/Dia_Relation_Schema.class.php | 4 +-
libraries/schema/Eps_Relation_Schema.class.php | 2 +-
libraries/schema/Pdf_Relation_Schema.class.php | 2 +-
libraries/schema/Svg_Relation_Schema.class.php | 4 +-
libraries/schema/User_Schema.class.php | 28 +-
libraries/schema/Visio_Relation_Schema.class.php | 4 +-
libraries/select_lang.lib.php | 6 +-
libraries/server_links.inc.php | 2 +-
libraries/sql_query_form.lib.php | 6 +-
libraries/sqlparser.lib.php | 320 +++++++++++-----------
libraries/sqlvalidator.class.php | 6 +-
libraries/sqlvalidator.lib.php | 4 +-
libraries/zip_extension.lib.php | 2 +-
pmd_pdf.php | 4 +-
pmd_relation_upd.php | 2 +-
server_privileges.php | 42 ++--
setup/lib/common.inc.php | 4 +-
sql.php | 4 +-
tbl_change.php | 24 +-
tbl_relation.php | 16 +-
tbl_row_action.php | 2 +-
86 files changed, 645 insertions(+), 645 deletions(-)
diff --git a/browse_foreigners.php b/browse_foreigners.php
index 16fa48c..0b10484 100644
--- a/browse_foreigners.php
+++ b/browse_foreigners.php
@@ -23,9 +23,9 @@ require_once './libraries/header_http.inc.php';
*/
require_once './libraries/transformations.lib.php'; // Transformations
$cfgRelation = PMA_getRelationsParam();
-$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : FALSE);
+$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : false);
-$override_total = TRUE;
+$override_total = true;
if (! isset($pos)) {
$pos = 0;
@@ -180,7 +180,7 @@ if (is_array($foreignData['disp_row'])) {
$values = array();
$keys = array();
foreach ($foreignData['disp_row'] as $relrow) {
- if ($foreignData['foreign_display'] != FALSE) {
+ if ($foreignData['foreign_display'] != false) {
$values[] = $relrow[$foreignData['foreign_display']];
} else {
$values[] = '';
diff --git a/bs_disp_as_mime_type.php b/bs_disp_as_mime_type.php
index 085d888..03a8c8b 100644
--- a/bs_disp_as_mime_type.php
+++ b/bs_disp_as_mime_type.php
@@ -31,13 +31,13 @@ if (empty($filename)) {
$hdrs = get_headers($filename, 1);
-if ($hdrs === FALSE) {
+if ($hdrs === false) {
die(__('Failed to fetch headers'));
}
$fHnd = fopen($filename, "rb");
-if ($fHnd === FALSE) {
+if ($fHnd === false) {
die(__('Failed to open remote URL'));
}
diff --git a/chk_rel.php b/chk_rel.php
index 8955350..d13f075 100644
--- a/chk_rel.php
+++ b/chk_rel.php
@@ -15,7 +15,7 @@ require_once './libraries/header.inc.php';
/**
* Gets the relation settings
*/
-$cfgRelation = PMA_getRelationsParam(TRUE);
+$cfgRelation = PMA_getRelationsParam(true);
/**
diff --git a/db_create.php b/db_create.php
index 3609bf6..502ac7f 100644
--- a/db_create.php
+++ b/db_create.php
@@ -49,7 +49,7 @@ if (! $result) {
* If in an Ajax request, just display the message with {@link PMA_ajaxResponse}
*/
if($GLOBALS['is_ajax_request'] == true) {
- PMA_ajaxResponse($message, FALSE);
+ PMA_ajaxResponse($message, false);
}
require_once './libraries/header.inc.php';
diff --git a/db_datadict.php b/db_datadict.php
index 9941ef4..102724d 100644
--- a/db_datadict.php
+++ b/db_datadict.php
@@ -142,12 +142,12 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) {
$res_rel = PMA_getForeigners($db, $table);
if (count($res_rel) > 0) {
- $have_rel = TRUE;
+ $have_rel = true;
} else {
- $have_rel = FALSE;
+ $have_rel = false;
}
} else {
- $have_rel = FALSE;
+ $have_rel = false;
} // end if
diff --git a/db_sql.php b/db_sql.php
index 2020dea..08eb5ca 100644
--- a/db_sql.php
+++ b/db_sql.php
@@ -31,7 +31,7 @@ $back = 'db_sql.php';
require './libraries/db_info.inc.php';
if ($num_tables == 0 && empty($db_query_force)) {
$sub_part = '';
- $is_info = TRUE;
+ $is_info = true;
require './db_structure.php';
exit();
}
diff --git a/db_structure.php b/db_structure.php
index 6d301d5..864a668 100644
--- a/db_structure.php
+++ b/db_structure.php
@@ -28,7 +28,7 @@ if (empty($is_info)) {
// db_structure.php -> libraries/mult_submits.inc.php -> sql.php
// -> 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) {
+ if (! isset($error) || false === $error) {
require './libraries/mult_submits.inc.php';
}
if (empty($message)) {
diff --git a/import.php b/import.php
index 8837af2..cd56bc2 100644
--- a/import.php
+++ b/import.php
@@ -130,21 +130,21 @@ if (isset($allow_interrupt)) {
}
// set default values
-$timeout_passed = FALSE;
-$error = FALSE;
+$timeout_passed = false;
+$error = false;
$read_multiply = 1;
-$finished = FALSE;
+$finished = false;
$offset = 0;
$max_sql_len = 0;
$file_to_unlink = '';
$sql_query = '';
-$sql_query_disabled = FALSE;
-$go_sql = FALSE;
+$sql_query_disabled = false;
+$go_sql = false;
$executed_queries = 0;
-$run_query = TRUE;
-$charset_conversion = FALSE;
-$reset_charset = FALSE;
-$bookmark_created = FALSE;
+$run_query = true;
+$charset_conversion = false;
+$reset_charset = false;
+$bookmark_created = false;
// Bookmark Support: get a query back from bookmark if required
if (!empty($id_bookmark)) {
@@ -165,21 +165,21 @@ if (!empty($id_bookmark)) {
break;
case 1: // bookmarked query that have to be displayed
$import_text = PMA_Bookmark_get($db, $id_bookmark);
- $run_query = FALSE;
+ $run_query = false;
break;
case 2: // bookmarked query that have to be deleted
$import_text = PMA_Bookmark_get($db, $id_bookmark);
PMA_Bookmark_delete($db, $id_bookmark);
- $run_query = FALSE;
- $error = TRUE; // this is kind of hack to skip processing the query
+ $run_query = false;
+ $error = true; // this is kind of hack to skip processing the query
break;
}
} // end bookmarks reading
// Do no run query if we show PHP code
if (isset($GLOBALS['show_as_php'])) {
- $run_query = FALSE;
- $go_sql = TRUE;
+ $run_query = false;
+ $go_sql = true;
}
// Store the query as a bookmark before executing it if bookmarklabel was given
@@ -204,7 +204,7 @@ if (!empty($bkm_label) && !empty($import_text)) {
PMA_Bookmark_save($bfields, isset($bkm_all_users));
- $bookmark_created = TRUE;
+ $bookmark_created = true;
} // end store bookmarks
// We can not read all at once, otherwise we can run out of memory
@@ -274,9 +274,9 @@ if ($import_file != 'none' && !$error) {
* @todo duplicate code exists in File.class.php
*/
$compression = PMA_detectCompression($import_file);
- if ($compression === FALSE) {
+ if ($compression === false) {
$message = PMA_Message::error(__('File could not be read'));
- $error = TRUE;
+ $error = true;
} else {
switch ($compression) {
case 'application/bzip2':
@@ -285,7 +285,7 @@ if ($import_file != 'none' && !$error) {
} else {
$message = PMA_Message::error(__('You attempted to load file with unsupported compression (%s). Either support for it is not implemented or disabled by your configuration.'));
$message->addParam($compression);
- $error = TRUE;
+ $error = true;
}
break;
case 'application/gzip':
@@ -294,7 +294,7 @@ if ($import_file != 'none' && !$error) {
} else {
$message = PMA_Message::error(__('You attempted to load file with unsupported compression (%s). Either support for it is not implemented or disabled by your configuration.'));
$message->addParam($compression);
- $error = TRUE;
+ $error = true;
}
break;
case 'application/zip':
@@ -306,14 +306,14 @@ if ($import_file != 'none' && !$error) {
$result = PMA_getZipContents($import_file);
if (! empty($result['error'])) {
$message = PMA_Message::rawError($result['error']);
- $error = TRUE;
+ $error = true;
} else {
$import_text = $result['data'];
}
} else {
$message = PMA_Message::error(__('You attempted to load file with unsupported compression (%s). Either support for it is not implemented or disabled by your configuration.'));
$message->addParam($compression);
- $error = TRUE;
+ $error = true;
}
break;
case 'none':
@@ -322,19 +322,19 @@ if ($import_file != 'none' && !$error) {
default:
$message = PMA_Message::error(__('You attempted to load file with unsupported compression (%s). Either support for it is not implemented or disabled by your configuration.'));
$message->addParam($compression);
- $error = TRUE;
+ $error = true;
break;
}
}
// use isset() because zip compression type does not use a handle
- if (!$error && isset($import_handle) && $import_handle === FALSE) {
+ if (!$error && isset($import_handle) && $import_handle === false) {
$message = PMA_Message::error(__('File could not be read'));
- $error = TRUE;
+ $error = true;
}
} elseif (!$error) {
if (! isset($import_text) || empty($import_text)) {
$message = PMA_Message::error(__('No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See [a@./Documentation.html#faq1_16@Documentation]FAQ 1.16[/a].'));
- $error = TRUE;
+ $error = true;
}
}
@@ -344,13 +344,13 @@ if ($import_file != 'none' && !$error) {
// Convert the file's charset if necessary
if ($GLOBALS['PMA_recoding_engine'] != PMA_CHARSET_NONE && isset($charset_of_file)) {
if ($charset_of_file != 'utf-8') {
- $charset_conversion = TRUE;
+ $charset_conversion = true;
}
} elseif (isset($charset_of_file) && $charset_of_file != 'utf8') {
PMA_DBI_query('SET NAMES \'' . $charset_of_file . '\'');
// We can not show query in this case, it is in different charset
- $sql_query_disabled = TRUE;
- $reset_charset = TRUE;
+ $sql_query_disabled = true;
+ $reset_charset = true;
}
// Something to skip?
@@ -367,7 +367,7 @@ if (!$error && isset($skip)) {
if (!$error) {
// Check for file existance
if (!file_exists('./libraries/import/' . $format . '.php')) {
- $error = TRUE;
+ $error = true;
$message = PMA_Message::error(__('Could not load import plugins, please check your installation!'));
} else {
// Do the real import
@@ -376,7 +376,7 @@ if (!$error) {
}
}
-if (! $error && FALSE !== $import_handle && NULL !== $import_handle) {
+if (! $error && false !== $import_handle && NULL !== $import_handle) {
fclose($import_handle);
}
@@ -395,7 +395,7 @@ if ($reset_charset) {
if (!empty($id_bookmark) && $action_bookmark == 2) {
$message = PMA_Message::success(__('The bookmark has been deleted.'));
$display_query = $import_text;
- $error = FALSE; // unset error marker, it was used just to skip processing
+ $error = false; // unset error marker, it was used just to skip processing
} elseif (!empty($id_bookmark) && $action_bookmark == 1) {
$message = PMA_Message::notice(__('Showing bookmark'));
} elseif ($bookmark_created) {
diff --git a/libraries/File.class.php b/libraries/File.class.php
index 109c188..2a33bf3 100644
--- a/libraries/File.class.php
+++ b/libraries/File.class.php
@@ -271,11 +271,11 @@ class PMA_File
$file = PMA_File::fetchUploadedFromTblChangeRequestMultiple($_FILES['fields_upload'], $rownumber, $key);
// for blobstreaming
- $is_bs_upload = FALSE;
+ $is_bs_upload = false;
// check if this field requires a repository upload
if (isset($_REQUEST['upload_blob_repo']['multi_edit'][$rownumber][$key])) {
- $is_bs_upload = ($_REQUEST['upload_blob_repo']['multi_edit'][$rownumber][$key] == "on") ? TRUE : FALSE;
+ $is_bs_upload = ($_REQUEST['upload_blob_repo']['multi_edit'][$rownumber][$key] == "on") ? true : false;
}
// if request is an upload to the BLOB repository
if ($is_bs_upload) {
@@ -290,7 +290,7 @@ class PMA_File
if (! $bs_db || ! $bs_table) {
$this->_error_message = $GLOBALS['strUploadErrorUnknown'];
- return FALSE;
+ return false;
}
$blob_url = PMA_BS_UpLoadFile($bs_db, $bs_table, $tmp_file_type, $tmp_filename);
PMA_File::setRecentBLOBReference($blob_url);
@@ -388,11 +388,11 @@ class PMA_File
&& is_string($_REQUEST['fields_uploadlocal']['multi_edit'][$rownumber][$key])) {
// ... whether with multiple rows ...
// for blobstreaming
- $is_bs_upload = FALSE;
+ $is_bs_upload = false;
// check if this field requires a repository upload
if (isset($_REQUEST['upload_blob_repo']['multi_edit'][$rownumber][$key])) {
- $is_bs_upload = ($_REQUEST['upload_blob_repo']['multi_edit'][$rownumber][$key] == "on") ? TRUE : FALSE;
+ $is_bs_upload = ($_REQUEST['upload_blob_repo']['multi_edit'][$rownumber][$key] == "on") ? true : false;
}
// is a request to upload file to BLOB repository using uploadDir mechanism
@@ -423,7 +423,7 @@ class PMA_File
if (! $bs_db || !$bs_table) {
$this->_error_message = $GLOBALS['strUploadErrorUnknown'];
- return FALSE;
+ return false;
}
$blob_url = PMA_BS_UpLoadFile($bs_db, $bs_table, $tmp_file_type, $tmp_filename);
PMA_File::setRecentBLOBReference($blob_url);
diff --git a/libraries/StorageEngine.class.php b/libraries/StorageEngine.class.php
index 71b3636..7504895 100644
--- a/libraries/StorageEngine.class.php
+++ b/libraries/StorageEngine.class.php
@@ -140,7 +140,7 @@ class PMA_StorageEngine
static public function isValid($engine)
{
if ($engine == "PBMS") {
- return TRUE;
+ return true;
}
$storage_engines = PMA_StorageEngine::getStorageEngines();
return isset($storage_engines[$engine]);
diff --git a/libraries/Theme_Manager.class.php b/libraries/Theme_Manager.class.php
index 4ca8517..cb5454b 100644
--- a/libraries/Theme_Manager.class.php
+++ b/libraries/Theme_Manager.class.php
@@ -283,7 +283,7 @@ class PMA_Theme_Manager
$select_box .= PMA_generate_common_hidden_inputs();
}
- $theme_selected = FALSE;
+ $theme_selected = false;
$theme_preview_path= './themes.php';
$theme_preview_href = '<a href="' . $theme_preview_path . '" target="themes" onclick="'
. "window.open('" . $theme_preview_path . "','themes','left=10,top=20,width=510,height=350,scrollbars=yes,status=yes,resizable=yes');"
diff --git a/libraries/Tracker.class.php b/libraries/Tracker.class.php
index 7592c2c..35ab7f4 100644
--- a/libraries/Tracker.class.php
+++ b/libraries/Tracker.class.php
@@ -752,7 +752,7 @@ class PMA_Tracker
$prefix = explode('DROP VIEW ', $query);
$str = strstr($prefix[1], 'IF EXISTS');
- if ($str == FALSE ) {
+ if ($str == false ) {
$str = $prefix[1];
}
$result['tablename'] = self::getTableName($str);
@@ -810,7 +810,7 @@ class PMA_Tracker
$prefix = explode('DROP TABLE ', $query);
$str = strstr($prefix[1], 'IF EXISTS');
- if ($str == FALSE ) {
+ if ($str == false ) {
$str = $prefix[1];
}
$result['tablename'] = self::getTableName($str);
diff --git a/libraries/auth/config.auth.lib.php b/libraries/auth/config.auth.lib.php
index dfa2f2c..5c98d25 100644
--- a/libraries/auth/config.auth.lib.php
+++ b/libraries/auth/config.auth.lib.php
@@ -16,7 +16,7 @@
*/
function PMA_auth()
{
- return TRUE;
+ return true;
} // end of the 'PMA_auth()' function
@@ -29,7 +29,7 @@ function PMA_auth()
*/
function PMA_auth_check()
{
- return TRUE;
+ return true;
} // end of the 'PMA_auth_check()' function
@@ -42,7 +42,7 @@ function PMA_auth_check()
*/
function PMA_auth_set_user()
{
- return TRUE;
+ return true;
} // end of the 'PMA_auth_set_user()' function
@@ -96,7 +96,7 @@ function PMA_auth_fails()
<td>
<?php
- $GLOBALS['is_header_sent'] = TRUE;
+ $GLOBALS['is_header_sent'] = true;
if (isset($GLOBALS['allowDeny_forbidden']) && $GLOBALS['allowDeny_forbidden']) {
trigger_error(__('Access denied'), E_USER_NOTICE);
@@ -126,13 +126,13 @@ function PMA_auth_fails()
require_once './libraries/select_server.lib.php';
echo '<tr>' . "\n";
echo ' <td>' . "\n";
- PMA_select_server(TRUE, TRUE);
+ PMA_select_server(true, true);
echo ' </td>' . "\n";
echo '</tr>' . "\n";
}
echo '</table>' . "\n";
require './libraries/footer.inc.php';
- return TRUE;
+ return true;
} // end of the 'PMA_auth_fails()' function
?>
diff --git a/libraries/auth/swekey/swekey.php b/libraries/auth/swekey/swekey.php
index 3e91e23..b456061 100644
--- a/libraries/auth/swekey/swekey.php
+++ b/libraries/auth/swekey/swekey.php
@@ -393,7 +393,7 @@ function Swekey_GetFastHalfRndToken()
// we unlink the file so no possible tempfile race attack
unlink($cachefile);
$file = fopen($cachefile , "x");
- if ($file != FALSE)
+ if ($file != false)
{
@fwrite($file, $res);
@fclose($file);
diff --git a/libraries/blobstreaming.lib.php b/libraries/blobstreaming.lib.php
index 4efaf34..ce1711c 100644
--- a/libraries/blobstreaming.lib.php
+++ b/libraries/blobstreaming.lib.php
@@ -18,7 +18,7 @@ function initPBMSDatabase()
$target = "";
foreach ($db_array as $current_db) {
if ($current_db == 'pbms') {
- return TRUE;
+ return true;
}
if ($target == "") {
if (($current_db != 'pbxt') && ($current_db != 'mysql') && ($current_db != 'information_schema')) {
@@ -34,9 +34,9 @@ function initPBMSDatabase()
$result = PMA_DBI_query($query );
if (! $result) {
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
/**
@@ -58,7 +58,7 @@ function checkBLOBStreamingPlugins()
// return if unable to load PMA configuration
if (empty($PMA_Config)) {
- return FALSE;
+ return false;
}
// If we don't know that we can skip blobstreaming, we continue
@@ -77,7 +77,7 @@ function checkBLOBStreamingPlugins()
// return if unable to retrieve current server configuration
if (! $serverCfg) {
- return FALSE;
+ return false;
}
// if PHP extension in use is 'mysql', specify element 'PersistentConnections'
@@ -115,26 +115,26 @@ function checkBLOBStreamingPlugins()
// if no BS variables exist, set plugin existence to false and return
if (count($bs_variables) <= 0) {
- $PMA_Config->set('BLOBSTREAMING_PLUGINS_EXIST', FALSE);
+ $PMA_Config->set('BLOBSTREAMING_PLUGINS_EXIST', false);
PMA_cacheSet('skip_blobstreaming', true, true);
- return FALSE;
+ return false;
} // end if (count($bs_variables) <= 0)
// Check that the required pbms functions exist:
- if ((function_exists("pbms_connect") == FALSE) ||
- (function_exists("pbms_error") == FALSE) ||
- (function_exists("pbms_close") == FALSE) ||
- (function_exists("pbms_is_blob_reference") == FALSE) ||
- (function_exists("pbms_get_info") == FALSE) ||
- (function_exists("pbms_get_metadata_value") == FALSE) ||
- (function_exists("pbms_add_metadata") == FALSE) ||
- (function_exists("pbms_read_stream") == FALSE)) {
+ if ((function_exists("pbms_connect") == false) ||
+ (function_exists("pbms_error") == false) ||
+ (function_exists("pbms_close") == false) ||
+ (function_exists("pbms_is_blob_reference") == false) ||
+ (function_exists("pbms_get_info") == false) ||
+ (function_exists("pbms_get_metadata_value") == false) ||
+ (function_exists("pbms_add_metadata") == false) ||
+ (function_exists("pbms_read_stream") == false)) {
// We should probably notify the user that they need to install
// the pbms client lib and PHP extension to make use of blob streaming.
- $PMA_Config->set('BLOBSTREAMING_PLUGINS_EXIST', FALSE);
+ $PMA_Config->set('BLOBSTREAMING_PLUGINS_EXIST', false);
PMA_cacheSet('skip_blobstreaming', true, true);
- return FALSE;
+ return false;
}
if (function_exists("pbms_connection_pool_size")) {
@@ -154,31 +154,31 @@ function checkBLOBStreamingPlugins()
// if no BS server port or 'pbms' database exists, set plugin existance to false and return
if ((! $BS_PORT) || (! initPBMSDatabase())) {
- $PMA_Config->set('BLOBSTREAMING_PLUGINS_EXIST', FALSE);
+ $PMA_Config->set('BLOBSTREAMING_PLUGINS_EXIST', false);
PMA_cacheSet('skip_blobstreaming', true, true);
- return FALSE;
+ return false;
} // end if (!$BS_PORT)
// Ping PBMS: the database doesn't need to exist for this to work.
- if (pbms_connect($serverCfg['host'], $BS_PORT, "anydb") == FALSE) {
- $PMA_Config->set('BLOBSTREAMING_PLUGINS_EXIST', FALSE);
+ if (pbms_connect($serverCfg['host'], $BS_PORT, "anydb") == false) {
+ $PMA_Config->set('BLOBSTREAMING_PLUGINS_EXIST', false);
PMA_cacheSet('skip_blobstreaming', true, true);
- return FALSE;
+ return false;
}
pbms_close();
if (function_exists("pbms_pconnect")) {
- $PMA_Config->set('PBMS_PCONNECT_EXISTS', TRUE);
+ $PMA_Config->set('PBMS_PCONNECT_EXISTS', true);
} else {
- $PMA_Config->set('PBMS_PCONNECT_EXISTS', FALSE);
+ $PMA_Config->set('PBMS_PCONNECT_EXISTS', false);
}
// add selected BS, CURL and fileinfo library variables to PMA configuration
$PMA_Config->set('BLOBSTREAMING_PORT', $BS_PORT);
$PMA_Config->set('BLOBSTREAMING_HOST', $serverCfg['host']);
$PMA_Config->set('BLOBSTREAMING_SERVER', $serverCfg['host'] . ':' . $BS_PORT);
- $PMA_Config->set('PHP_PBMS_EXISTS', FALSE);
- $PMA_Config->set('FILEINFO_EXISTS', FALSE);
+ $PMA_Config->set('PHP_PBMS_EXISTS', false);
+ $PMA_Config->set('FILEINFO_EXISTS', false);
// check if PECL's fileinfo library exist
$finfo = NULL;
@@ -189,16 +189,16 @@ function checkBLOBStreamingPlugins()
// fileinfo library exists, set necessary variable and close resource
if (! empty($finfo)) {
- $PMA_Config->set('FILEINFO_EXISTS', TRUE);
+ $PMA_Config->set('FILEINFO_EXISTS', true);
finfo_close($finfo);
} // end if (!empty($finfo))
} else {
PMA_cacheSet('skip_blobstreaming', true, true);
- return FALSE;
+ return false;
} // end if ($has_blobstreaming)
- return TRUE;
+ return true;
}
/**
@@ -248,7 +248,7 @@ function PMA_do_connect($db_name, $quiet)
// return if unable to load PMA configuration
if (empty($PMA_Config)) {
- return FALSE;
+ return false;
}
// generate bs reference link
@@ -262,13 +262,13 @@ function PMA_do_connect($db_name, $quiet)
$ok = pbms_connect($pbms_host, $pbms_port, $db_name);
}
- if ($ok == FALSE) {
- if ($quiet == FALSE) {
+ if ($ok == false) {
+ if ($quiet == false) {
PMA_BS_ReportPBMSError(__('PBMS connection failed:') . " pbms_connect($pbms_host, $pbms_port, $db_name)");
}
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
//------------
@@ -285,7 +285,7 @@ function PMA_do_disconnect()
function PMA_BS_IsPBMSReference($bs_reference, $db_name)
{
if (PMA_cacheGet('skip_blobstreaming', true)) {
- return FALSE;
+ return false;
}
// You do not really need a connection to the PBMS Daemon
@@ -293,8 +293,8 @@ function PMA_BS_IsPBMSReference($bs_reference, $db_name)
// requires one at this point so until the API is updated
// we need to epen one here. If you use pool connections this
// will not be a performance problem.
- if (PMA_do_connect($db_name, FALSE) == FALSE) {
- return FALSE;
+ if (PMA_do_connect($db_name, false) == false) {
+ return false;
}
$ok = pbms_is_blob_reference($bs_reference);
@@ -304,18 +304,18 @@ function PMA_BS_IsPBMSReference($bs_reference, $db_name)
//------------
function PMA_BS_CreateReferenceLink($bs_reference, $db_name)
{
- if (PMA_do_connect($db_name, FALSE) == FALSE) {
+ if (PMA_do_connect($db_name, false) == false) {
return __('Error');
}
- if (pbms_get_info(trim($bs_reference)) == FALSE) {
+ if (pbms_get_info(trim($bs_reference)) == false) {
PMA_BS_ReportPBMSError(__('PBMS get BLOB info failed:') . " pbms_get_info($bs_reference)");
PMA_do_disconnect();
return __('Error');
}
$content_type = pbms_get_metadata_value("Content-Type");
- if ($content_type == FALSE) {
+ if ($content_type == false) {
$br = trim($bs_reference);
PMA_BS_ReportPBMSError("PMA_BS_CreateReferenceLink('$br', '$db_name'): " . __('get BLOB Content-Type failed'));
}
@@ -371,11 +371,11 @@ function PMA_BS_CreateReferenceLink($bs_reference, $db_name)
function PMA_BS_IsTablePBMSEnabled($db_name, $tbl_name, $tbl_type)
{
if (PMA_cacheGet('skip_blobstreaming', true)) {
- return FALSE;
+ return false;
}
- if ((isset($tbl_type) == FALSE) || (strlen($tbl_type) == 0)) {
- return FALSE;
+ if ((isset($tbl_type) == false) || (strlen($tbl_type) == 0)) {
+ return false;
}
// load PMA configuration
@@ -383,11 +383,11 @@ function PMA_BS_IsTablePBMSEnabled($db_name, $tbl_name, $tbl_type)
// return if unable to load PMA configuration
if (empty($PMA_Config)) {
- return FALSE;
+ return false;
}
if (! $PMA_Config->get('BLOBSTREAMING_PLUGINS_EXIST')) {
- return FALSE;
+ return false;
}
// This information should be cached rather than selecting it each time.
@@ -397,10 +397,10 @@ function PMA_BS_IsTablePBMSEnabled($db_name, $tbl_name, $tbl_type)
$data = PMA_DBI_fetch_row($result);
if ($data[0] == 1) {
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
//------------
@@ -408,18 +408,18 @@ function PMA_BS_UpLoadFile($db_name, $tbl_name, $file_type, $file_name)
{
if (PMA_cacheGet('skip_blobstreaming', true)) {
- return FALSE;
+ return false;
}
- if (PMA_do_connect($db_name, FALSE) == FALSE) {
- return FALSE;
+ if (PMA_do_connect($db_name, false) == false) {
+ return false;
}
$fh = fopen($file_name, 'r');
if (! $fh) {
PMA_do_disconnect();
PMA_showMessage(sprintf(__('Could not open file: %s'), $file_name));
- return FALSE;
+ return false;
}
pbms_add_metadata("Content-Type", $file_type);
@@ -438,7 +438,7 @@ function PMA_BS_UpLoadFile($db_name, $tbl_name, $file_type, $file_name)
function PMA_BS_SetContentType($db_name, $bsTable, $blobReference, $contentType)
{
if (PMA_cacheGet('skip_blobstreaming', true)) {
- return FALSE;
+ return false;
}
// This is a really ugly way to do this but currently there is nothing better.
@@ -463,9 +463,9 @@ function PMA_BS_SetContentType($db_name, $bsTable, $blobReference, $contentType)
//error_log("$query\n", 3, "/tmp/mylog");
PMA_DBI_query($query);
} else {
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
//------------
@@ -473,9 +473,9 @@ function PMA_BS_IsHiddenTable($table)
{
if ($table === 'pbms_repository' || $table === 'pbms_reference' || $table === 'pbms_metadata'
|| $table === 'pbms_metadata_header' || $table === 'pbms_dump') {
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
//------------
@@ -484,13 +484,13 @@ function PMA_BS_getURL($reference)
// load PMA configuration
$PMA_Config = $GLOBALS['PMA_Config'];
if (empty($PMA_Config)) {
- return FALSE;
+ return false;
}
// retrieve BS server variables from PMA configuration
$bs_server = $PMA_Config->get('BLOBSTREAMING_SERVER');
if (empty($bs_server)) {
- return FALSE;
+ return false;
}
$bs_url = PMA_linkURL('http://' . $bs_server . '/' . rtrim($reference));
diff --git a/libraries/bookmark.lib.php b/libraries/bookmark.lib.php
index 62d7e1b..dfc1946 100644
--- a/libraries/bookmark.lib.php
+++ b/libraries/bookmark.lib.php
@@ -103,14 +103,14 @@ function PMA_Bookmark_getList($db)
* @param string the current database name
* @param mixed the id of the bookmark to get
* @param string which field to look up the $id
- * @param boolean TRUE: get all bookmarks regardless of the owning user
+ * @param boolean true: get all bookmarks regardless of the owning user
* @param boolean whether to ignore bookmarks with no user
*
* @return string the sql query
*
* @access public
*/
-function PMA_Bookmark_get($db, $id, $id_field = 'id', $action_bookmark_all = FALSE, $exact_user_match = FALSE)
+function PMA_Bookmark_get($db, $id, $id_field = 'id', $action_bookmark_all = false, $exact_user_match = false)
{
global $controllink;
diff --git a/libraries/chart/pma_pchart_chart.php b/libraries/chart/pma_pchart_chart.php
index c4277d8..e68a9b3 100644
--- a/libraries/chart/pma_pchart_chart.php
+++ b/libraries/chart/pma_pchart_chart.php
@@ -190,7 +190,7 @@ abstract class PMA_pChart_chart extends PMA_chart
$this->getGraphAreaColor(RED),
$this->getGraphAreaColor(GREEN),
$this->getGraphAreaColor(BLUE),
- FALSE
+ false
);
$this->chart->drawScale(
$this->dataSet->GetData(),
@@ -199,7 +199,7 @@ abstract class PMA_pChart_chart extends PMA_chart
$this->getScaleColor(RED),
$this->getScaleColor(GREEN),
$this->getScaleColor(BLUE),
- TRUE,0,2,TRUE
+ true,0,2,true
);
if($this->settings['gradientIntensity']>0)
@@ -218,7 +218,7 @@ abstract class PMA_pChart_chart extends PMA_chart
$this->chart->drawGrid(
4,
- TRUE,
+ true,
$this->getGridColor(RED),
$this->getGridColor(GREEN),
$this->getGridColor(BLUE),
diff --git a/libraries/chart/pma_pchart_multi_line.php b/libraries/chart/pma_pchart_multi_line.php
index bd7b6ea..502f386 100644
--- a/libraries/chart/pma_pchart_multi_line.php
+++ b/libraries/chart/pma_pchart_multi_line.php
@@ -31,7 +31,7 @@ class PMA_pChart_multi_line extends PMA_pChart_multi
// Draw the bar chart
$this->chart->drawLineGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription());
- $this->chart->drawPlotGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 3, 1, -1, -1, -1, TRUE);
+ $this->chart->drawPlotGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 3, 1, -1, -1, -1, true);
}
}
diff --git a/libraries/chart/pma_pchart_multi_radar.php b/libraries/chart/pma_pchart_multi_radar.php
index c96fb3c..8c32cb3 100644
--- a/libraries/chart/pma_pchart_multi_radar.php
+++ b/libraries/chart/pma_pchart_multi_radar.php
@@ -55,7 +55,7 @@ class PMA_pChart_multi_radar extends PMA_pChart_multi
$this->getGraphAreaColor(RED),
$this->getGraphAreaColor(GREEN),
$this->getGraphAreaColor(BLUE),
- FALSE
+ false
);
if($this->settings['gradientIntensity']>0)
@@ -98,7 +98,7 @@ class PMA_pChart_multi_radar extends PMA_pChart_multi
$borderOffset += 40;
// Draw the radar chart
- $this->chart->drawRadarAxis($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), TRUE, $borderOffset,
+ $this->chart->drawRadarAxis($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), true, $borderOffset,
120, 120, 120, 230, 230, 230, -1, 2);
$this->chart->drawFilledRadar($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 50, $borderOffset);
}
diff --git a/libraries/chart/pma_pchart_pie.php b/libraries/chart/pma_pchart_pie.php
index 0366ba4..56148e0 100644
--- a/libraries/chart/pma_pchart_pie.php
+++ b/libraries/chart/pma_pchart_pie.php
@@ -45,7 +45,7 @@ class PMA_pChart_Pie extends PMA_pChart_multi
$this->getGraphAreaColor(RED),
$this->getGraphAreaColor(GREEN),
$this->getGraphAreaColor(BLUE),
- FALSE
+ false
);
if($this->settings['gradientIntensity']>0)
@@ -83,7 +83,7 @@ class PMA_pChart_Pie extends PMA_pChart_multi
// lower part. This is why we set an offset to the
// Y middle coordiantes.
$middleY - 15,
- 120, PIE_PERCENTAGE, FALSE, 60, 30, 10, 1);
+ 120, PIE_PERCENTAGE, false, 60, 30, 10, 1);
}
/**
diff --git a/libraries/chart/pma_pchart_single_line.php b/libraries/chart/pma_pchart_single_line.php
index 799a48b..3003581 100644
--- a/libraries/chart/pma_pchart_single_line.php
+++ b/libraries/chart/pma_pchart_single_line.php
@@ -27,7 +27,7 @@ class PMA_pChart_single_line extends PMA_pChart_single
{
// Draw the line chart
$this->chart->drawLineGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription());
- $this->chart->drawPlotGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 3, 1, -1, -1, -1, TRUE);
+ $this->chart->drawPlotGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 3, 1, -1, -1, -1, true);
}
}
diff --git a/libraries/chart/pma_pchart_single_radar.php b/libraries/chart/pma_pchart_single_radar.php
index 6590582..0c5d9ec 100644
--- a/libraries/chart/pma_pchart_single_radar.php
+++ b/libraries/chart/pma_pchart_single_radar.php
@@ -46,7 +46,7 @@ class PMA_pChart_single_radar extends PMA_pChart_single
$this->getGraphAreaColor(RED),
$this->getGraphAreaColor(GREEN),
$this->getGraphAreaColor(BLUE),
- FALSE
+ false
);
if($this->settings['gradientIntensity']>0)
@@ -88,7 +88,7 @@ class PMA_pChart_single_radar extends PMA_pChart_single
$borderOffset += 40;
$this->chart->drawRadarAxis($this->dataSet->GetData(), $this->dataSet->GetDataDescription(),
- TRUE, $borderOffset, 120, 120, 120, 230, 230, 230, -1, 2);
+ true, $borderOffset, 120, 120, 120, 230, 230, 230, -1, 2);
$this->chart->drawFilledRadar($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 50, $borderOffset);
}
}
diff --git a/libraries/common.inc.php b/libraries/common.inc.php
index 70b70fe..5be5c76 100644
--- a/libraries/common.inc.php
+++ b/libraries/common.inc.php
@@ -55,7 +55,7 @@ require './libraries/Error_Handler.class.php';
* initialize the error handler
*/
$GLOBALS['error_handler'] = new PMA_Error_Handler();
-$cfg['Error_Handler']['display'] = TRUE;
+$cfg['Error_Handler']['display'] = true;
/*
* This setting was removed in PHP 5.3. But at this point PMA_PHP_INT_VERSION
diff --git a/libraries/common.lib.php b/libraries/common.lib.php
index 807376f..b09570c 100644
--- a/libraries/common.lib.php
+++ b/libraries/common.lib.php
@@ -2850,7 +2850,7 @@ function PMA_expandUserString($string, $escape = null, $updates = array()) {
}
/* Fetch fields list if required */
- if (strpos($string, '@FIELDS@') !== FALSE) {
+ if (strpos($string, '@FIELDS@') !== false) {
$fields_list = PMA_DBI_fetch_result(
'SHOW COLUMNS FROM ' . PMA_backquote($GLOBALS['db'])
. '.' . PMA_backquote($GLOBALS['table']));
@@ -2953,7 +2953,7 @@ function PMA_selectUploadFile($import_list, $uploaddir) {
$matcher = '@\.(' . $extensions . ')(\.(' . PMA_supportedDecompressions() . '))?$@';
$files = PMA_getFileSelectOptions(PMA_userDir($uploaddir), $matcher, (isset($timeout_passed) && $timeout_passed && isset($local_import_file)) ? $local_import_file : '');
- if ($files === FALSE) {
+ if ($files === false) {
PMA_Message::error(__('The directory you set for upload work cannot be reached'))->display();
} elseif (!empty($files)) {
echo "\n";
diff --git a/libraries/config.default.php b/libraries/config.default.php
index ad1d9ac..d6e47c2 100644
--- a/libraries/config.default.php
+++ b/libraries/config.default.php
@@ -1309,7 +1309,7 @@ $cfg['Export']['texytext_structure_or_data'] = 'structure_and_data';
*
* @global boolean $cfg['Export']['texytext_columns']
*/
-$cfg['Export']['texytext_columns'] = FALSE;
+$cfg['Export']['texytext_columns'] = false;
/**
*
diff --git a/libraries/core.lib.php b/libraries/core.lib.php
index 51315d7..6494d49 100644
--- a/libraries/core.lib.php
+++ b/libraries/core.lib.php
@@ -698,7 +698,7 @@ function PMA_linkURL($url) {
* @return string HTML code for javascript inclusion.
*/
function PMA_includeJS($url) {
- if (strpos($url, '?') === FALSE) {
+ if (strpos($url, '?') === false) {
return '<script src="./js/' . $url . '?ts=' . filemtime('./js/' . $url) . '" type="text/javascript"></script>' . "\n";
} else {
return '<script src="./js/' . $url . '" type="text/javascript"></script>' . "\n";
diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php
index 91a2283..57c8568 100644
--- a/libraries/database_interface.lib.php
+++ b/libraries/database_interface.lib.php
@@ -1412,22 +1412,22 @@ function PMA_DBI_get_triggers($db, $table, $delimiter = '//')
}
/**
- * Returns TRUE if $db.$view_name is a view, FALSE if not
+ * Returns true if $db.$view_name is a view, false if not
*
* @uses PMA_DBI_fetch_result()
* @param string $db database name
* @param string $view_name view/table name
*
- * @return bool TRUE if $db.$view_name is a view, FALSE if not
+ * @return bool true if $db.$view_name is a view, false if not
*/
function PMA_isView($db, $view_name)
{
$result = PMA_DBI_fetch_result("SELECT TABLE_NAME FROM information_schema.VIEWS WHERE TABLE_SCHEMA = '".$db."' and TABLE_NAME = '".$view_name."';");
if ($result) {
- return TRUE;
+ return true;
} else {
- return FALSE;
+ return false;
}
}
?>
diff --git a/libraries/dbi/mysql.dbi.lib.php b/libraries/dbi/mysql.dbi.lib.php
index c4f22fb..e96e167 100644
--- a/libraries/dbi/mysql.dbi.lib.php
+++ b/libraries/dbi/mysql.dbi.lib.php
@@ -208,7 +208,7 @@ function PMA_DBI_try_query($query, $link = null, $options = 0, $cache_affected_r
}
$_SESSION['debug']['queries'][$hash]['trace'][] = $trace;
}
- if ($r != FALSE && PMA_Tracker::isActive() == TRUE ) {
+ if ($r != false && PMA_Tracker::isActive() == true ) {
PMA_Tracker::handleQuery($query);
}
diff --git a/libraries/dbi/mysqli.dbi.lib.php b/libraries/dbi/mysqli.dbi.lib.php
index a6eff91..a40e32d 100644
--- a/libraries/dbi/mysqli.dbi.lib.php
+++ b/libraries/dbi/mysqli.dbi.lib.php
@@ -232,7 +232,7 @@ function PMA_DBI_try_query($query, $link = null, $options = 0, $cache_affected_r
$_SESSION['debug']['queries'][$hash]['trace'][] = $trace;
}
- if ($r != FALSE && PMA_Tracker::isActive() == TRUE ) {
+ if ($r != false && PMA_Tracker::isActive() == true ) {
PMA_Tracker::handleQuery($query);
}
diff --git a/libraries/display_create_database.lib.php b/libraries/display_create_database.lib.php
index 02c05df..e0031a4 100644
--- a/libraries/display_create_database.lib.php
+++ b/libraries/display_create_database.lib.php
@@ -24,7 +24,7 @@ if ($is_create_db_priv) {
<input type="text" name="new_db" value="<?php echo $db_to_create; ?>" maxlength="64" class="textfield" id="text_create_db"/>
<?php
require_once './libraries/mysql_charsets.lib.php';
- echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', null, null, TRUE, 5);
+ echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', null, null, true, 5);
if (! empty($dbstats)) {
echo '<input type="hidden" name="dbstats" value="1" />';
diff --git a/libraries/display_import.lib.php b/libraries/display_import.lib.php
index 756de10..05df2d0 100644
--- a/libraries/display_import.lib.php
+++ b/libraries/display_import.lib.php
@@ -199,7 +199,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
echo ' </select><br />';
} else {
echo '<label for="charset_of_file">' . __('Character set of the file:') . '</label>' . "\n";
- echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_CHARSET, 'charset_of_file', 'charset_of_file', 'utf8', FALSE);
+ echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_CHARSET, 'charset_of_file', 'charset_of_file', 'utf8', false);
} // end if (recoding)
?>
</div>
diff --git a/libraries/display_select_lang.lib.php b/libraries/display_select_lang.lib.php
index 5ce0599..4f846bf 100644
--- a/libraries/display_select_lang.lib.php
+++ b/libraries/display_select_lang.lib.php
@@ -26,7 +26,7 @@ function PMA_language_cmp(&$a, &$b) {
*
* @access public
*/
-function PMA_select_language($use_fieldset = FALSE, $show_doc = TRUE) {
+function PMA_select_language($use_fieldset = false, $show_doc = true) {
global $cfg, $lang;
?>
diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php
index 08b3ea1..a16fc23 100644
--- a/libraries/display_tbl.lib.php
+++ b/libraries/display_tbl.lib.php
@@ -2291,7 +2291,7 @@ function default_function($buffer) {
function PMA_displayResultsOperations($the_disp_mode, $analyzed_sql) {
global $db, $table, $sql_query, $unlim_num_rows;
- $header_shown = FALSE;
+ $header_shown = false;
$header = '<fieldset><legend>' . __('Query results operations') . '</legend>';
if ($the_disp_mode[6] == '1' || $the_disp_mode[9] == '1') {
@@ -2300,7 +2300,7 @@ function PMA_displayResultsOperations($the_disp_mode, $analyzed_sql) {
if (!$header_shown) {
echo $header;
- $header_shown = TRUE;
+ $header_shown = true;
}
$_url_params = array(
@@ -2340,7 +2340,7 @@ function PMA_displayResultsOperations($the_disp_mode, $analyzed_sql) {
}
if (!$header_shown) {
echo $header;
- $header_shown = TRUE;
+ $header_shown = true;
}
$_url_params['unlim_num_rows'] = $unlim_num_rows;
@@ -2378,7 +2378,7 @@ function PMA_displayResultsOperations($the_disp_mode, $analyzed_sql) {
*/
if (!$header_shown) {
echo $header;
- $header_shown = TRUE;
+ $header_shown = true;
}
if (! isset($analyzed_sql[0]['queryflags']['procedure'])) {
echo PMA_linkOrButton(
@@ -2598,7 +2598,7 @@ function PMA_generateEditLink($edit_url, $class, $edit_str, $where_clause, $wher
$ret = '';
if (! empty($edit_url)) {
$ret .= '<td class="' . $class . '" align="center" ' . ' ><span class="nowrap">'
- . PMA_linkOrButton($edit_url, $edit_str, array(), FALSE);
+ . PMA_linkOrButton($edit_url, $edit_str, array(), false);
/*
* Where clause for selecting this row uniquely is provided as
* a hidden input. Used by jQuery scripts for handling inline editing
@@ -2629,7 +2629,7 @@ function PMA_generateCopyLink($copy_url, $copy_str, $where_clause, $where_clause
$ret .= 'class="' . $class . '" ';
}
$ret .= 'align="center" ' . ' ><span class="nowrap">'
- . PMA_linkOrButton($copy_url, $copy_str, array(), FALSE);
+ . PMA_linkOrButton($copy_url, $copy_str, array(), false);
/*
* Where clause for selecting this row uniquely is provided as
* a hidden input. Used by jQuery scripts for handling inline editing
@@ -2660,7 +2660,7 @@ function PMA_generateDeleteLink($del_url, $del_str, $js_conf, $class) {
$ret .= 'class="' . $class . '" ';
}
$ret .= 'align="center" ' . ' >'
- . PMA_linkOrButton($del_url, $del_str, $js_conf, FALSE)
+ . PMA_linkOrButton($del_url, $del_str, $js_conf, false)
. '</td>';
}
return $ret;
diff --git a/libraries/export/codegen.php b/libraries/export/codegen.php
index 8e36f40..56c9d08 100644
--- a/libraries/export/codegen.php
+++ b/libraries/export/codegen.php
@@ -54,7 +54,7 @@ if (isset($plugin_list)) {
*/
function PMA_exportComment($text)
{
- return TRUE;
+ return true;
}
/**
@@ -66,7 +66,7 @@ function PMA_exportComment($text)
*/
function PMA_exportFooter()
{
- return TRUE;
+ return true;
}
/**
@@ -78,7 +78,7 @@ function PMA_exportFooter()
*/
function PMA_exportHeader()
{
- return TRUE;
+ return true;
}
/**
@@ -92,7 +92,7 @@ function PMA_exportHeader()
*/
function PMA_exportDBHeader($db)
{
- return TRUE;
+ return true;
}
/**
@@ -106,7 +106,7 @@ function PMA_exportDBHeader($db)
*/
function PMA_exportDBFooter($db)
{
- return TRUE;
+ return true;
}
/**
@@ -120,7 +120,7 @@ function PMA_exportDBFooter($db)
*/
function PMA_exportDBCreate($db)
{
- return TRUE;
+ return true;
}
/**
diff --git a/libraries/export/csv.php b/libraries/export/csv.php
index 6d6242e..41c3cf3 100644
--- a/libraries/export/csv.php
+++ b/libraries/export/csv.php
@@ -40,7 +40,7 @@ if (isset($plugin_list)) {
* @return bool Whether it suceeded
*/
function PMA_exportComment($text) {
- return TRUE;
+ return true;
}
/**
@@ -51,7 +51,7 @@ function PMA_exportComment($text) {
* @access public
*/
function PMA_exportFooter() {
- return TRUE;
+ return true;
}
/**
@@ -98,7 +98,7 @@ function PMA_exportHeader() {
} // end if
$csv_separator = str_replace('\\t', "\011", $csv_separator);
}
- return TRUE;
+ return true;
}
/**
@@ -111,7 +111,7 @@ function PMA_exportHeader() {
* @access public
*/
function PMA_exportDBHeader($db) {
- return TRUE;
+ return true;
}
/**
@@ -124,7 +124,7 @@ function PMA_exportDBHeader($db) {
* @access public
*/
function PMA_exportDBFooter($db) {
- return TRUE;
+ return true;
}
/**
@@ -137,7 +137,7 @@ function PMA_exportDBFooter($db) {
* @access public
*/
function PMA_exportDBCreate($db) {
- return TRUE;
+ return true;
}
/**
@@ -179,7 +179,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
} // end for
$schema_insert =trim(substr($schema_insert, 0, -1));
if (!PMA_exportOutputHandler($schema_insert . $csv_terminated)) {
- return FALSE;
+ return false;
}
} // end if
@@ -223,12 +223,12 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
} // end for
if (!PMA_exportOutputHandler($schema_insert . $csv_terminated)) {
- return FALSE;
+ return false;
}
} // end while
PMA_DBI_free_result($result);
- return TRUE;
+ return true;
} // end of the 'PMA_getTableCsv()' function
}
diff --git a/libraries/export/htmlword.php b/libraries/export/htmlword.php
index b88cb8f..7b54476 100644
--- a/libraries/export/htmlword.php
+++ b/libraries/export/htmlword.php
@@ -41,7 +41,7 @@ if (isset($plugin_list)) {
* @return bool Whether it suceeded
*/
function PMA_exportComment($text) {
- return TRUE;
+ return true;
}
/**
@@ -99,7 +99,7 @@ function PMA_exportDBHeader($db) {
* @access public
*/
function PMA_exportDBFooter($db) {
- return TRUE;
+ return true;
}
/**
@@ -112,7 +112,7 @@ function PMA_exportDBFooter($db) {
* @access public
*/
function PMA_exportDBCreate($db) {
- return TRUE;
+ return true;
}
/**
@@ -133,10 +133,10 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
global $what;
if (! PMA_exportOutputHandler('<h2>' . __('Dumping data for table') . ' ' . $table . '</h2>')) {
- return FALSE;
+ return false;
}
if (! PMA_exportOutputHandler('<table class="width100" cellspacing="1">')) {
- return FALSE;
+ return false;
}
// Gets the data from the database
@@ -151,7 +151,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
} // end for
$schema_insert .= '</tr>';
if (! PMA_exportOutputHandler($schema_insert)) {
- return FALSE;
+ return false;
}
} // end if
@@ -170,15 +170,15 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
} // end for
$schema_insert .= '</tr>';
if (! PMA_exportOutputHandler($schema_insert)) {
- return FALSE;
+ return false;
}
} // end while
PMA_DBI_free_result($result);
if (! PMA_exportOutputHandler('</table>')) {
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = false, $do_comments = false, $do_mime = false, $dates = false, $dummy)
@@ -186,7 +186,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
global $cfgRelation;
if (! PMA_exportOutputHandler('<h2>' . __('Table structure for table') . ' ' .$table . '</h2>')) {
- return FALSE;
+ return false;
}
/**
@@ -217,19 +217,19 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$res_rel = PMA_getForeigners($db, $table);
if ($res_rel && count($res_rel) > 0) {
- $have_rel = TRUE;
+ $have_rel = true;
} else {
- $have_rel = FALSE;
+ $have_rel = false;
}
} else {
- $have_rel = FALSE;
+ $have_rel = false;
} // end if
/**
* Displays the table structure
*/
if (! PMA_exportOutputHandler('<table class="width100" cellspacing="1">')) {
- return FALSE;
+ return false;
}
$columns_cnt = 4;
@@ -262,7 +262,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$schema_insert .= '</tr>';
if (! PMA_exportOutputHandler($schema_insert)) {
- return FALSE;
+ return false;
}
while ($row = PMA_DBI_fetch_assoc($result)) {
@@ -340,7 +340,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$schema_insert .= '</tr>';
if (! PMA_exportOutputHandler($schema_insert)) {
- return FALSE;
+ return false;
}
} // end while
PMA_DBI_free_result($result);
diff --git a/libraries/export/json.php b/libraries/export/json.php
index 40f4a4d..6f70dd4 100644
--- a/libraries/export/json.php
+++ b/libraries/export/json.php
@@ -174,7 +174,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
$buffer .= ']';
if (! PMA_exportOutputHandler($buffer)) {
- return FALSE;
+ return false;
}
PMA_DBI_free_result($result);
diff --git a/libraries/export/latex.php b/libraries/export/latex.php
index 2a434ae..9709dc4 100644
--- a/libraries/export/latex.php
+++ b/libraries/export/latex.php
@@ -118,7 +118,7 @@ function PMA_exportComment($text) {
* @access public
*/
function PMA_exportFooter() {
- return TRUE;
+ return true;
}
/**
@@ -174,7 +174,7 @@ function PMA_exportDBHeader($db) {
* @access public
*/
function PMA_exportDBFooter($db) {
- return TRUE;
+ return true;
}
/**
@@ -187,7 +187,7 @@ function PMA_exportDBFooter($db) {
* @access public
*/
function PMA_exportDBCreate($db) {
- return TRUE;
+ return true;
}
/**
@@ -226,7 +226,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
. '} \\label{' . PMA_expandUserString($GLOBALS['latex_data_label'], NULL, array('table' => $table, 'database' => $db)) . '} \\\\';
}
if (!PMA_exportOutputHandler($buffer)) {
- return FALSE;
+ return false;
}
// show column names
@@ -238,17 +238,17 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
$buffer = substr($buffer, 0, -2) . '\\\\ \\hline \hline ';
if (!PMA_exportOutputHandler($buffer . ' \\endfirsthead ' . $crlf)) {
- return FALSE;
+ return false;
}
if (isset($GLOBALS['latex_caption'])) {
- if (!PMA_exportOutputHandler('\\caption{' . PMA_expandUserString($GLOBALS['latex_data_continued_caption'], 'PMA_texEscape', array('table' => $table, 'database' => $db)) . '} \\\\ ')) return FALSE;
+ if (!PMA_exportOutputHandler('\\caption{' . PMA_expandUserString($GLOBALS['latex_data_continued_caption'], 'PMA_texEscape', array('table' => $table, 'database' => $db)) . '} \\\\ ')) return false;
}
if (!PMA_exportOutputHandler($buffer . '\\endhead \\endfoot' . $crlf)) {
- return FALSE;
+ return false;
}
} else {
if (!PMA_exportOutputHandler('\\\\ \hline')) {
- return FALSE;
+ return false;
}
}
@@ -274,17 +274,17 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
}
$buffer .= ' \\\\ \\hline ' . $crlf;
if (!PMA_exportOutputHandler($buffer)) {
- return FALSE;
+ return false;
}
}
$buffer = ' \\end{longtable}' . $crlf;
if (!PMA_exportOutputHandler($buffer)) {
- return FALSE;
+ return false;
}
PMA_DBI_free_result($result);
- return TRUE;
+ return true;
} // end getTableLaTeX
@@ -337,12 +337,12 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$res_rel = PMA_getForeigners($db, $table);
if ($res_rel && count($res_rel) > 0) {
- $have_rel = TRUE;
+ $have_rel = true;
} else {
- $have_rel = FALSE;
+ $have_rel = false;
}
} else {
- $have_rel = FALSE;
+ $have_rel = false;
} // end if
/**
@@ -351,7 +351,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$buffer = $crlf . '%' . $crlf . '% ' . __('Structure') . ': ' . $table . $crlf . '%' . $crlf
. ' \\begin{longtable}{';
if (!PMA_exportOutputHandler($buffer)) {
- return FALSE;
+ return false;
}
$columns_cnt = 4;
@@ -401,7 +401,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$buffer .= $header . ' \\\\ \\hline \\hline \\endhead \\endfoot ' . $crlf;
if (!PMA_exportOutputHandler($buffer)) {
- return FALSE;
+ return false;
}
while ($row = PMA_DBI_fetch_assoc($result)) {
@@ -475,7 +475,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$buffer .= ' \\\\ \\hline ' . $crlf;
if (!PMA_exportOutputHandler($buffer)) {
- return FALSE;
+ return false;
}
} // end while
PMA_DBI_free_result($result);
diff --git a/libraries/export/mediawiki.php b/libraries/export/mediawiki.php
index 9fa1b48..386b63e 100644
--- a/libraries/export/mediawiki.php
+++ b/libraries/export/mediawiki.php
@@ -32,7 +32,7 @@ if (isset($plugin_list)) {
* @return bool Whether it suceeded
*/
function PMA_exportComment($text) {
- return TRUE;
+ return true;
}
/**
@@ -43,7 +43,7 @@ function PMA_exportComment($text) {
* @access public
*/
function PMA_exportFooter() {
- return TRUE;
+ return true;
}
/**
@@ -54,7 +54,7 @@ function PMA_exportFooter() {
* @access public
*/
function PMA_exportHeader() {
- return TRUE;
+ return true;
}
/**
@@ -67,7 +67,7 @@ function PMA_exportHeader() {
* @access public
*/
function PMA_exportDBHeader($db) {
- return TRUE;
+ return true;
}
/**
@@ -80,7 +80,7 @@ function PMA_exportDBHeader($db) {
* @access public
*/
function PMA_exportDBFooter($db) {
- return TRUE;
+ return true;
}
/**
@@ -93,7 +93,7 @@ function PMA_exportDBFooter($db) {
* @access public
*/
function PMA_exportDBCreate($db) {
- return TRUE;
+ return true;
}
/**
diff --git a/libraries/export/ods.php b/libraries/export/ods.php
index 0533741..0237627 100644
--- a/libraries/export/ods.php
+++ b/libraries/export/ods.php
@@ -40,7 +40,7 @@ require_once './libraries/opendocument.lib.php';
* @return bool Whether it suceeded
*/
function PMA_exportComment($text) {
- return TRUE;
+ return true;
}
/**
@@ -55,9 +55,9 @@ function PMA_exportFooter() {
. '</office:body>'
. '</office:document-content>';
if (!PMA_exportOutputHandler(PMA_createOpenDocument('application/vnd.oasis.opendocument.spreadsheet', $GLOBALS['ods_buffer']))) {
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
/**
@@ -106,7 +106,7 @@ function PMA_exportHeader() {
. '</office:automatic-styles>'
. '<office:body>'
. '<office:spreadsheet>';
- return TRUE;
+ return true;
}
/**
@@ -119,7 +119,7 @@ function PMA_exportHeader() {
* @access public
*/
function PMA_exportDBHeader($db) {
- return TRUE;
+ return true;
}
/**
@@ -132,7 +132,7 @@ function PMA_exportDBHeader($db) {
* @access public
*/
function PMA_exportDBFooter($db) {
- return TRUE;
+ return true;
}
/**
@@ -145,7 +145,7 @@ function PMA_exportDBFooter($db) {
* @access public
*/
function PMA_exportDBCreate($db) {
- return TRUE;
+ return true;
}
/**
@@ -228,7 +228,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
$GLOBALS['ods_buffer'] .= '</table:table>';
- return TRUE;
+ return true;
}
}
diff --git a/libraries/export/odt.php b/libraries/export/odt.php
index 7af6013..2210a12 100644
--- a/libraries/export/odt.php
+++ b/libraries/export/odt.php
@@ -72,7 +72,7 @@ require_once './libraries/opendocument.lib.php';
* @return bool Whether it suceeded
*/
function PMA_exportComment($text) {
- return TRUE;
+ return true;
}
/**
@@ -87,9 +87,9 @@ function PMA_exportFooter() {
. '</office:body>'
. '</office:document-content>';
if (!PMA_exportOutputHandler(PMA_createOpenDocument('application/vnd.oasis.opendocument.text', $GLOBALS['odt_buffer']))) {
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
/**
@@ -104,7 +104,7 @@ function PMA_exportHeader() {
. '<office:document-content '. $GLOBALS['OpenDocumentNS'] . 'office:version="1.0">'
. '<office:body>'
. '<office:text>';
- return TRUE;
+ return true;
}
/**
@@ -118,7 +118,7 @@ function PMA_exportHeader() {
*/
function PMA_exportDBHeader($db) {
$GLOBALS['odt_buffer'] .= '<text:h text:outline-level="1" text:style-name="Heading_1" text:is-list-header="true">' . htmlspecialchars(__('Database') . ' ' . $db) . '</text:h>';
- return TRUE;
+ return true;
}
/**
@@ -131,7 +131,7 @@ function PMA_exportDBHeader($db) {
* @access public
*/
function PMA_exportDBFooter($db) {
- return TRUE;
+ return true;
}
/**
@@ -144,7 +144,7 @@ function PMA_exportDBFooter($db) {
* @access public
*/
function PMA_exportDBCreate($db) {
- return TRUE;
+ return true;
}
/**
@@ -217,7 +217,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
$GLOBALS['odt_buffer'] .= '</table:table>';
- return TRUE;
+ return true;
}
/**
@@ -272,12 +272,12 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$res_rel = PMA_getForeigners($db, $table);
if ($res_rel && count($res_rel) > 0) {
- $have_rel = TRUE;
+ $have_rel = true;
} else {
- $have_rel = FALSE;
+ $have_rel = false;
}
} else {
- $have_rel = FALSE;
+ $have_rel = false;
} // end if
/**
@@ -412,7 +412,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
PMA_DBI_free_result($result);
$GLOBALS['odt_buffer'] .= '</table:table>';
- return TRUE;
+ return true;
} // end of the 'PMA_exportStructure' function
} // end else
diff --git a/libraries/export/pdf.php b/libraries/export/pdf.php
index 431df0d..fe9b46c 100644
--- a/libraries/export/pdf.php
+++ b/libraries/export/pdf.php
@@ -365,7 +365,7 @@ $pdf = new PMA_PDF('L', 'pt', 'A3');
*/
function PMA_exportComment($text)
{
- return TRUE;
+ return true;
}
/**
@@ -381,10 +381,10 @@ function PMA_exportFooter()
// instead of $pdf->Output():
if (!PMA_exportOutputHandler($pdf->getPDFData())) {
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
/**
@@ -412,7 +412,7 @@ function PMA_exportHeader()
$pdf->setAttributes($attr);
$pdf->setTopMargin(45);
- return TRUE;
+ return true;
}
/**
@@ -426,7 +426,7 @@ function PMA_exportHeader()
*/
function PMA_exportDBHeader($db)
{
- return TRUE;
+ return true;
}
/**
@@ -440,7 +440,7 @@ function PMA_exportDBHeader($db)
*/
function PMA_exportDBFooter($db)
{
- return TRUE;
+ return true;
}
/**
@@ -454,7 +454,7 @@ function PMA_exportDBFooter($db)
*/
function PMA_exportDBCreate($db)
{
- return TRUE;
+ return true;
}
/**
@@ -479,7 +479,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
$pdf->setAttributes($attr);
$pdf->mysql_report($sql_query);
- return TRUE;
+ return true;
} // end of the 'PMA_exportData()' function
}
?>
diff --git a/libraries/export/php_array.php b/libraries/export/php_array.php
index 983673c..2c3b4e6 100644
--- a/libraries/export/php_array.php
+++ b/libraries/export/php_array.php
@@ -167,7 +167,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
$buffer .= $crlf . ');' . $crlf;
if (! PMA_exportOutputHandler($buffer)) {
- return FALSE;
+ return false;
}
PMA_DBI_free_result($result);
diff --git a/libraries/export/sql.php b/libraries/export/sql.php
index 1530c53..55d330e 100644
--- a/libraries/export/sql.php
+++ b/libraries/export/sql.php
@@ -526,7 +526,7 @@ function PMA_exportDBCreate($db)
global $crlf;
if (isset($GLOBALS['sql_drop_database'])) {
if (!PMA_exportOutputHandler('DROP DATABASE ' . (isset($GLOBALS['sql_backquotes']) ? PMA_backquote($db) : $db) . ';' . $crlf)) {
- return FALSE;
+ return false;
}
}
$create_query = 'CREATE DATABASE ' . (isset($GLOBALS['sql_backquotes']) ? PMA_backquote($db) : $db);
@@ -538,7 +538,7 @@ function PMA_exportDBCreate($db)
}
$create_query .= ';' . $crlf;
if (!PMA_exportOutputHandler($create_query)) {
- return FALSE;
+ return false;
}
if (isset($GLOBALS['sql_backquotes']) && isset($GLOBALS['sql_compatibility']) && $GLOBALS['sql_compatibility'] == 'NONE') {
$result = PMA_exportOutputHandler('USE ' . PMA_backquote($db) . ';' . $crlf);
@@ -579,7 +579,7 @@ function PMA_exportDBFooter($db)
{
global $crlf;
- $result = TRUE;
+ $result = true;
if (isset($GLOBALS['sql_constraints'])) {
$result = PMA_exportOutputHandler($GLOBALS['sql_constraints']);
unset($GLOBALS['sql_constraints']);
@@ -688,7 +688,7 @@ function PMA_getTableDef($db, $table, $crlf, $error_url, $show_dates = false, $a
// need to use PMA_DBI_QUERY_STORE with PMA_DBI_num_rows() in mysqli
$result = PMA_DBI_query('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . PMA_sqlAddslashes($table) . '\'', null, PMA_DBI_QUERY_STORE);
- if ($result != FALSE) {
+ if ($result != false) {
if (PMA_DBI_num_rows($result) > 0) {
$tmpres = PMA_DBI_fetch_assoc($result);
// Here we optionally add the AUTO_INCREMENT next value,
@@ -747,7 +747,7 @@ function PMA_getTableDef($db, $table, $crlf, $error_url, $show_dates = false, $a
return PMA_exportComment(__('in use') . '(' . $tmp_error . ')');
}
- if ($result != FALSE && ($row = PMA_DBI_fetch_row($result))) {
+ if ($result != false && ($row = PMA_DBI_fetch_row($result))) {
$create_query = $row[1];
unset($row);
@@ -821,13 +821,13 @@ function PMA_getTableDef($db, $table, $crlf, $error_url, $show_dates = false, $a
$sql_constraints .= 'ALTER TABLE ' . PMA_backquote($table) . $crlf;
$sql_drop_foreign_keys .= 'ALTER TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table) . $crlf;
- $first = TRUE;
+ $first = true;
for ($j = $i; $j < $sql_count; $j++) {
if (preg_match('@CONSTRAINT|FOREIGN[\s]+KEY@', $sql_lines[$j])) {
if (!$first) {
$sql_constraints .= $crlf;
}
- if (strpos($sql_lines[$j], 'CONSTRAINT') === FALSE) {
+ if (strpos($sql_lines[$j], 'CONSTRAINT') === false) {
$tmp_str = preg_replace('/(FOREIGN[\s]+KEY)/', 'ADD \1', $sql_lines[$j]);
$sql_constraints_query .= $tmp_str;
$sql_constraints .= $tmp_str;
@@ -841,7 +841,7 @@ function PMA_getTableDef($db, $table, $crlf, $error_url, $show_dates = false, $a
}
$sql_drop_foreign_keys .= 'DROP FOREIGN KEY ' . $matches[3];
}
- $first = FALSE;
+ $first = false;
} else {
break;
}
@@ -895,12 +895,12 @@ function PMA_getTableComments($db, $table, $crlf, $do_relation = false, $do_mim
$res_rel = PMA_getForeigners($db, $table);
if ($res_rel && count($res_rel) > 0) {
- $have_rel = TRUE;
+ $have_rel = true;
} else {
- $have_rel = FALSE;
+ $have_rel = false;
}
} else {
- $have_rel = FALSE;
+ $have_rel = false;
} // end if
if ($do_mime && $cfgRelation['mimework']) {
@@ -958,7 +958,7 @@ function PMA_getTableComments($db, $table, $crlf, $do_relation = false, $do_mim
*
* @access public
*/
-function PMA_exportStructure($db, $table, $crlf, $error_url, $relation = FALSE, $comments = FALSE, $mime = FALSE, $dates = FALSE, $export_mode, $export_type)
+function PMA_exportStructure($db, $table, $crlf, $error_url, $relation = false, $comments = false, $mime = false, $dates = false, $export_mode, $export_type)
{
$formatted_table_name = (isset($GLOBALS['sql_backquotes']))
? PMA_backquote($table)
@@ -1058,7 +1058,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
. PMA_possibleCRLF();
if (! PMA_exportOutputHandler($head)) {
- return FALSE;
+ return false;
}
return true;
}
@@ -1078,7 +1078,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
return PMA_exportOutputHandler(PMA_exportComment(__('in use') . ' (' . $tmp_error . ')'));
}
- if ($result != FALSE) {
+ if ($result != false) {
$fields_cnt = PMA_DBI_num_fields($result);
// Get field information
@@ -1155,7 +1155,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
. PMA_exportComment()
. $crlf;
if (! PMA_exportOutputHandler($head)) {
- return FALSE;
+ return false;
}
}
$current_row++;
@@ -1221,7 +1221,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
$insert_line = '(' . implode(', ', $values) . ')';
if (isset($GLOBALS['sql_max_query_size']) && $GLOBALS['sql_max_query_size'] > 0 && $query_size + strlen($insert_line) > $GLOBALS['sql_max_query_size']) {
if (!PMA_exportOutputHandler(';' . $crlf)) {
- return FALSE;
+ return false;
}
$query_size = 0;
$current_row = 1;
@@ -1238,19 +1238,19 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
unset($values);
if (!PMA_exportOutputHandler(($current_row == 1 ? '' : $separator . $crlf) . $insert_line)) {
- return FALSE;
+ return false;
}
} // end while
if ($current_row > 0) {
if (!PMA_exportOutputHandler(';' . $crlf)) {
- return FALSE;
+ return false;
}
}
- } // end if ($result != FALSE)
+ } // end if ($result != false)
PMA_DBI_free_result($result);
- return TRUE;
+ return true;
} // end of the 'PMA_exportData()' function
}
?>
diff --git a/libraries/export/texytext.php b/libraries/export/texytext.php
index 1895bcf..d15b43e 100644
--- a/libraries/export/texytext.php
+++ b/libraries/export/texytext.php
@@ -39,7 +39,7 @@ if (isset($plugin_list)) {
* @return bool Whether it suceeded
*/
function PMA_exportComment($text) {
- return TRUE;
+ return true;
}
/**
@@ -87,7 +87,7 @@ function PMA_exportDBHeader($db) {
* @access public
*/
function PMA_exportDBFooter($db) {
- return TRUE;
+ return true;
}
/**
@@ -100,7 +100,7 @@ function PMA_exportDBFooter($db) {
* @access public
*/
function PMA_exportDBCreate($db) {
- return TRUE;
+ return true;
}
/**
@@ -121,7 +121,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
global $what;
if (! PMA_exportOutputHandler('== ' . __('Dumping data for table') . ' ' . $table . "\n\n")) {
- return FALSE;
+ return false;
}
// Gets the data from the database
@@ -136,7 +136,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
} // end for
$text_output .= "\n|------\n";
if (! PMA_exportOutputHandler($text_output)) {
- return FALSE;
+ return false;
}
} // end if
@@ -155,12 +155,12 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
} // end for
$text_output .= "\n";
if (! PMA_exportOutputHandler($text_output)) {
- return FALSE;
+ return false;
}
} // end while
PMA_DBI_free_result($result);
- return TRUE;
+ return true;
}
function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = false, $do_comments = false, $do_mime = false, $dates = false, $dummy)
@@ -168,7 +168,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
global $cfgRelation;
if (! PMA_exportOutputHandler('== ' . __('Table structure for table') . ' ' .$table . "\n\n")) {
- return FALSE;
+ return false;
}
/**
@@ -199,12 +199,12 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$res_rel = PMA_getForeigners($db, $table);
if ($res_rel && count($res_rel) > 0) {
- $have_rel = TRUE;
+ $have_rel = true;
} else {
- $have_rel = FALSE;
+ $have_rel = false;
}
} else {
- $have_rel = FALSE;
+ $have_rel = false;
} // end if
/**
@@ -241,7 +241,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$text_output .= "\n|------\n";
if (! PMA_exportOutputHandler($text_output)) {
- return FALSE;
+ return false;
}
while ($row = PMA_DBI_fetch_assoc($result)) {
@@ -319,7 +319,7 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $do_relation = fals
$text_output .= "\n";
if (! PMA_exportOutputHandler($text_output)) {
- return FALSE;
+ return false;
}
} // end while
PMA_DBI_free_result($result);
diff --git a/libraries/export/xls.php b/libraries/export/xls.php
index 599025d..01e2ae4 100644
--- a/libraries/export/xls.php
+++ b/libraries/export/xls.php
@@ -43,7 +43,7 @@ require_once './libraries/PHPExcel/PHPExcel/Writer/Excel5.php';
* @return bool Whether it suceeded
*/
function PMA_exportComment($text) {
- return TRUE;
+ return true;
}
/**
@@ -64,7 +64,7 @@ function PMA_exportFooter() {
$workbookWriter->save($tmp_filename);
if (!PMA_exportOutputHandler(file_get_contents($tmp_filename))) {
- return FALSE;
+ return false;
}
unlink($tmp_filename);
@@ -72,7 +72,7 @@ function PMA_exportFooter() {
unset($GLOBALS['workbook']);
unset($GLOBALS['sheet_index']);
- return TRUE;
+ return true;
}
/**
@@ -95,7 +95,7 @@ function PMA_exportHeader() {
$workbook->getProperties()->setTitle($db);
$workbook->getProperties()->setSubject('phpMyAdmin ' . PMA_VERSION . ' XLS Dump');
- return TRUE;
+ return true;
}
/**
@@ -110,7 +110,7 @@ function PMA_exportHeader() {
function PMA_exportDBHeader($db) {
- return TRUE;
+ return true;
}
/**
@@ -123,7 +123,7 @@ function PMA_exportDBHeader($db) {
* @access public
*/
function PMA_exportDBFooter($db) {
- return TRUE;
+ return true;
}
/**
@@ -136,7 +136,7 @@ function PMA_exportDBFooter($db) {
* @access public
*/
function PMA_exportDBCreate($db) {
- return TRUE;
+ return true;
}
/**
@@ -200,7 +200,7 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
$sheet_index++;
}
- return TRUE;
+ return true;
}
}
diff --git a/libraries/export/xlsx.php b/libraries/export/xlsx.php
index 89c5288..190cd2f 100644
--- a/libraries/export/xlsx.php
+++ b/libraries/export/xlsx.php
@@ -43,7 +43,7 @@ require_once './libraries/PHPExcel/PHPExcel/Writer/Excel2007.php';
* @return bool Whether it suceeded
*/
function PMA_exportComment($text) {
- return TRUE;
+ return true;
}
/**
@@ -63,7 +63,7 @@ function PMA_exportFooter() {
$workbookWriter->save($tmp_filename);
if (!PMA_exportOutputHandler(file_get_contents($tmp_filename))) {
- return FALSE;
+ return false;
}
unlink($tmp_filename);
@@ -71,7 +71,7 @@ function PMA_exportFooter() {
unset($GLOBALS['workbook']);
unset($GLOBALS['sheet_index']);
- return TRUE;
+ return true;
}
/**
@@ -94,7 +94,7 @@ function PMA_exportHeader() {
$workbook->getProperties()->setTitle($db);
$workbook->getProperties()->setSubject('phpMyAdmin ' . PMA_VERSION . ' XLSX Dump');
- return TRUE;
+ return true;
}
/**
@@ -109,7 +109,7 @@ function PMA_exportHeader() {
function PMA_exportDBHeader($db) {
- return TRUE;
+ return true;
}
/**
@@ -122,7 +122,7 @@ function PMA_exportDBHeader($db) {
* @access public
*/
function PMA_exportDBFooter($db) {
- return TRUE;
+ return true;
}
/**
@@ -135,7 +135,7 @@ function PMA_exportDBFooter($d ) { ' . PMA_VERSION . ' XLSX Dump'); on = fals , $do_mime = false, $dates = false, $dummy) BALS['sql_max_query_size']) { ; '} \\\\ ')) return false; n.html#faq1_16@Documentation]FAQ 1.16[/a].')); P��� ��� �]�g/+ 6 � �! �! ���� @��� x��h/+ P��� "A�g/+ ^�g/+ ���� �@�g/+ ��� ��i/+ �H�g/+ �i/+ ��i/+ ��i/+ �Ćg/+ x��h/+ P��� ��� �]�g/+ �! �! ���� @��� Ƚ�h/+ 0��� "A�g/+ ^�g/+ ���� �@�g/+ ��� ��� ���� [�g/+ �p� @��� �H�g/+ �Ćg/+ 0��� ��� �]�g/+ G H I J K M N O P ���� @��� HuXh/+ ���� "A�g/+ ^�g/+ ���� 0�i/+ �H�g/+ �h/+ ��5h/+ �i/+ ��i/+ ��i/+ �Ćg/+ HuXh/+ ���� ��� �]�g/+ 8uXh/+ ���� @��� �]�g/+ (uXh/+ ���� p��� �]�g/+ uXh/+ ���� ���� �]�g/+ ��i/+ �H�g/+ ��i/+ ��� ��5h/+ �G�g/+ ��i/+ @��� y�5h/+ �G�g/+ �i/+ p��� Z�5h/+ �G�g/+ ؤ5h/+ �h/+ ��5h/+ �i/+ ��h/+ ��i/+ ��i/+ �Ćg/+ ��3h/+ ���� ���� �]�g/+ # % '