Re: [gbd-dev] globalsettings and usersettings
Status: Beta
Brought to you by:
mccabe
From: Linus M. <Li...@mc...> - 2005-07-10 16:29:21
|
Hi! Welcome back! A few comments: $gbdDebugServer = localhost; Should be $gbdDebugServer = 'localhost'; The default for home directories on *ix: //$gbdUserDir = "/home/$user" Shouldn't it be //$gbdUserDir = "/home/$user/.gubed/" (or simliar)? And perhaps something similar on windows: //$gbdUserDir = "C:\\Documents and Settings\\$user\\Application Data\\Gubed\\" (Not at a windows box right now, so I dont remember if thats the correct directory) It seems reasonable to change the default server back to localhost like you say. > this value. Also, I didn't include an "AllowDebugServer" option because if > you want to allow a user to debug from any address, you might as well just > set the debugServer in globalsettings.php to $_SERVER['REMOTE_ADDR'] as it Well, isnt there a difference between allowing the user to specify an address (ie 192.168.10.19, which is somewhat safe) and allowing them to specify REMOTE_ADDR (which could be hijacked) ? Also, didnt we agree on an option wether user might be specified on the request? I guess since this is the initial draft you havent done anything yet about how the settings are loaded etc? cheers /Linus On Saturday 09 July 2005 14.53, Aaron McDonald wrote: > Here is an initial draft of the globalsettings.php and usersettings.ini > files. You'll notice that I'm recommending that the default debugServer be > changed back to localhost as I feel that a user should have to set the > value to $_SERVER['REMOTE_ADDR'] and understand the consequences of using > this value. Also, I didn't include an "AllowDebugServer" option because if > you want to allow a user to debug from any address, you might as well just > set the debugServer in globalsettings.php to $_SERVER['REMOTE_ADDR'] as it > will have the same effect. > > Let me know if you have any comments. > > Thanks, > Aaron |