Bugs in index.php
Brought to you by:
patrickbores
1) $usessl doesn't work, at least with apache.
$HTTPS isn't defined. Neither is REDIRECT_URL.
I don't need this (it's easer to handle with mod_rewrite.) But someone might want to fix it.
2) When user_prefs can't be found, it's useful to report the settings file name.
3) It's possible for the file() call on user_prefs to fail. (One good way is for selinux to get involved.) Should generate a user-visible error when this happens. (Otherwise you get a blank screen - an log full of comet trail errors.)
Patches for (2) and (3) attached.
Enjoy
Patch