Skip to content

Commit

Permalink
Feature to stop developers commiting their config.inc.php3 so easily.
Browse files Browse the repository at this point in the history
.cvsignore: 'config.inc.developer.php3' added
libraries/common.lib.php3: added include for 'config.inc.developer.php3'
  • Loading branch information
Robin Johnson committed May 10, 2002
1 parent 6f69e17 commit c07e167
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions .cvsignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
ChangeLog_till_2.2.6.tar.gz
config.inc.developer.php3
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$

2002-05-09 Robin Johnson <robbat2@users.sourceforge.net>
* .cvsignore, libraries/common.lib.php3: Feature to stop developers
commiting their config.inc.php3 so easily.

2002-05-09 Alexander M. Turek <rabus@users.sourceforge.net>
* left.php3, libraries/common.lib.php3:
Fixed bug #546011 (Navigation tooltips).
Expand Down
16 changes: 12 additions & 4 deletions libraries/common.lib.php3
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,19 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')){
$pos = 0;
}


/**
* Parses the configuration file and gets some constants used to define
* versions of phpMyAdmin/php/mysql...
*/
include('./config.inc.php3');

// For compatibility with old config.inc.php3
if (!isset($cfg)) {
include('./config_import.inc.php3');
/**
* Reads in the developer edition config file. This is used exclusively during
* the development cycle of PMA, to prevent the accident of the developers ever
* submitting their config.inc.php3 file.
*/
if (file_exists('./config.inc.developer.php3')) {
include('./config.inc.developer.php3');
}

/**
Expand All @@ -84,6 +87,11 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')){
*/
include('./libraries/defines.lib.php3');

// For compatibility with old config.inc.php3
if (!isset($cfg)) {
include('./config_import.inc.php3');
}

// If zlib output compression is set in the php configuration file, no
// output buffering should be run
if (PMA_PHP_INT_VERSION < 40000
Expand Down

0 comments on commit c07e167

Please sign in to comment.