Git
Threads by month
- ----- 2026 -----
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- 9 participants
- 39110 discussions
[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_2RC1-3166-gdb07b65
by Piotr Przybylski 06 Jun '11
by Piotr Przybylski 06 Jun '11
06 Jun '11
The branch, master has been updated
via db07b65c657162ce04c50ec1164390f0fb68b905 (commit)
from 41376df2b088a83778067d1f4f6e7c7669ab3561 (commit)
- Log -----------------------------------------------------------------
commit db07b65c657162ce04c50ec1164390f0fb68b905
Author: Piotr Przybylski <piotrprz(a)gmail.com>
Date: Mon Jun 6 16:40:43 2011 +0200
Add missing 'server' argument to PMA_reloadRecentTable
Was causing token regeneration on non-default servers, if the next action required valid token it would fail
-----------------------------------------------------------------------
Summary of changes:
js/navigation.js | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/js/navigation.js b/js/navigation.js
index 7f9a013..20aea18 100644
--- a/js/navigation.js
+++ b/js/navigation.js
@@ -171,13 +171,16 @@ function clear_fast_filter() {
* Reloads the recent tables list.
*/
function PMA_reloadRecentTable() {
- $.get('navigation.php',
- { 'token' : window.parent.token, 'ajax_request' : true, 'recent_table' : true },
- function (data) {
- if (data.success == true) {
- $('#recentTable').html(data.options);
- }
- });
+ $.get('navigation.php', {
+ 'token': window.parent.token,
+ 'server': window.parent.server,
+ 'ajax_request': true,
+ 'recent_table': true},
+ function (data) {
+ if (data.success == true) {
+ $('#recentTable').html(data.options);
+ }
+ });
}
/* Performed on load */
hooks/post-receive
--
phpMyAdmin
1
0
[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_2RC1-3165-g41376df
by Michal Čihař 06 Jun '11
by Michal Čihař 06 Jun '11
06 Jun '11
The branch, master has been updated
via 41376df2b088a83778067d1f4f6e7c7669ab3561 (commit)
via 91c16608f8afa5d51975bd5e7aa54a828662da83 (commit)
via 55d8b1efa04851fc1572154dead2d77820cb596d (commit)
via 9b0b9b0b59311aa3274e5ed2060d47240504bfd0 (commit)
via 0c964ca10ba0f7b2181332517bd8c62149626500 (commit)
via c13e64468b9afed3f5963debbf01533f07bce444 (commit)
via 4b3b0c616cc34f9f68da24553741a5e4096e1370 (commit)
via cbd0b7d8f7a4887365170251fdd26fb6d44e9af5 (commit)
via 6c6ae1c1cc8fec669749f9fbcbdb862b81d206d5 (commit)
from d147fd26db0cf8a5965c640c3047494acc2b9d44 (commit)
- Log -----------------------------------------------------------------
commit 41376df2b088a83778067d1f4f6e7c7669ab3561
Author: Michal Čihař <mcihar(a)novell.com>
Date: Mon Jun 6 16:36:57 2011 +0200
Properly end multi word links
commit 91c16608f8afa5d51975bd5e7aa54a828662da83
Author: Michal Čihař <mcihar(a)novell.com>
Date: Mon Jun 6 16:33:22 2011 +0200
Documentation for other reserved words
commit 55d8b1efa04851fc1572154dead2d77820cb596d
Author: Michal Čihař <mcihar(a)novell.com>
Date: Mon Jun 6 16:21:23 2011 +0200
Add documentation links to function names
commit 9b0b9b0b59311aa3274e5ed2060d47240504bfd0
Author: Michal Čihař <mcihar(a)novell.com>
Date: Mon Jun 6 16:13:33 2011 +0200
Move doc back to correct place
commit 0c964ca10ba0f7b2181332517bd8c62149626500
Author: Michal Čihař <mcihar(a)novell.com>
Date: Mon Jun 6 16:12:33 2011 +0200
Provide doc links for operators
commit c13e64468b9afed3f5963debbf01533f07bce444
Author: Michal Čihař <mcihar(a)novell.com>
Date: Mon Jun 6 15:58:06 2011 +0200
Coding style
commit 4b3b0c616cc34f9f68da24553741a5e4096e1370
Author: Mateusz Lewandowski <gandalfml(a)users.sourceforge.net>
Date: Mon Jun 6 15:56:58 2011 +0200
Add data for documentation links.
commit cbd0b7d8f7a4887365170251fdd26fb6d44e9af5
Merge: d147fd26db0cf8a5965c640c3047494acc2b9d44 6c6ae1c1cc8fec669749f9fbcbdb862b81d206d5
Author: Michal Čihař <mcihar(a)novell.com>
Date: Mon Jun 6 15:54:29 2011 +0200
Merge branch 'integration'
Conflicts:
libraries/sqlparser.lib.php
commit 6c6ae1c1cc8fec669749f9fbcbdb862b81d206d5
Author: Mateusz Lewandowski <gandalfml(a)users.sourceforge.net>
Date: Tue Apr 5 21:30:20 2011 +0200
Better names for some variables
-----------------------------------------------------------------------
Summary of changes:
libraries/sqlparser.data.php | 266 ++++++++++++++++++++++++++++++++++++++++++
libraries/sqlparser.lib.php | 55 +++++++--
2 files changed, 312 insertions(+), 9 deletions(-)
diff --git a/libraries/sqlparser.data.php b/libraries/sqlparser.data.php
index 5011ca7..d1c4b16 100644
--- a/libraries/sqlparser.data.php
+++ b/libraries/sqlparser.data.php
@@ -1222,4 +1222,270 @@ $PMA_SQPdata_column_type = array (
'YEAR'
);
+/**
+ * Documentation links for operators.
+ */
+$PMA_SQPdata_operators_docs = array(
+ '!=' => array('link' => 'comparison-operators','anchor' => 'operator_not-equal'),
+ '<>' => array('link' => 'comparison-operators','anchor' => 'operator_not-equal'),
+ '!' => array('link' => 'logical-operators','anchor' => 'operator_not'),
+ '||' => array('link' => 'logical-operators','anchor' => 'operator_or'),
+ '+' => array('link' => 'arithmetic-functions','anchor' => 'operator_plus'),
+ '>>' => array('link' => 'bit-functions','anchor' => 'operator_right-shift'),
+ '-' => array('link' => 'arithmetic-functions','anchor' => 'operator_minus'),
+ '*' => array('link' => 'arithmetic-functions','anchor' => 'operator_times'),
+ '&&' => array('link' => 'logical-operators','anchor' => 'operator_and'),
+ '&' => array('link' => 'bit-functions','anchor' => 'operator_bitwise-and'),
+ '~' => array('link' => 'bit-functions','anchor' => 'operator_bitwise-invert'),
+ '|' => array('link' => 'bit-functions','anchor' => 'operator_bitwise-or'),
+ '^' => array('link' => 'bit-functions','anchor' => 'operator_bitwise-xor'),
+ '=' => array('link' => 'assignment-operators','anchor' => 'operator_assign-equal'),
+ ':=' => array('link' => 'assignment-operators','anchor' => 'operator_assign-value'),
+ '/' => array('link' => 'arithmetic-functions','anchor' => 'operator_divide'),
+ '<=>' => array('link' => 'comparison-operators','anchor' => 'operator_equal-to'),
+ '=' => array('link' => 'comparison-operators','anchor' => 'operator_equal'),
+ '>=' => array('link' => 'comparison-operators','anchor' => 'operator_greater-than-or-equal'),
+ '>' => array('link' => 'comparison-operators','anchor' => 'operator_greater-than'),
+ '<<' => array('link' => 'bit-functions','anchor' => 'operator_left-shift'),
+ '<=' => array('link' => 'comparison-operators','anchor' => 'operator_less-than-or-equal'),
+ '<' => array('link' => 'comparison-operators','anchor' => 'operator_less-than'),
+ '%' => array('link' => 'arithmetic-functions','anchor' => 'operator_mod')
+);
+
+/**
+ * Documentation links for functions.
+ */
+$PMA_SQPdata_functions_docs = array(
+ 'ABS' => array('link' => 'mathematical-functions','anchor' => 'function_abs'),
+ 'ACOS' => array('link' => 'mathematical-functions','anchor' => 'function_acos'),
+ 'ADDDATE' => array('link' => 'date-and-time-functions','anchor' => 'function_adddate'),
+ 'ADDTIME' => array('link' => 'date-and-time-functions','anchor' => 'function_addtime'),
+ 'AES_DECRYPT' => array('link' => 'encryption-functions','anchor' => 'function_aes_decrypt'),
+ 'AES_ENCRYPT' => array('link' => 'encryption-functions','anchor' => 'function_aes_encrypt'),
+ 'AND' => array('link' => 'logical-operators','anchor' => 'operator_and'),
+ 'ASCII' => array('link' => 'string-functions','anchor' => 'function_ascii'),
+ 'ASIN' => array('link' => 'mathematical-functions','anchor' => 'function_asin'),
+ 'ATAN2' => array('link' => 'mathematical-functions','anchor' => 'function_atan2'),
+ 'ATAN' => array('link' => 'mathematical-functions','anchor' => 'function_atan2'),
+ 'ATAN' => array('link' => 'mathematical-functions','anchor' => 'function_atan'),
+ 'AVG' => array('link' => 'group-by-functions','anchor' => 'function_avg'),
+ 'BENCHMARK' => array('link' => 'information-functions','anchor' => 'function_benchmark'),
+ 'BIN' => array('link' => 'string-functions','anchor' => 'function_bin'),
+ 'BINARY' => array('link' => 'cast-functions','anchor' => 'operator_binary'),
+ 'BIT_AND' => array('link' => 'group-by-functions','anchor' => 'function_bit_and'),
+ 'BIT_COUNT' => array('link' => 'bit-functions','anchor' => 'function_bit_count'),
+ 'BIT_LENGTH' => array('link' => 'string-functions','anchor' => 'function_bit_length'),
+ 'BIT_OR' => array('link' => 'group-by-functions','anchor' => 'function_bit_or'),
+ 'BIT_XOR' => array('link' => 'group-by-functions','anchor' => 'function_bit_xor'),
+ 'CASE' => array('link' => 'control-flow-functions','anchor' => 'operator_case'),
+ 'CAST' => array('link' => 'cast-functions','anchor' => 'function_cast'),
+ 'CEIL' => array('link' => 'mathematical-functions','anchor' => 'function_ceil'),
+ 'CEILING' => array('link' => 'mathematical-functions','anchor' => 'function_ceiling'),
+ 'CHAR_LENGTH' => array('link' => 'string-functions','anchor' => 'function_char_length'),
+ 'CHAR' => array('link' => 'string-functions','anchor' => 'function_char'),
+ 'CHARACTER_LENGTH' => array('link' => 'string-functions','anchor' => 'function_character_length'),
+ 'CHARSET' => array('link' => 'information-functions','anchor' => 'function_charset'),
+ 'COALESCE' => array('link' => 'comparison-operators','anchor' => 'function_coalesce'),
+ 'COERCIBILITY' => array('link' => 'information-functions','anchor' => 'function_coercibility'),
+ 'COLLATION' => array('link' => 'information-functions','anchor' => 'function_collation'),
+ 'COMPRESS' => array('link' => 'encryption-functions','anchor' => 'function_compress'),
+ 'CONCAT_WS' => array('link' => 'string-functions','anchor' => 'function_concat_ws'),
+ 'CONCAT' => array('link' => 'string-functions','anchor' => 'function_concat'),
+ 'CONNECTION_ID' => array('link' => 'information-functions','anchor' => 'function_connection_id'),
+ 'CONV' => array('link' => 'mathematical-functions','anchor' => 'function_conv'),
+ 'CONVERT_TZ' => array('link' => 'date-and-time-functions','anchor' => 'function_convert_tz'),
+ 'Convert' => array('link' => 'cast-functions','anchor' => 'function_convert'),
+ 'COS' => array('link' => 'mathematical-functions','anchor' => 'function_cos'),
+ 'COT' => array('link' => 'mathematical-functions','anchor' => 'function_cot'),
+ 'COUNT' => array('link' => 'group-by-functions','anchor' => 'function_count'),
+ 'CRC32' => array('link' => 'mathematical-functions','anchor' => 'function_crc32'),
+ 'CURDATE' => array('link' => 'date-and-time-functions','anchor' => 'function_curdate'),
+ 'CURRENT_DATE' => array('link' => 'date-and-time-functions','anchor' => 'function_current_date'),
+ 'CURRENT_TIME' => array('link' => 'date-and-time-functions','anchor' => 'function_current_time'),
+ 'CURRENT_TIMESTAMP' => array('link' => 'date-and-time-functions','anchor' => 'function_current_timestamp'),
+ 'CURRENT_USER' => array('link' => 'information-functions','anchor' => 'function_current_user'),
+ 'CURTIME' => array('link' => 'date-and-time-functions','anchor' => 'function_curtime'),
+ 'DATABASE' => array('link' => 'information-functions','anchor' => 'function_database'),
+ 'DATE_ADD' => array('link' => 'date-and-time-functions','anchor' => 'function_date_add'),
+ 'DATE_FORMAT' => array('link' => 'date-and-time-functions','anchor' => 'function_date_format'),
+ 'DATE_SUB' => array('link' => 'date-and-time-functions','anchor' => 'function_date_sub'),
+ 'DATE' => array('link' => 'date-and-time-functions','anchor' => 'function_date'),
+ 'DATEDIFF' => array('link' => 'date-and-time-functions','anchor' => 'function_datediff'),
+ 'DAY' => array('link' => 'date-and-time-functions','anchor' => 'function_day'),
+ 'DAYNAME' => array('link' => 'date-and-time-functions','anchor' => 'function_dayname'),
+ 'DAYOFMONTH' => array('link' => 'date-and-time-functions','anchor' => 'function_dayofmonth'),
+ 'DAYOFWEEK' => array('link' => 'date-and-time-functions','anchor' => 'function_dayofweek'),
+ 'DAYOFYEAR' => array('link' => 'date-and-time-functions','anchor' => 'function_dayofyear'),
+ 'DECODE' => array('link' => 'encryption-functions','anchor' => 'function_decode'),
+ 'DEFAULT' => array('link' => 'miscellaneous-functions','anchor' => 'function_default'),
+ 'DEGREES' => array('link' => 'mathematical-functions','anchor' => 'function_degrees'),
+ 'DES_DECRYPT' => array('link' => 'encryption-functions','anchor' => 'function_des_decrypt'),
+ 'DES_ENCRYPT' => array('link' => 'encryption-functions','anchor' => 'function_des_encrypt'),
+ 'DIV' => array('link' => 'arithmetic-functions','anchor' => 'operator_div'),
+ 'ELT' => array('link' => 'string-functions','anchor' => 'function_elt'),
+ 'ENCODE' => array('link' => 'encryption-functions','anchor' => 'function_encode'),
+ 'ENCRYPT' => array('link' => 'encryption-functions','anchor' => 'function_encrypt'),
+ 'EXP' => array('link' => 'mathematical-functions','anchor' => 'function_exp'),
+ 'EXPORT_SET' => array('link' => 'string-functions','anchor' => 'function_export_set'),
+ 'EXTRACT' => array('link' => 'date-and-time-functions','anchor' => 'function_extract'),
+ 'ExtractValue' => array('link' => 'xml-functions','anchor' => 'function_extractvalue'),
+ 'FIELD' => array('link' => 'string-functions','anchor' => 'function_field'),
+ 'FIND_IN_SET' => array('link' => 'string-functions','anchor' => 'function_find_in_set'),
+ 'FLOOR' => array('link' => 'mathematical-functions','anchor' => 'function_floor'),
+ 'FORMAT' => array('link' => 'string-functions','anchor' => 'function_format'),
+ 'FOUND_ROWS' => array('link' => 'information-functions','anchor' => 'function_found_rows'),
+ 'FROM_DAYS' => array('link' => 'date-and-time-functions','anchor' => 'function_from_days'),
+ 'FROM_UNIXTIME' => array('link' => 'date-and-time-functions','anchor' => 'function_from_unixtime'),
+ 'GET_FORMAT' => array('link' => 'date-and-time-functions','anchor' => 'function_get_format'),
+ 'GET_LOCK' => array('link' => 'miscellaneous-functions','anchor' => 'function_get_lock'),
+ 'GREATEST' => array('link' => 'comparison-operators','anchor' => 'function_greatest'),
+ 'GROUP_CONCAT' => array('link' => 'group-by-functions','anchor' => 'function_group_concat'),
+ 'HEX' => array('link' => 'string-functions','anchor' => 'function_hex'),
+ 'HOUR' => array('link' => 'date-and-time-functions','anchor' => 'function_hour'),
+ 'IF' => array('link' => 'control-flow-functions','anchor' => 'function_if'),
+ 'IFNULL' => array('link' => 'control-flow-functions','anchor' => 'function_ifnull'),
+ 'IN' => array('link' => 'comparison-operators','anchor' => 'function_in'),
+ 'INET_ATON' => array('link' => 'miscellaneous-functions','anchor' => 'function_inet_aton'),
+ 'INET_NTOA' => array('link' => 'miscellaneous-functions','anchor' => 'function_inet_ntoa'),
+ 'INSERT' => array('link' => 'string-functions','anchor' => 'function_insert'),
+ 'INSTR' => array('link' => 'string-functions','anchor' => 'function_instr'),
+ 'INTERVAL' => array('link' => 'comparison-operators','anchor' => 'function_interval'),
+ 'IS_FREE_LOCK' => array('link' => 'miscellaneous-functions','anchor' => 'function_is_free_lock'),
+ 'IS_USED_LOCK' => array('link' => 'miscellaneous-functions','anchor' => 'function_is_used_lock'),
+ 'IS' => array('link' => 'comparison-operators','anchor' => 'operator_is'),
+ 'ISNULL' => array('link' => 'comparison-operators','anchor' => 'function_isnull'),
+ 'LAST_DAY' => array('link' => 'date-and-time-functions','anchor' => 'function_last_day'),
+ 'LAST_INSERT_ID' => array('link' => 'information-functions','anchor' => 'function_last_insert_id'),
+ 'LCASE' => array('link' => 'string-functions','anchor' => 'function_lcase'),
+ 'LEAST' => array('link' => 'comparison-operators','anchor' => 'function_least'),
+ 'LEFT' => array('link' => 'string-functions','anchor' => 'function_left'),
+ 'LENGTH' => array('link' => 'string-functions','anchor' => 'function_length'),
+ 'LIKE' => array('link' => 'string-comparison-functions','anchor' => 'operator_like'),
+ 'LN' => array('link' => 'mathematical-functions','anchor' => 'function_ln'),
+ 'LOAD_FILE' => array('link' => 'string-functions','anchor' => 'function_load_file'),
+ 'LOCALTIME' => array('link' => 'date-and-time-functions','anchor' => 'function_localtime'),
+ 'LOCALTIMESTAMP' => array('link' => 'date-and-time-functions','anchor' => 'function_localtimestamp'),
+ 'LOCATE' => array('link' => 'string-functions','anchor' => 'function_locate'),
+ 'LOG10' => array('link' => 'mathematical-functions','anchor' => 'function_log10'),
+ 'LOG2' => array('link' => 'mathematical-functions','anchor' => 'function_log2'),
+ 'LOG' => array('link' => 'mathematical-functions','anchor' => 'function_log'),
+ 'LOWER' => array('link' => 'string-functions','anchor' => 'function_lower'),
+ 'LPAD' => array('link' => 'string-functions','anchor' => 'function_lpad'),
+ 'LTRIM' => array('link' => 'string-functions','anchor' => 'function_ltrim'),
+ 'MAKE_SET' => array('link' => 'string-functions','anchor' => 'function_make_set'),
+ 'MAKEDATE' => array('link' => 'date-and-time-functions','anchor' => 'function_makedate'),
+ 'MAKETIME' => array('link' => 'date-and-time-functions','anchor' => 'function_maketime'),
+ 'MASTER_POS_WAIT' => array('link' => 'miscellaneous-functions','anchor' => 'function_master_pos_wait'),
+ 'MATCH' => array('link' => 'fulltext-search','anchor' => 'function_match'),
+ 'MAX' => array('link' => 'group-by-functions','anchor' => 'function_max'),
+ 'MD5' => array('link' => 'encryption-functions','anchor' => 'function_md5'),
+ 'MICROSECOND' => array('link' => 'date-and-time-functions','anchor' => 'function_microsecond'),
+ 'MID' => array('link' => 'string-functions','anchor' => 'function_mid'),
+ 'MIN' => array('link' => 'group-by-functions','anchor' => 'function_min'),
+ 'MINUTE' => array('link' => 'date-and-time-functions','anchor' => 'function_minute'),
+ 'MOD' => array('link' => 'mathematical-functions','anchor' => 'function_mod'),
+ 'MONTH' => array('link' => 'date-and-time-functions','anchor' => 'function_month'),
+ 'MONTHNAME' => array('link' => 'date-and-time-functions','anchor' => 'function_monthname'),
+ 'NAME_CONST' => array('link' => 'miscellaneous-functions','anchor' => 'function_name_const'),
+ 'NOT' => array('link' => 'logical-operators','anchor' => 'operator_not'),
+ 'NOW' => array('link' => 'date-and-time-functions','anchor' => 'function_now'),
+ 'NULLIF' => array('link' => 'control-flow-functions','anchor' => 'function_nullif'),
+ 'OCT' => array('link' => 'mathematical-functions','anchor' => 'function_oct'),
+ 'OCTET_LENGTH' => array('link' => 'string-functions','anchor' => 'function_octet_length'),
+ 'OLD_PASSWORD' => array('link' => 'encryption-functions','anchor' => 'function_old_password'),
+ 'OR' => array('link' => 'logical-operators','anchor' => 'operator_or'),
+ 'ORD' => array('link' => 'string-functions','anchor' => 'function_ord'),
+ 'PASSWORD' => array('link' => 'encryption-functions','anchor' => 'function_password'),
+ 'PERIOD_ADD' => array('link' => 'date-and-time-functions','anchor' => 'function_period_add'),
+ 'PERIOD_DIFF' => array('link' => 'date-and-time-functions','anchor' => 'function_period_diff'),
+ 'PI' => array('link' => 'mathematical-functions','anchor' => 'function_pi'),
+ 'POSITION' => array('link' => 'string-functions','anchor' => 'function_position'),
+ 'POW' => array('link' => 'mathematical-functions','anchor' => 'function_pow'),
+ 'POWER' => array('link' => 'mathematical-functions','anchor' => 'function_power'),
+ 'QUARTER' => array('link' => 'date-and-time-functions','anchor' => 'function_quarter'),
+ 'QUOTE' => array('link' => 'string-functions','anchor' => 'function_quote'),
+ 'RADIANS' => array('link' => 'mathematical-functions','anchor' => 'function_radians'),
+ 'RAND' => array('link' => 'mathematical-functions','anchor' => 'function_rand'),
+ 'REGEXP' => array('link' => 'regexp','anchor' => 'operator_regexp'),
+ 'RELEASE_LOCK' => array('link' => 'miscellaneous-functions','anchor' => 'function_release_lock'),
+ 'REPEAT' => array('link' => 'string-functions','anchor' => 'function_repeat'),
+ 'REPLACE' => array('link' => 'string-functions','anchor' => 'function_replace'),
+ 'REVERSE' => array('link' => 'string-functions','anchor' => 'function_reverse'),
+ 'RIGHT' => array('link' => 'string-functions','anchor' => 'function_right'),
+ 'RLIKE' => array('link' => 'regexp','anchor' => 'operator_rlike'),
+ 'ROUND' => array('link' => 'mathematical-functions','anchor' => 'function_round'),
+ 'ROW_COUNT' => array('link' => 'information-functions','anchor' => 'function_row_count'),
+ 'RPAD' => array('link' => 'string-functions','anchor' => 'function_rpad'),
+ 'RTRIM' => array('link' => 'string-functions','anchor' => 'function_rtrim'),
+ 'SCHEMA' => array('link' => 'information-functions','anchor' => 'function_schema'),
+ 'SEC_TO_TIME' => array('link' => 'date-and-time-functions','anchor' => 'function_sec_to_time'),
+ 'SECOND' => array('link' => 'date-and-time-functions','anchor' => 'function_second'),
+ 'SESSION_USER' => array('link' => 'information-functions','anchor' => 'function_session_user'),
+ 'SHA' => array('link' => 'encryption-functions','anchor' => 'function_sha1'),
+ 'SHA1' => array('link' => 'encryption-functions','anchor' => 'function_sha1'),
+ 'SIGN' => array('link' => 'mathematical-functions','anchor' => 'function_sign'),
+ 'SIN' => array('link' => 'mathematical-functions','anchor' => 'function_sin'),
+ 'SLEEP' => array('link' => 'miscellaneous-functions','anchor' => 'function_sleep'),
+ 'SOUNDEX' => array('link' => 'string-functions','anchor' => 'function_soundex'),
+ 'SPACE' => array('link' => 'string-functions','anchor' => 'function_space'),
+ 'SQRT' => array('link' => 'mathematical-functions','anchor' => 'function_sqrt'),
+ 'STD' => array('link' => 'group-by-functions','anchor' => 'function_std'),
+ 'STDDEV_POP' => array('link' => 'group-by-functions','anchor' => 'function_stddev_pop'),
+ 'STDDEV_SAMP' => array('link' => 'group-by-functions','anchor' => 'function_stddev_samp'),
+ 'STDDEV' => array('link' => 'group-by-functions','anchor' => 'function_stddev'),
+ 'STR_TO_DATE' => array('link' => 'date-and-time-functions','anchor' => 'function_str_to_date'),
+ 'STRCMP' => array('link' => 'string-comparison-functions','anchor' => 'function_strcmp'),
+ 'SUBDATE' => array('link' => 'date-and-time-functions','anchor' => 'function_subdate'),
+ 'SUBSTR' => array('link' => 'string-functions','anchor' => 'function_substr'),
+ 'SUBSTRING_INDEX' => array('link' => 'string-functions','anchor' => 'function_substring_index'),
+ 'SUBSTRING' => array('link' => 'string-functions','anchor' => 'function_substring'),
+ 'SUBTIME' => array('link' => 'date-and-time-functions','anchor' => 'function_subtime'),
+ 'SUM' => array('link' => 'group-by-functions','anchor' => 'function_sum'),
+ 'SYSDATE' => array('link' => 'date-and-time-functions','anchor' => 'function_sysdate'),
+ 'SYSTEM_USER' => array('link' => 'information-functions','anchor' => 'function_system_user'),
+ 'TAN' => array('link' => 'mathematical-functions','anchor' => 'function_tan'),
+ 'TIME_FORMAT' => array('link' => 'date-and-time-functions','anchor' => 'function_time_format'),
+ 'TIME_TO_SEC' => array('link' => 'date-and-time-functions','anchor' => 'function_time_to_sec'),
+ 'TIME' => array('link' => 'date-and-time-functions','anchor' => 'function_time'),
+ 'TIMEDIFF' => array('link' => 'date-and-time-functions','anchor' => 'function_timediff'),
+ 'TIMESTAMP' => array('link' => 'date-and-time-functions','anchor' => 'function_timestamp'),
+ 'TIMESTAMPADD' => array('link' => 'date-and-time-functions','anchor' => 'function_timestampadd'),
+ 'TIMESTAMPDIFF' => array('link' => 'date-and-time-functions','anchor' => 'function_timestampdiff'),
+ 'TO_DAYS' => array('link' => 'date-and-time-functions','anchor' => 'function_to_days'),
+ 'TRIM' => array('link' => 'string-functions','anchor' => 'function_trim'),
+ 'TRUNCATE' => array('link' => 'mathematical-functions','anchor' => 'function_truncate'),
+ 'UCASE' => array('link' => 'string-functions','anchor' => 'function_ucase'),
+ 'UNCOMPRESS' => array('link' => 'encryption-functions','anchor' => 'function_uncompress'),
+ 'UNCOMPRESSED_LENGTH' => array('link' => 'encryption-functions','anchor' => 'function_uncompressed_length'),
+ 'UNHEX' => array('link' => 'string-functions','anchor' => 'function_unhex'),
+ 'UNIX_TIMESTAMP' => array('link' => 'date-and-time-functions','anchor' => 'function_unix_timestamp'),
+ 'UpdateXML' => array('link' => 'xml-functions','anchor' => 'function_updatexml'),
+ 'UPPER' => array('link' => 'string-functions','anchor' => 'function_upper'),
+ 'USER' => array('link' => 'information-functions','anchor' => 'function_user'),
+ 'UTC_DATE' => array('link' => 'date-and-time-functions','anchor' => 'function_utc_date'),
+ 'UTC_TIME' => array('link' => 'date-and-time-functions','anchor' => 'function_utc_time'),
+ 'UTC_TIMESTAMP' => array('link' => 'date-and-time-functions','anchor' => 'function_utc_timestamp'),
+ 'UUID_SHORT' => array('link' => 'miscellaneous-functions','anchor' => 'function_uuid_short'),
+ 'UUID' => array('link' => 'miscellaneous-functions','anchor' => 'function_uuid'),
+ 'VALUES' => array('link' => 'miscellaneous-functions','anchor' => 'function_values'),
+ 'VAR_POP' => array('link' => 'group-by-functions','anchor' => 'function_var_pop'),
+ 'VAR_SAMP' => array('link' => 'group-by-functions','anchor' => 'function_var_samp'),
+ 'VARIANCE' => array('link' => 'group-by-functions','anchor' => 'function_variance'),
+ 'VERSION' => array('link' => 'information-functions','anchor' => 'function_version'),
+ 'WEEK' => array('link' => 'date-and-time-functions','anchor' => 'function_week'),
+ 'WEEKDAY' => array('link' => 'date-and-time-functions','anchor' => 'function_weekday'),
+ 'WEEKOFYEAR' => array('link' => 'date-and-time-functions','anchor' => 'function_weekofyear'),
+ 'XOR' => array('link' => 'logical-operators','anchor' => 'operator_xor'),
+ 'YEAR' => array('link' => 'date-and-time-functions','anchor' => 'function_year'),
+ 'YEARWEEK' => array('link' => 'date-and-time-functions','anchor' => 'function_yearweek'),
+ 'SOUNDS_LIKE' => array('link' => 'string-functions','anchor' => 'operator_sounds-like'),
+ 'IS_NOT_NULL' => array('link' => 'comparison-operators','anchor' => 'operator_is-not-null'),
+ 'IS_NOT' => array('link' => 'comparison-operators','anchor' => 'operator_is-not'),
+ 'IS_NULL' => array('link' => 'comparison-operators','anchor' => 'operator_is-null'),
+ 'NOT_LIKE' => array('link' => 'string-comparison-functions','anchor' => 'operator_not-like'),
+ 'NOT_REGEXP' => array('link' => 'regexp','anchor' => 'operator_not-regexp'),
+ 'COUNT_DISTINCT' => array('link' => 'group-by-functions','anchor' => 'function_count-distinct'),
+ 'NOT_IN' => array('link' => 'comparison-operators','anchor' => 'function_not-in')
+);
+
?>
diff --git a/libraries/sqlparser.lib.php b/libraries/sqlparser.lib.php
index e05d011..46ae2b2 100644
--- a/libraries/sqlparser.lib.php
+++ b/libraries/sqlparser.lib.php
@@ -2089,6 +2089,7 @@ if (! defined('PMA_MINIMUM_COMMON')) {
function PMA_SQP_formatHtml($arr, $mode='color', $start_token=0,
$number_of_tokens=-1)
{
+ global $PMA_SQPdata_operators_docs, $PMA_SQPdata_functions_docs;
//DEBUG echo 'in Format<pre>'; print_r($arr); echo '</pre>';
// then check for an array
if (! is_array($arr)) {
@@ -2180,21 +2181,18 @@ if (! defined('PMA_MINIMUM_COMMON')) {
$keywords_priv_list_cnt = 2;
if ($number_of_tokens == -1) {
- $arraysize = $arr['len'];
- } else {
- $arraysize = $number_of_tokens;
+ $number_of_tokens = $arr['len'];
}
$typearr = array();
- if ($arraysize >= 0) {
+ if ($number_of_tokens >= 0) {
$typearr[0] = '';
$typearr[1] = '';
$typearr[2] = '';
- //$typearr[3] = $arr[0]['type'];
$typearr[3] = $arr[$start_token]['type'];
}
$in_priv_list = false;
- for ($i = $start_token; $i < $arraysize; $i++) {
+ for ($i = $start_token; $i < $number_of_tokens; $i++) {
// DEBUG echo "Loop format <strong>" . $arr[$i]['data'] . "</strong> " . $arr[$i]['type'] . "<br />";
$before = '';
$after = '';
@@ -2205,11 +2203,9 @@ if (! defined('PMA_MINIMUM_COMMON')) {
2 current
3 next
*/
- if (($i + 1) < $arraysize) {
- // array_push($typearr, $arr[$i + 1]['type']);
+ if (($i + 1) < $number_of_tokens) {
$typearr[4] = $arr[$i + 1]['type'];
} else {
- //array_push($typearr, null);
$typearr[4] = '';
}
@@ -2285,6 +2281,17 @@ if (! defined('PMA_MINIMUM_COMMON')) {
break;
case 'punct':
$before .= ' ';
+ if ($docu && isset($PMA_SQPdata_operators_docs[$arr[$i]['data']]) &&
+ ($arr[$i]['data'] != '*' || in_array($arr[$i]['type'], array('digit_integer','digit_float','digit_hex')))) {
+ $before .= PMA_showMySQLDocu(
+ 'functions',
+ $PMA_SQPdata_operators_docs[$arr[$i]['data']]['link'],
+ false,
+ $PMA_SQPdata_operators_docs[$arr[$i]['data']]['anchor'],
+ true);
+ $after .= '</a>';
+ }
+
// workaround for
// select * from mytable limit 0,-1
// (a side effect of this workaround is that
@@ -2388,6 +2395,18 @@ if (! defined('PMA_MINIMUM_COMMON')) {
$after .= ' ';
}
break;
+ case 'alpha_functionName':
+ $funcname = strtoupper($arr[$i]['data']);
+ if ($docu && isset($PMA_SQPdata_functions_docs[$funcname])) {
+ $before .= PMA_showMySQLDocu(
+ 'functions',
+ $PMA_SQPdata_functions_docs[$funcname]['link'],
+ false,
+ $PMA_SQPdata_functions_docs[$funcname]['anchor'],
+ true);
+ $after .= '</a>';
+ }
+ break;
case 'alpha_reservedWord':
// do not uppercase the reserved word if we are calling
// this function in query_only mode, because we need
@@ -2544,6 +2563,24 @@ if (! defined('PMA_MINIMUM_COMMON')) {
}
break;
default:
+ if ($close_docu_link && in_array($arr[$i]['data'], array('LIKE', 'NOT', 'IN', 'REGEXP', 'NULL'))){
+ $after .= '</a>';
+ $close_docu_link = false;
+ } else if ($docu && isset($PMA_SQPdata_functions_docs[$arr[$i]['data']])) {
+ /* Handle multi word statements first */
+ if (isset($typearr[4]) && $typearr[4] == 'alpha_reservedWord' && $typearr[3] == 'alpha_reservedWord' && isset($PMA_SQPdata_functions_docs[strtoupper($arr[$i]['data'] . '_' . $arr[$i + 1]['data'] . '_' . $arr[$i + 2]['data'])])) {
+ $tempname = strtoupper($arr[$i]['data'] . '_' . $arr[$i + 1]['data'] . '_' . $arr[$i + 2]['data']);
+ $before .= PMA_showMySQLDocu('functions', $PMA_SQPdata_functions_docs[$tempname]['link'], false, $PMA_SQPdata_functions_docs[$tempname]['anchor'], true);
+ $close_docu_link = true;
+ } else if (isset($typearr[3]) && $typearr[3] == 'alpha_reservedWord' && isset($PMA_SQPdata_functions_docs[strtoupper($arr[$i]['data'] . '_' . $arr[$i + 1]['data'])])) {
+ $tempname = strtoupper($arr[$i]['data'] . '_' . $arr[$i + 1]['data']);
+ $before .= PMA_showMySQLDocu('functions', $PMA_SQPdata_functions_docs[$tempname]['link'], false, $PMA_SQPdata_functions_docs[$tempname]['anchor'], true);
+ $close_docu_link = true;
+ } else {
+ $before .= PMA_showMySQLDocu('functions', $PMA_SQPdata_functions_docs[$arr[$i]['data']]['link'], false, $PMA_SQPdata_functions_docs[$arr[$i]['data']]['anchor'], true);
+ $after .= '</a>';
+ }
+ }
break;
} // end switch ($arr[$i]['data'])
hooks/post-receive
--
phpMyAdmin
1
0
[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_2RC1-3156-gd147fd2
by Michal Čihař 06 Jun '11
by Michal Čihař 06 Jun '11
06 Jun '11
The branch, master has been updated
via d147fd26db0cf8a5965c640c3047494acc2b9d44 (commit)
from f2fe4db5f1d100f29152445e4367789707007800 (commit)
- Log -----------------------------------------------------------------
commit d147fd26db0cf8a5965c640c3047494acc2b9d44
Author: Michal Čihař <mcihar(a)novell.com>
Date: Mon Jun 6 15:01:50 2011 +0200
Update keywords to list from http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html
-----------------------------------------------------------------------
Summary of changes:
js/codemirror/mode/mysql/mysql.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/js/codemirror/mode/mysql/mysql.js b/js/codemirror/mode/mysql/mysql.js
index 704825e..fd53d6c 100644
--- a/js/codemirror/mode/mysql/mysql.js
+++ b/js/codemirror/mode/mysql/mysql.js
@@ -127,7 +127,7 @@ CodeMirror.defineMode("mysql", function(config, parserConfig) {
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
return obj;
}
- var cKeywords = "accessible action add after against aggregate algorithm all alter analyse analyze and as asc autocommit auto_increment avg_row_length backup begin between binlog both by cascade case change changed charset check checksum collate collation column columns comment commit committed compressed concurrent constraint contains convert create cross current_timestamp database databases day day_hour day_minute day_second definer delayed delay_key_write delete desc describe deterministic distinct distinctrow div do drop dumpfile duplicate dynamic else enclosed end engine engines escape escaped events execute exists explain extended fast fields file first fixed flush for force foreign from full fulltext function gemini gemini_spin_retries global grant grants group having heap high_priority hosts hour hour_minute hour_second identified if ignore in index indexes infile inner insert insert_id insert_method interval into invoker is isolation join key keys kill last_insert_id leading left like limit linear lines load local lock locks logs low_priority maria master master_connect_retry master_host master_log_file master_log_pos master_password master_port master_user match max_connections_per_hour max_queries_per_hour max_rows max_updates_per_hour max_user_connections medium merge minute minute_second min_rows mode modify month mrg_myisam myisam names natural no not null offset on open optimize option optionally or order outer outfile pack_keys page page_checksum partial partition partitions password primary privileges procedure process processlist purge quick raid0 raid_chunks raid_chunksize raid_type range read read_only read_write references regexp reload rename repair repeatable replace replication reset restore restrict return returns revoke right rlike rollback row rows row_format second security select separator serializable session share show shutdown slave soname sounds sql sql_auto_is_null sql_big_result sql_big_selects sql_big_tables sql_buffer_result sql_cache sql_calc_found_rows sql_log_bin sql_log _off sql_log_update sql_low_priority_updates sql_max_join_size sql_no_cache sql_quote_show_create sql_safe_updates sql_select_limit sql_slave_skip_counter sql_small_result sql_warnings start starting status stop storage straight_join string striped super table tables temporary terminated then to trailing transactional truncate type types uncommitted union unique unlock update usage use using values variables view when where with work write xor year_month";
+ var cKeywords = "accessible add all alter analyze and as asc asensitive before between bigint binary blob both by call cascade case change char character check collate column condition constraint continue convert create cross current_date current_time current_timestamp current_user cursor database databases day_hour day_microsecond day_minute day_second dec decimal declare default delayed delete desc describe deterministic distinct distinctrow div double drop dual each else elseif enclosed escaped exists exit explain false fetch float float4 float8 for force foreign from fulltext grant group having high_priority hour_microsecond hour_minute hour_second if ignore in index infile inner inout insensitive insert int int1 int2 int3 int4 int8 integer interval into is iterate join key keys kill leading leave left like limit linear lines load localtime localtimestamp lock long longblob longtext loop low_priority master_ssl_verify_server_cert match maxvalue mediumblob mediumint mediumtext middleint minute_microsecond minute_second mod modifies natural not no_write_to_binlog null numeric on optimize option optionally or order out outer outfile precision primary procedure purge range read reads read_write real references regexp release rename repeat replace require resignal restrict return revoke right rlike schema schemas second_microsecond select sensitive separator set show signal smallint spatial specific sql sqlexception sqlstate sqlwarning sql_big_result sql_calc_found_rows sql_small_result ssl starting straight_join table terminated then tinyblob tinyint tinytext to trailing trigger true undo union unique unlock unsigned update usage use using utc_date utc_time utc_timestamp values varbinary varchar varcharacter varying when where while with write xor year_month zerofill";
var cFunctions = "abs acos adddate addtime aes_decrypt aes_encrypt area asbinary ascii asin astext atan atan2 avg bdmpolyfromtext bdmpolyfromwkb bdpolyfromtext bdpolyfromwkb benchmark bin bit_and bit_count bit_length bit_or bit_xor boundary buffer cast ceil ceiling centroid char character_length charset char_length coalesce coercibility collation compress concat concat_ws connection_id contains conv convert convert_tz convexhull cos cot count crc32 crosses curdate current_date current_time current_timestamp current_user curtime database date datediff date_add date_diff date_format date_sub day dayname dayofmonth dayofweek dayofyear decode default degrees des_decrypt des_encrypt difference dimension disjoint distance elt encode encrypt endpoint envelope equals exp export_set exteriorring extract extractvalue field find_in_set floor format found_rows from_days from_unixtime geomcollfromtext geomcollfromwkb geometrycollection geometrycollectionfromtext geometrycollectionfromwkb geometryfromtext geometryfromwkb geometryn geometrytype geomfromtext geomfromwkb get_format get_lock glength greatest group_concat group_unique_users hex hour if ifnull inet_aton inet_ntoa insert instr interiorringn intersection intersects interval isclosed isempty isnull isring issimple is_free_lock is_used_lock last_day last_insert_id lcase least left length linefromtext linefromwkb linestring linestringfromtext linestringfromwkb ln load_file localtime localtimestamp locate log log10 log2 lower lpad ltrim makedate maketime make_set master_pos_wait max mbrcontains mbrdisjoint mbrequal mbrintersects mbroverlaps mbrtouches mbrwithin md5 microsecond mid min minute mlinefromtext mlinefromwkb mod month monthname mpointfromtext mpointfromwkb mpolyfromtext mpolyfromwkb multilinestring multilinestringfromtext multilinestringfromwkb multipoint multipointfromtext multipointfromwkb multipolygon multipolygonfromtext multipolygonfromwkb name_const now nullif numgeometries numinteriorrings numpoints oct octet_length old_password ord overlaps password p eriod_add period_diff pi point pointfromtext pointfromwkb pointn pointonsurface polyfromtext polyfromwkb polygon polygonfromtext polygonfromwkb position pow power quarter quote radians rand related release_lock repeat replace reverse right round row_count rpad rtrim schema second sec_to_time session_user sha sha1 sign sin sleep soundex space sqrt srid startpoint std stddev stddev_pop stddev_samp strcmp str_to_date subdate substr substring substring_index subtime sum symdifference sysdate system_user tan time timediff timestamp timestampadd timestampdiff time_format time_to_sec touches to_days trim truncate ucase uncompress uncompressed_length unhex unique_users unix_timestamp updatexml upper user utc_date utc_time utc_timestamp uuid variance var_pop var_samp version week weekday weekofyear within x y year yearweek";
hooks/post-receive
--
phpMyAdmin
1
0
[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_2RC1-3155-gf2fe4db
by Michal Čihař 06 Jun '11
by Michal Čihař 06 Jun '11
06 Jun '11
The branch, master has been updated
via f2fe4db5f1d100f29152445e4367789707007800 (commit)
from 4603ca7001b1d39389f622671e53ee957b2adf66 (commit)
- Log -----------------------------------------------------------------
commit f2fe4db5f1d100f29152445e4367789707007800
Author: Michal Čihař <mcihar(a)novell.com>
Date: Mon Jun 6 14:11:11 2011 +0200
Remove not used code
-----------------------------------------------------------------------
Summary of changes:
libraries/export/sql.php | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/libraries/export/sql.php b/libraries/export/sql.php
index 432aa78..b1bd457 100644
--- a/libraries/export/sql.php
+++ b/libraries/export/sql.php
@@ -681,8 +681,6 @@ function PMA_getTableDef($db, $table, $crlf, $error_url, $show_dates = false, $a
{
global $sql_drop_table;
global $sql_backquotes;
- global $cfgRelation;
- global $sql_constraints;
global $sql_constraints_query; // just the text of the query
global $sql_drop_foreign_keys;
@@ -1044,7 +1042,6 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $relation = false,
function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
{
global $sql_backquotes;
- global $rows_cnt;
global $current_row;
$formatted_table_name = (isset($GLOBALS['sql_backquotes']))
@@ -1067,9 +1064,6 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
return true;
}
- // it's not a VIEW
- $buffer = '';
-
// analyze the query to get the true column names, not the aliases
// (this fixes an undefined index, also if Complete inserts
// are used, we did not get the true column name in case of aliases)
hooks/post-receive
--
phpMyAdmin
1
0
[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_2RC1-3154-g4603ca7
by Michal Čihař 06 Jun '11
by Michal Čihař 06 Jun '11
06 Jun '11
The branch, master has been updated
via 4603ca7001b1d39389f622671e53ee957b2adf66 (commit)
from d14e49f8271c25b11cdc98962e6b24338aaef90e (commit)
- Log -----------------------------------------------------------------
commit 4603ca7001b1d39389f622671e53ee957b2adf66
Author: Michal Čihař <mcihar(a)novell.com>
Date: Mon Jun 6 14:03:13 2011 +0200
Factor out common code for PMA_DBI_try_query.
PMA_DBI_try_query is now shared for mysql and mysqli as the only
difference there was real call to the database, the rest was same
(timing, tracking, debugging,..).
-----------------------------------------------------------------------
Summary of changes:
libraries/database_interface.lib.php | 64 +++++++++++++++++++++++++++++++
libraries/dbi/mysql.dbi.lib.php | 60 ++--------------------------
libraries/dbi/mysqli.dbi.lib.php | 70 ++-------------------------------
3 files changed, 74 insertions(+), 120 deletions(-)
diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php
index 57c8568..ec82416 100644
--- a/libraries/database_interface.lib.php
+++ b/libraries/database_interface.lib.php
@@ -76,6 +76,70 @@ function PMA_DBI_query($query, $link = null, $options = 0, $cache_affected_rows
}
/**
+ * runs a query and returns the result
+ *
+ * @param string $query query to run
+ * @param resource $link mysql link resource
+ * @param integer $options
+ * @return mixed
+ */
+function PMA_DBI_try_query($query, $link = null, $options = 0, $cache_affected_rows = true)
+{
+ if (empty($link)) {
+ if (isset($GLOBALS['userlink'])) {
+ $link = $GLOBALS['userlink'];
+ } else {
+ return false;
+ }
+ }
+
+ if ($GLOBALS['cfg']['DBG']['sql']) {
+ $time = microtime(true);
+ }
+
+ $r = PMA_DBI_real_query($query, $link, $options);
+
+ if ($cache_affected_rows) {
+ $GLOBALS['cached_affected_rows'] = PMA_DBI_affected_rows($link, $get_from_cache = false);
+ }
+
+ if ($GLOBALS['cfg']['DBG']['sql']) {
+ $time = microtime(true) - $time;
+
+ $hash = md5($query);
+
+ if (isset($_SESSION['debug']['queries'][$hash])) {
+ $_SESSION['debug']['queries'][$hash]['count']++;
+ } else {
+ $_SESSION['debug']['queries'][$hash] = array();
+ $_SESSION['debug']['queries'][$hash]['count'] = 1;
+ $_SESSION['debug']['queries'][$hash]['query'] = $query;
+ $_SESSION['debug']['queries'][$hash]['time'] = $time;
+ }
+
+ $trace = array();
+ foreach (debug_backtrace() as $trace_step) {
+ $trace[] = PMA_Error::relPath($trace_step['file']) . '#'
+ . $trace_step['line'] . ': '
+ . (isset($trace_step['class']) ? $trace_step['class'] : '')
+ //. (isset($trace_step['object']) ? get_class($trace_step['object']) : '')
+ . (isset($trace_step['type']) ? $trace_step['type'] : '')
+ . (isset($trace_step['function']) ? $trace_step['function'] : '')
+ . '('
+ . (isset($trace_step['params']) ? implode(', ', $trace_step['params']) : '')
+ . ')'
+ ;
+ }
+ $_SESSION['debug']['queries'][$hash]['trace'][] = $trace;
+ }
+ if ($r != false && PMA_Tracker::isActive() == true ) {
+ PMA_Tracker::handleQuery($query);
+ }
+
+ return $r;
+}
+
+/**
* converts charset of a mysql message, usually coming from mysql_error(),
* into PMA charset, usally UTF-8
* uses language to charset mapping from mysql/share/errmsg.txt
diff --git a/libraries/dbi/mysql.dbi.lib.php b/libraries/dbi/mysql.dbi.lib.php
index e96e167..e84e6b0 100644
--- a/libraries/dbi/mysql.dbi.lib.php
+++ b/libraries/dbi/mysql.dbi.lib.php
@@ -154,65 +154,15 @@ function PMA_DBI_select_db($dbname, $link = null)
* @param integer $options
* @return mixed
*/
-function PMA_DBI_try_query($query, $link = null, $options = 0, $cache_affected_rows = true)
+function PMA_DBI_real_query($query, $link, $options)
{
- if (empty($link)) {
- if (isset($GLOBALS['userlink'])) {
- $link = $GLOBALS['userlink'];
- } else {
- return false;
- }
- }
-
- if ($GLOBALS['cfg']['DBG']['sql']) {
- $time = microtime(true);
- }
if ($options == ($options | PMA_DBI_QUERY_STORE)) {
- $r = mysql_query($query, $link);
+ return mysql_query($query, $link);
} elseif ($options == ($options | PMA_DBI_QUERY_UNBUFFERED)) {
- $r = mysql_unbuffered_query($query, $link);
+ return mysql_unbuffered_query($query, $link);
} else {
- $r = mysql_query($query, $link);
- }
-
- if ($cache_affected_rows) {
- $GLOBALS['cached_affected_rows'] = PMA_DBI_affected_rows($link, $get_from_cache = false);
+ return mysql_query($query, $link);
}
-
- if ($GLOBALS['cfg']['DBG']['sql']) {
- $time = microtime(true) - $time;
-
- $hash = md5($query);
-
- if (isset($_SESSION['debug']['queries'][$hash])) {
- $_SESSION['debug']['queries'][$hash]['count']++;
- } else {
- $_SESSION['debug']['queries'][$hash] = array();
- $_SESSION['debug']['queries'][$hash]['count'] = 1;
- $_SESSION['debug']['queries'][$hash]['query'] = $query;
- $_SESSION['debug']['queries'][$hash]['time'] = $time;
- }
-
- $trace = array();
- foreach (debug_backtrace() as $trace_step) {
- $trace[] = PMA_Error::relPath($trace_step['file']) . '#'
- . $trace_step['line'] . ': '
- . (isset($trace_step['class']) ? $trace_step['class'] : '')
- //. (isset($trace_step['object']) ? get_class($trace_step['object']) : '')
- . (isset($trace_step['type']) ? $trace_step['type'] : '')
- . (isset($trace_step['function']) ? $trace_step['function'] : '')
- . '('
- . (isset($trace_step['params']) ? implode(', ', $trace_step['params']) : '')
- . ')'
- ;
- }
- $_SESSION['debug']['queries'][$hash]['trace'][] = $trace;
- }
- if ($r != false && PMA_Tracker::isActive() == true ) {
- PMA_Tracker::handleQuery($query);
- }
-
- return $r;
}
function PMA_DBI_fetch_array($result)
@@ -406,7 +356,7 @@ function PMA_DBI_insert_id($link = null)
* @uses $GLOBALS['userlink']
* @uses mysql_affected_rows()
* @param object mysql $link the mysql object
- * @param boolean $get_from_cache
+ * @param boolean $get_from_cache
* @return string integer
*/
function PMA_DBI_affected_rows($link = null, $get_from_cache = true)
diff --git a/libraries/dbi/mysqli.dbi.lib.php b/libraries/dbi/mysqli.dbi.lib.php
index a40e32d..2418fd2 100644
--- a/libraries/dbi/mysqli.dbi.lib.php
+++ b/libraries/dbi/mysqli.dbi.lib.php
@@ -164,18 +164,15 @@ function PMA_DBI_select_db($dbname, $link = null)
*
* @uses PMA_DBI_QUERY_STORE
* @uses PMA_DBI_QUERY_UNBUFFERED
- * @uses $GLOBALS['userlink']
* @uses MYSQLI_STORE_RESULT
* @uses MYSQLI_USE_RESULT
* @uses mysqli_query()
- * @uses defined()
* @param string $query query to execute
* @param object mysqli $link mysqli object
* @param integer $options
- * @param boolean $cache_affected_rows
* @return mixed true, false or result object
*/
-function PMA_DBI_try_query($query, $link = null, $options = 0, $cache_affected_rows = true)
+function PMA_DBI_real_query($query, $link, $options)
{
if ($options == ($options | PMA_DBI_QUERY_STORE)) {
$method = MYSQLI_STORE_RESULT;
@@ -185,64 +182,7 @@ function PMA_DBI_try_query($query, $link = null, $options = 0, $cache_affected_r
$method = 0;
}
- if (empty($link)) {
- if (isset($GLOBALS['userlink'])) {
- $link = $GLOBALS['userlink'];
- } else {
- return false;
- }
- }
-
- if ($GLOBALS['cfg']['DBG']['sql']) {
- $time = microtime(true);
- }
- $r = mysqli_query($link, $query, $method);
-
- if ($cache_affected_rows) {
- $GLOBALS['cached_affected_rows'] = PMA_DBI_affected_rows($link, $get_from_cache = false);
- }
-
- if ($GLOBALS['cfg']['DBG']['sql']) {
- $time = microtime(true) - $time;
-
- $hash = md5($query);
-
- if (isset($_SESSION['debug']['queries'][$hash])) {
- $_SESSION['debug']['queries'][$hash]['count']++;
- } else {
- $_SESSION['debug']['queries'][$hash] = array();
- $_SESSION['debug']['queries'][$hash]['count'] = 1;
- $_SESSION['debug']['queries'][$hash]['query'] = $query;
- $_SESSION['debug']['queries'][$hash]['time'] = $time;
- }
-
- $trace = array();
- foreach (debug_backtrace() as $trace_step) {
- $trace[] = PMA_Error::relPath($trace_step['file']) . '#'
- . $trace_step['line'] . ': '
- . (isset($trace_step['class']) ? $trace_step['class'] : '')
- //. (isset($trace_step['object']) ? get_class($trace_step['object']) : '')
- . (isset($trace_step['type']) ? $trace_step['type'] : '')
- . (isset($trace_step['function']) ? $trace_step['function'] : '')
- . '('
- . (isset($trace_step['params']) ? implode(', ', $trace_step['params']) : '')
- . ')'
- ;
- }
- $_SESSION['debug']['queries'][$hash]['trace'][] = $trace;
- }
-
- if ($r != false && PMA_Tracker::isActive() == true ) {
- PMA_Tracker::handleQuery($query);
- }
-
- return $r;
-
- // From the PHP manual:
- // "note: returns true on success or false on failure. For SELECT,
- // SHOW, DESCRIBE or EXPLAIN, mysqli_query() will return a result object"
- // so, do not use the return value to feed mysqli_num_rows() if it's
- // a boolean
+ return mysqli_query($link, $query, $method);
}
/**
@@ -452,9 +392,9 @@ function PMA_DBI_insert_id($link = '')
return false;
}
}
- // When no controluser is defined, using mysqli_insert_id($link)
+ // When no controluser is defined, using mysqli_insert_id($link)
// does not always return the last insert id due to a mixup with
- // the tracking mechanism, but this works:
+ // the tracking mechanism, but this works:
return PMA_DBI_fetch_value('SELECT LAST_INSERT_ID();', 0, 0, $link);
// Curiously, this problem does not happen with the mysql extension but
// there is another problem with BIGINT primary keys so PMA_DBI_insert_id()
@@ -467,7 +407,7 @@ function PMA_DBI_insert_id($link = '')
* @uses $GLOBALS['userlink']
* @uses mysqli_affected_rows()
* @param object mysqli $link the mysqli object
- * @param boolean $get_from_cache
+ * @param boolean $get_from_cache
* @return string integer
*/
function PMA_DBI_affected_rows($link = null, $get_from_cache = true)
hooks/post-receive
--
phpMyAdmin
1
0
[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_2RC1-3153-gd14e49f
by Michal Čihař 06 Jun '11
by Michal Čihař 06 Jun '11
06 Jun '11
The branch, master has been updated
via d14e49f8271c25b11cdc98962e6b24338aaef90e (commit)
from 3cf4830bbb94ce8fe7078f4a3f4fbac1c6253a8c (commit)
- Log -----------------------------------------------------------------
commit d14e49f8271c25b11cdc98962e6b24338aaef90e
Author: Michal Čihař <mcihar(a)novell.com>
Date: Mon Jun 6 13:47:00 2011 +0200
Simplify code
-----------------------------------------------------------------------
Summary of changes:
libraries/export/sql.php | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/libraries/export/sql.php b/libraries/export/sql.php
index 55d330e..432aa78 100644
--- a/libraries/export/sql.php
+++ b/libraries/export/sql.php
@@ -449,7 +449,11 @@ function PMA_exportHeader()
. PMA_exportComment('version ' . PMA_VERSION)
. PMA_exportComment('http://www.phpmyadmin.net')
. PMA_exportComment();
- $head .= empty($cfg['Server']['port']) ? PMA_exportComment(__('Host') . ': ' . $cfg['Server']['host']) : PMA_exportComment(__('Host') . ': ' . $cfg['Server']['host'] . ':' . $cfg['Server']['port']);
+ $host_string = __('Host') . ': ' . $cfg['Server']['host'];
+ if (!empty($cfg['Server']['port'])) {
+ $host_string .= ':' . $cfg['Server']['port'];
+ }
+ $head .= PMA_exportComment($host_string);
$head .= PMA_exportComment(__('Generation Time')
. ': ' . PMA_localisedDate())
. PMA_exportComment(__('Server version') . ': ' . substr(PMA_MYSQL_INT_VERSION, 0, 1) . '.' . (int) substr(PMA_MYSQL_INT_VERSION, 1, 2) . '.' . (int) substr(PMA_MYSQL_INT_VERSION, 3))
hooks/post-receive
--
phpMyAdmin
1
0
[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_2RC1-3152-g3cf4830
by Michal Čihař 06 Jun '11
by Michal Čihař 06 Jun '11
06 Jun '11
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/+ # % '