Removed global vars are DOCUMENTROOT, SERVERROOT, SUBURI, WEBROOT and CONFIG_DATADIRECTORY
the only problem that I found with it so far is that it gives a database locked error on login, the rest seems to work fine but more testing is required.