Greetings everybody,
Now that my finals are over, the first set of changes are going to be underway for the DB-based configuration mechanisms.
The one major change that needs to put into the existing code revolves around how we deal with the configuration variable names.
Presently in config.inc.php3 we have some code like this: $cfgServers[$i]['relation'] = ''; $cfgServerDefault = 1; etc.
For writing the configuration mechanism, I would like to move everything to an array such as $cfg['Servers'][$i]['relation'] = ''; $cfg['ServerDefault'] = 1;
Instead, and then I can implement the entire configuration mechanism transparently inside a library function, that is called at startup to handle anything that needs to be done.
Unfortunetly, there are ~760 instances of '$cfg', so this change is going to take a while, and ideally we would want to have this change well settled and in place to implement the configuration mechanism, as it _WILL_ break things if it is only partially implemented.
Is somebody else willing to help me on this?
Robin,
Yes I can help you. Let's see how many want to help, then we can split the work.
Marc
Robin Johnson a écrit :
Greetings everybody,
Now that my finals are over, the first set of changes are going to be underway for the DB-based configuration mechanisms.
The one major change that needs to put into the existing code revolves around how we deal with the configuration variable names.
Presently in config.inc.php3 we have some code like this: $cfgServers[$i]['relation'] = ''; $cfgServerDefault = 1; etc.
For writing the configuration mechanism, I would like to move everything to an array such as $cfg['Servers'][$i]['relation'] = ''; $cfg['ServerDefault'] = 1;
Instead, and then I can implement the entire configuration mechanism transparently inside a library function, that is called at startup to handle anything that needs to be done.
Unfortunetly, there are ~760 instances of '$cfg', so this change is going to take a while, and ideally we would want to have this change well settled and in place to implement the configuration mechanism, as it _WILL_ break things if it is only partially implemented.
Is somebody else willing to help me on this?
-- Robin Hugh Johnson E-Mail : robbat2@orbis-terrarum.net Home Page : http://www.orbis-terrarum.net/?l=people.robbat2 ICQ# : 30269588 or 41961639
Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
----- Original Message ----- From: "Robin Johnson" robbat2@fermi.orbis-terrarum.net
Presently in config.inc.php3 we have some code like this: $cfgServers[$i]['relation'] = ''; $cfgServerDefault = 1; etc.
For writing the configuration mechanism, I would like to move everything to an array such as $cfg['Servers'][$i]['relation'] = ''; $cfg['ServerDefault'] = 1;
Instead, and then I can implement the entire configuration mechanism transparently inside a library function, that is called at startup to handle anything that needs to be done.
Unfortunetly, there are ~760 instances of '$cfg', so this change is going to take a while, and ideally we would want to have this change well settled and in place to implement the configuration mechanism, as it _WILL_ break things if it is only partially implemented.
Is somebody else willing to help me on this?
Sounds like a copy&paste work. Sounds like a job for me :o)
Alexander
Robin, Alexander,
how do we split the work?
I could do the tbl_* files, Alexander could do the /libraries, and you could do the rest. OK?
I will also put on phpmyadmin.net that CVS version is 2.3.0 and may be broken, ok?
Robin Johnson a écrit :
Greetings everybody,
Now that my finals are over, the first set of changes are going to be underway for the DB-based configuration mechanisms.
The one major change that needs to put into the existing code revolves around how we deal with the configuration variable names.
Presently in config.inc.php3 we have some code like this: $cfgServers[$i]['relation'] = ''; $cfgServerDefault = 1; etc.
For writing the configuration mechanism, I would like to move everything to an array such as $cfg['Servers'][$i]['relation'] = ''; $cfg['ServerDefault'] = 1;
Instead, and then I can implement the entire configuration mechanism transparently inside a library function, that is called at startup to handle anything that needs to be done.
Unfortunetly, there are ~760 instances of '$cfg', so this change is going to take a while, and ideally we would want to have this change well settled and in place to implement the configuration mechanism, as it _WILL_ break things if it is only partially implemented.
Is somebody else willing to help me on this?
-- Robin Hugh Johnson E-Mail : robbat2@orbis-terrarum.net Home Page : http://www.orbis-terrarum.net/?l=people.robbat2 ICQ# : 30269588 or 41961639
Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
On Tue, 23 Apr 2002, Marc Delisle wrote:
I could do the tbl_* files, Alexander could do the /libraries, and you could do the rest. OK?
Sounds reasonable to me, but could somebody else please do the language files? (there is one instance of $cfgPmaAbsoluteUri in each language file) Subtotals are: 427 Robin 125 Marc 124 Alexander
I will also put on phpmyadmin.net that CVS version is 2.3.0 and may be broken, ok?
As Loic said, could you tag the tree before we start the major work, and then notify us on the list that the tree is tagged?
----- Original Message ----- From: "Marc Delisle" DelislMa@CollegeSherbrooke.qc.ca
I could do the tbl_* files, Alexander could do the /libraries, and you
could do the rest.
OK?
So, the backwards compatibility code is up to me (common.lib.php3)? :o) All right then, I'll convert the libraries. Robin, could you just rewrite the config.inc.php3 so that it fits into your code and send it to Marc, Loïc and me? Thx,
Alexander
On Tue, 23 Apr 2002, Rabus wrote:
So, the backwards compatibility code is up to me (common.lib.php3)? :o) All right then, I'll convert the libraries. Robin, could you just rewrite the config.inc.php3 so that it fits into your code and send it to Marc, Lo�c and me? Thx,
The updated config.inc.php3 is attached. I have NOT checked it into the CVS tree at this time, as I am uncertain what is taking place with that given the current discussions on that matter.
Rabus a écrit :
----- Original Message ----- From: "Marc Delisle" DelislMa@CollegeSherbrooke.qc.ca
I could do the tbl_* files, Alexander could do the /libraries, and you
could do the rest.
OK?
So, the backwards compatibility code is up to me (common.lib.php3)? :o)
Should we really support the old config file format?
All right then, I'll convert the libraries. Robin, could you just rewrite the config.inc.php3 so that it fits into your code and send it to Marc, Loïc and me? Thx,