PHP functions file

functions for security