From f490727af18c8d07da743a1f989b490ae1065bf4 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 19 Jun 2002 20:39:01 +0000 Subject: [PATCH] bypass format_sql for now --- ChangeLog | 2 ++ Documentation.html | 3 ++- libraries/common.lib.php3 | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 36fb3a0fd..b21bc75c8 100755 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,8 @@ $Source$ * lang/swedish updates, thanks to Björn T. Hallberg * lang/galician updates, thanks to Xosé Calvo * libraries/config_import.lib.php3, fixed 3 parse errors + * common.lib.php3: due to formatting problems, bypass PMA_format_sql + for 2.3.0-rc1 2002-06-19 Robin Johnson * libraries/charset_conversion.lib.php3, diff --git a/Documentation.html b/Documentation.html index b45492ef9..a6e2664be 100755 --- a/Documentation.html +++ b/Documentation.html @@ -1216,7 +1216,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://' Introduced in 2.3.0 PhpMyAdmin is now able to show SQL in Syntaxcoloring. To use this feature set this value to TRUE (the default). If not everything you want is colored or to influence where a newline is inserted see the - Configurationarrays $cfg['keywords'] and $cfg['additional'] + Configurationarrays $cfg['keywords'] and $cfg['additional']. Note: + for version 2.3.0-rc1, syntax coloring is non functional.
$cfg['colorFunctions'] string [HTML color]
diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index 8d81feda6..27e62576c 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -213,6 +213,9 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} function PMA_format_sql ($sql) { global $cfg, $mult; +// lem9: bypass this function for now + return $sql; + $_sfuncs = '^' . implode('$|^', $cfg['Functions']) . '$'; $_skeyw = '^' . implode('$|^', $cfg['keywords']) . '$'; $_scoltype = '^' . implode('$|^', $cfg['ColumnTypes']) . '$';