From: Wesley M. <we...@we...> - 2005-11-30 02:42:20
|
The advantage of having the variables only defined in config.inc.php =20 is security. I personally would not want to expose certain things on =20 the admin page. And I don't think the current situation is too =20 difficult for regular admins to grasp. Right now, config.inc.php can =20 be read-only and it can hide things like the blacklisted calendars or =20= user accounts. We're opening up a whole can of worms if we decide to =20 make this something that can be modified from a web page. Certainly, the idea is nice. But I think things are less complicated =20 and more secure the current way, and there is very little advantage =20 to putting together a web-based admin page. config.inc.php is too =20 straight-forward and simple as it stands for me to believe it can =20 really benefit from a better UI. Anyway, that's my 2 cents. On Nov 29, 2005, at 3:10 AM, Marook Kenja wrote: > Hi Nicolas, > > Well, it was just a suggestion for an easy solution, so you didn't =20 > have to include XML parsing functions, or write your own parser - =20 > or at least a very simple write function. > > As the 'parser' would be a simple 'include "path/to/file.inc.php";' > and the write could simply run through the defined variables, maybe =20= > in an array, it should be Very simple. > > But if you wanna play around with parsing & writing XML files (or =20 > plain text), then fine with me - it's just raising the =20 > implementation level... ;-) > > > Best, > > Jakob Peterh=E4nsel > > 'I don't have to try to be a sex bomb, I am one!' > - Kylie Minogue > > Email: ja...@hj... > AIM: Marook > Phone: +45 22684961 > > On 29/11/2005, at 11:12, Nicolas Contamin wrote: > >> On 11/29/05, Marook Kenja <ma...@cr...> wrote: >>> Hi All, >>> >>> Why not write a PHP constant definition file insted? >>> >>> Then you only need to Write the file, not parse it back, as it would >>> be simple >>> >>> define ('theSettingName', 'theValue'); >>> lines. Would that not be easier, or? >> >> I hardly find the interest of a static page in a script format. >> When I'll click on the 'save' button, I'll have to rewrite a php file >> ? Sound strange to me. >> >> Would mind to explain a little bit more ? >> Parsing is not a real charge for the server according to the =20 >> current process. -- Wesley Miaw we...@we... |