rATRIJS/AIP — Issue #6: Make option 'raw_init_include' work from every scenario
Author: rATRIJS
Created: 2011-10-26 22:26:32+00:00
State: open
Labels: Bugs

Currently option _'raw_init_include'_ will only work if server code is loaded together with client code in the same session, because include is executed in 'load.php' which actually inits the client (so there is no way for server to access it if it's loaded in different thread).

Potential solution: Duplicate the include in server load file. Might require some checks so that file isn't included in both client side (load.php) and server side.

Note: I tested the include with WordPress bootstrap file that loads the WordPress engine. If I include it somewhere that's not in global scope then it fails (because WP stupidly uses global variables all over the place).