Quote:
Originally Posted by buro9
I'm afraid not.
That hook is called before the session has been created and we have the user who is currently logged on. Until we have a session we do not know whether the user who is logged on is set to be invisible.
Ideally there would be a init_completed hook and we could use that, but there isn't one so to avoid hooking the start of every single other script, I insert the 3 lines to the end of init.php.
|
So why can't you use
global_start or one of the other hooks in global.php ?