Create common.php

Committed the common.php file for common functions.