Backwards compatibility etc.
This commit is contained in:
@@ -8,6 +8,10 @@ $Source$
|
||||
2002-08-04 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||
* libraries/common.lib.php3, line 88: default language should be
|
||||
en-iso-8859-1.
|
||||
* libraries/common.lib.php3, libraries/config_import.lib.php3: Backwards
|
||||
compatibility for config file revisions before 1.131.
|
||||
* config.inc.php3: Display syntax errors when the user calls the config file
|
||||
directly even if "display_errors" has been switched off in php.ini.
|
||||
|
||||
2002-08-03 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* Documentation.html: remove unneeded GRANT
|
||||
|
@@ -14,6 +14,7 @@
|
||||
*/
|
||||
if (!isset($old_error_reporting)) {
|
||||
error_reporting(E_ALL);
|
||||
@ini_set('display_errors','1');
|
||||
}
|
||||
|
||||
|
||||
|
@@ -128,7 +128,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
|
||||
* Includes compatibility code for older config.inc.php3 revisions
|
||||
* if necessary
|
||||
*/
|
||||
if (!isset($cfg['FileRevision']) || (int) substr($cfg['FileRevision'], 13, 3) < 120) {
|
||||
if (!isset($cfg['FileRevision']) || (int) substr($cfg['FileRevision'], 13, 3) < 131) {
|
||||
include('./libraries/config_import.lib.php3');
|
||||
}
|
||||
|
||||
|
@@ -571,28 +571,120 @@ if (!defined('PMA_CONFIG_IMPORT_LIB_INCLUDED')){
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($cfg['UseSyntaxColoring'])) {
|
||||
$cfg['UseSyntaxColoring'] = TRUE;
|
||||
if (!isset($cfg['SQLQuery']['Edit'])) {
|
||||
$cfg['SQLQuery']['Edit'] = TRUE;
|
||||
}
|
||||
|
||||
if (!isset($cfg['colorFunctions'])) {
|
||||
$cfg['colorFunctions'] = '#FF0000';
|
||||
if (!isset($cfg['SQLQuery']['Explain'])) {
|
||||
$cfg['SQLQuery']['Explain'] = TRUE;
|
||||
}
|
||||
|
||||
if (!isset($cfg['colorKeywords'])) {
|
||||
$cfg['colorKeywords'] = '#990099';
|
||||
if (!isset($cfg['SQLQuery']['ShowAsPHP'])) {
|
||||
$cfg['SQLQuery']['ShowAsPHP'] = TRUE;
|
||||
}
|
||||
|
||||
if (!isset($cfg['colorStrings'])) {
|
||||
$cfg['colorStrings'] = '#008000';
|
||||
if (!isset($cfg['SQLQuery']['Validate'])) {
|
||||
$cfg['SQLQuery']['Validate'] = FALSE;
|
||||
}
|
||||
|
||||
if (!isset($cfg['colorColType'])) {
|
||||
$cfg['colorColType'] = '#FF9900';
|
||||
if (!isset($cfg['SQLValidator']['use'])) {
|
||||
$cfg['SQLValidator']['use'] = FALSE;
|
||||
}
|
||||
|
||||
if (!isset($cfg['colorAdd'])) {
|
||||
$cfg['colorAdd'] = '#0000FF';
|
||||
if (!isset($cfg['SQLValidator']['username'])) {
|
||||
$cfg['SQLValidator']['username'] = '';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQLValidator']['password'])) {
|
||||
$cfg['SQLValidator']['password'] = '';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQLValidator']['DisplayCopyright'])) {
|
||||
$cfg['SQLValidator']['DisplayCopyright'] = TRUE;
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['enable'])) {
|
||||
$cfg['SQP']['enable'] = TRUE;
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtType'])) {
|
||||
$cfg['SQP']['fmtType'] = 'html';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtInd'])) {
|
||||
$cfg['SQP']['fmtInd'] = '1';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtIndUnit'])) {
|
||||
$cfg['SQP']['fmtIndUnit'] = 'em';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['comment'])) {
|
||||
$cfg['SQP']['fmtColor']['comment'] = '#808000';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['digit'])) {
|
||||
$cfg['SQP']['fmtColor']['digit'] = '';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['digit_hex'])) {
|
||||
$cfg['SQP']['fmtColor']['digit_hex'] = 'teal';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['digit_integer'])) {
|
||||
$cfg['SQP']['fmtColor']['digit_integer'] = 'teal';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['digit_float'])) {
|
||||
$cfg['SQP']['fmtColor']['digit_float'] = 'aqua';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['punct'])) {
|
||||
$cfg['SQP']['fmtColor']['punct'] = 'fuchsia';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['alpha'])) {
|
||||
$cfg['SQP']['fmtColor']['alpha'] = '';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['alpha_columnType'])) {
|
||||
$cfg['SQP']['fmtColor']['alpha_columnType'] = '#FF9900';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['alpha_columnAttrib'])) {
|
||||
$cfg['SQP']['fmtColor']['alpha_columnAttrib'] = '#0000FF';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['alpha_reservedWord'])) {
|
||||
$cfg['SQP']['fmtColor']['alpha_reservedWord'] = '#990099';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['alpha_functionName'])) {
|
||||
$cfg['SQP']['fmtColor']['alpha_functionName'] = '#FF0000';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['alpha_identifier'])) {
|
||||
$cfg['SQP']['fmtColor']['alpha_identifier'] = 'black';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['alpha_variable'])) {
|
||||
$cfg['SQP']['fmtColor']['alpha_variable'] = '#800000';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['quote'])) {
|
||||
$cfg['SQP']['fmtColor']['quote'] = '#008000';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['quote_double'])) {
|
||||
$cfg['SQP']['fmtColor']['quote_double'] = '';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['quote_single'])) {
|
||||
$cfg['SQP']['fmtColor']['quote_single'] = '';
|
||||
}
|
||||
|
||||
if (!isset($cfg['SQP']['fmtColor']['quote_backtick'])) {
|
||||
$cfg['SQP']['fmtColor']['quote_backtick'] = '';
|
||||
}
|
||||
|
||||
if (!isset($cfg['AvailableCharsets'])) {
|
||||
|
Reference in New Issue
Block a user