$_ENV doesn't work in GAE, changed to $_SERVER