PHP App Security Class