Fixes for the latest arfooo directory script (v2.0.2) based on newer php & MySQL versions (v5.5.x)