HTTP_HOST changing in functions.php

As per the OP’s comment:

It is a PageLines theme issue since when I switch to TwentyTwelve I get the proper value for HTTP_HOST

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)