From f88d908e83acdbe87a9d6daccfe3f5000e75d016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 30 Nov 2005 19:01:47 +0000 Subject: [PATCH] Move config.default.php to librarires (bug #1365759). --- ChangeLog | 3 +++ Documentation.html | 19 ++++++++++--------- libraries/Config.class.php | 2 +- .../config.default.php | 0 4 files changed, 14 insertions(+), 10 deletions(-) rename config.default.php => libraries/config.default.php (100%) diff --git a/ChangeLog b/ChangeLog index a327f19cf0..a681347d92 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,9 @@ $Source$ 2005-11-30 Michal Čihař * lang/*: Messages for Sebastian. * libraries/Config.class.php: Actually load configuration. + * Documentation.html, config.default.php (deleted), + libraries/Config.class.php, libraries/config.default.php: Move + config.default.php to librarires (bug #1365759). 2005-11-30 Sebastian Mendel * libraries/Config.class.php: diff --git a/Documentation.html b/Documentation.html index f8966250a8..9b196e6339 100755 --- a/Documentation.html +++ b/Documentation.html @@ -173,12 +173,12 @@ configuration, open (or create in case of starting from scratch) config.inc.php in your favorite editor and fill in there values for host, user, password and authentication mode to fit your - environment. Look at config.default.php how these fields - should be defined. Here, "host" means the MySQL server. - Have a look at Configuration section for an - explanation of all values. Please also read the remaining of this - Installation section for information about authentication modes and - the linked-tables infrastructure.
  • If you are using the + environment. Look at libraries/config.default.php how these + fields should be defined. Here, "host" means the MySQL + server. Have a look at Configuration section + for an explanation of all values. Please also read the remaining of + this Installation section for information about authentication modes + and the linked-tables infrastructure.
  • If you are using the config auth_type, it is suggested that you protect the phpMyAdmin installation directory, for example with HTTP–AUTH in a .htaccess file. See the @@ -415,7 +415,8 @@ GRANT SELECT, INSERT, UPDATE, DELETE ON <pma_db>.* TO 'pma'@'localhost'; Almost all configurable data is placed in config.inc.php. If this file does not exist, please refer to the Quick install section to create one. This file only needs to contain the parameters you want to - change from their corresponding default value in config.default.php. + change from their corresponding default value in + libraries/config.default.php.

    The parameters which relate to design (like colors) are placed in themes/themename/layout.inc.php. You @@ -477,8 +478,8 @@ GRANT SELECT, INSERT, UPDATE, DELETE ON <pma_db>.* TO 'pma'@'localhost'; $cfg['Servers'][$i]['host'] contains the hostname of the first server, the second $cfg['Servers'][$i]['host'] the hostname of the second server, etc. - In config.default.php, there is only one section for server - definition, however you can put as many as you need in + In libraries/config.default.php, there is only one section + for server definition, however you can put as many as you need in config.inc.php, copy that block or needed parts (you don't have to define all settings, just those you need to change). diff --git a/libraries/Config.class.php b/libraries/Config.class.php index 4d85d2e03f..e991f20fa4 100644 --- a/libraries/Config.class.php +++ b/libraries/Config.class.php @@ -7,7 +7,7 @@ class PMA_Config { /** * @var string default config source */ - var $default_source = './config.default.php'; + var $default_source = './libraries/config.default.php'; /** * @var array configuration settings diff --git a/config.default.php b/libraries/config.default.php similarity index 100% rename from config.default.php rename to libraries/config.default.php