added common functions php file
Merge commit '584cf1de2000d732aaee9442555b324688b47033'