Remove deprecated array_pop() behavior. Added necessary
global flags when including URL settings