From: Magnus S. <st...@hk...> - 2002-08-28 16:40:41
|
I agree, the ../../.. stuff is ugly as sin. Since we already define a couple of absolute path variables in config.php (data_dir, attachment_dir) I don't see that having to define sm_path in there too is such a big deal. If people want to move stuff around a lot, one could create a function (maybe called in validate.php) that examines sm_path; if empty string, run dynamicallyComputePath and be done with it. RPM installers, or people which do not wish to move squirrelmail dir on a daily basis (probably the bulk of users) will save a few cpu cycles /magnus Paul Joseph Thompson wrote: > > What an interesting discussion. > > I think that the relative path include stuff that SquirrelMail does right > now is confusing and sloppy. > > However, I also agree that forcing the administrator to set the path is a > little annoying. Though, honestly, this really wouldn't be THAT big of a > deal. > > My suggestion is that we need to dream up some way to generate the > absolute path of the SquirrelMail installation dynamically. Maybe I am > wrong, but I doubt it. > > This would be defined as a constant... > > define(SMPATH, $dynamicallyComputedPath); > > Or something like that. Then we replace all the relative crap and get rid > of the chdir stuff. > > Then one catch here is that all files would need to include the file that > contained the dynamic find my dir code. I don't know exactly how that > would work. > > So, anyone have a bright idea how to pull this off? I think that it would > be good for SquirrelMail. I could probably come up with something myself, > but should probably rather do some work work... > > -- > Paul Joseph Thompson > cap...@sq... > AIM/Yahoo/MSN IM: Captain Bunzo > ICQ Number: 38801719 > > ------------------------------------------------------- > This sf.net email is sponsored by: Jabber - The world's fastest growing > real-time communications platform! Don't just IM. Build it in! > http://www.jabber.com/osdn/xim > -- > squirrelmail-devel mailing list > List Address: squ...@li... > List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel > http://squirrelmail.org/cvs |