Added extra useful PHP functions for random generation, file downloads and security checks
Merge remote-tracking branch 'origin/C-Branch' into C-Branch