From c2110be0afe8d1f8b60495ccbda8af365b2cab2e Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 24 Apr 2002 20:38:38 +0000 Subject: [PATCH] new cfg --- tbl_change.php3 | 30 +++++++++++++++--------------- tbl_dump.php3 | 2 +- tbl_indexes.php3 | 12 ++++++------ 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/tbl_change.php3 b/tbl_change.php3 index 7df7242f4..8e5f9c743 100755 --- a/tbl_change.php3 +++ b/tbl_change.php3 @@ -143,12 +143,12 @@ if (isset($primary_key)) { echo "\n"; ?> - +
' . $strFunction . '' . "\n"; } ?> @@ -172,7 +172,7 @@ for ($i = 0; $i < $fields_cnt; $i++) { : @mysql_field_len($result, $i); $first_timestamp = 0; - $bgcolor = ($i % 2) ? $cfgBgcolorOne : $cfgBgcolorTwo; + $bgcolor = ($i % 2) ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?> @@ -252,9 +252,9 @@ for ($i = 0; $i < $fields_cnt; $i++) { // Note: from the MySQL manual: "BINARY doesn't affect how the column is // stored or retrieved" so it does not mean that the contents is // binary - if ($cfgShowFunctionFields) { - if (($cfgProtectBinary && $is_blob) - || ($cfgProtectBinary == 'all' && $is_binary)) { + if ($cfg['ShowFunctionFields']) { + if (($cfg['ProtectBinary'] && $is_blob) + || ($cfg['ProtectBinary'] == 'all' && $is_binary)) { echo ' ' . "\n"; } else if (strstr($row_table_def['True_Type'], 'enum') || strstr($row_table_def['True_Type'], 'set')) { echo ' ' . "\n"; @@ -266,14 +266,14 @@ for ($i = 0; $i < $fields_cnt; $i++) { ' . $cfgFunctions[$j] . '' . "\n"; + echo '' . $cfg['Functions'][$j] . '' . "\n"; } // end for unset($selected); ?> @@ -281,13 +281,13 @@ for ($i = 0; $i < $fields_cnt; $i++) { ' . "\n"; - if (!(($cfgProtectBinary && $is_blob) || ($cfgProtectBinary == 'all' && $is_binary)) + if (!(($cfg['ProtectBinary'] && $is_blob) || ($cfg['ProtectBinary'] == 'all' && $is_binary)) && $row_table_def['Null'] == 'YES') { echo ' // We don't want binary data destroyed else if ($is_binary || $is_blob) { - if (($cfgProtectBinary && $is_blob) - || ($cfgProtectBinary == 'all' && $is_binary)) { + if (($cfg['ProtectBinary'] && $is_blob) + || ($cfg['ProtectBinary'] == 'all' && $is_binary)) { echo "\n"; ?> format $crlf = PMA_whichCrlf(); diff --git a/tbl_indexes.php3 b/tbl_indexes.php3 index 67a20e74a..c35d497c8 100644 --- a/tbl_indexes.php3 +++ b/tbl_indexes.php3 @@ -34,7 +34,7 @@ if (!defined('PMA_IDX_INCLUDED')) { $is_db = @mysql_select_db($db); } if (empty($db) || !$is_db) { - header('Location: ' . $cfgPmaAbsoluteUri . 'main.php3?lang=' . $lang . '&server=' . $server . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); + header('Location: ' . $cfg['PmaAbsoluteUri'] . 'main.php3?lang=' . $lang . '&server=' . $server . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); exit(); } // Not a valid table name -> back to the db_details.php3 @@ -42,7 +42,7 @@ if (!defined('PMA_IDX_INCLUDED')) { $is_table = @mysql_query("SHOW TABLES LIKE '" . PMA_sqlAddslashes($table, TRUE) . '\''); } if (empty($table) || !@mysql_numrows($is_table)) { - header('Location: ' . $cfgPmaAbsoluteUri . 'db_details.php3?lang=' . $lang . '&server=' . $server . '&db=' . urlencode($db) . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); + header('Location: ' . $cfg['PmaAbsoluteUri'] . 'db_details.php3?lang=' . $lang . '&server=' . $server . '&db=' . urlencode($db) . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); exit(); } else if (isset($is_table)) { mysql_free_result($is_table); @@ -340,7 +340,7 @@ else if (!defined('PMA_IDX_INCLUDED')
' . $strBinary . '-- - + @@ -439,7 +439,7 @@ for ($i = 0; $i < $fields_cnt; $i++) { ?> - +

- +
@@ -354,7 +354,7 @@ else if (!defined('PMA_IDX_INCLUDED') } else { $sub_part = ''; } - $bgcolor = (($row_no % 2) ? $cfgBgcolorOne : $cfgBgcolorTwo); + $bgcolor = (($row_no % 2) ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']); echo "\n"; ?> @@ -419,7 +419,7 @@ else if (!defined('PMA_IDX_INCLUDED') if ($idx_cnt > 0) { ?> -
+
@@ -430,7 +430,7 @@ else if (!defined('PMA_IDX_INCLUDED') ' . "\n"; echo ' ' . "\n"; echo $index_td