Un poco tarde quizas, pero $this->
se refiere al objeto que esta declarado, por eso no te funciona fuera del contexto, en tu site donde no existe ese objeto (Object Oriented Programming).
Lo mas seguro es que se refiera al objeto forum, donde esta declarada la variable _rootref
Lo mas facil seria ver qué objecto es $this
en ese contexto y llamarlo directamente con PHP desde fuera, sin usar Object Oriented o averiguar quien declara la variable _rootref['S_USER_LOGGED_IN']
y usar eso directamente.
Puedes probar poniendo un echo $this-> _rootref
en esa página para ver a que se traduce y tratar de usarlo luego, si te dice que no existe, tendras que ver donde esta declarado _rootref['S_USER_LOGGED_IN']
y trabajar con eso.
(English)
A bit late maybe, but $this->
is refering to a declared object in that page using Object Oriented Programming. That object only exists on that context, it does not exist outsidte of it like in your other non-phpbb pages so you'll always get that error, no matter what.
I haven't looked too closely at the code but it's probably referring to the forum object or whichever object holds the _rootref
variable.
The easiest thing to do would probably be to find out what object $this
refers to in that context and try to call that from your outside pages. Or find out where _rootref['S_USER_LOGGED_IN']
is declared and use that function in your pages or a variation of it.
You can try echoing it out on that page: echo $this->_rootref
to see if that exists or echo $this->_rootref['S_USER_LOGGED_IN']
if it doesn't. Other than that, look for _rootref['S_USER_LOGGED_IN']
in the project to see where it's being declared.
Hope this helps someone.