add config.php and fix orders mails

1. add a config.php file in the includes folder, to define the constants
for server ip address and db parameters.
2. fix the orders mails issue on receive and approve.