Update characterprofile.php

something like this should work, altrough it seems to be webhost dependand mine is fine with defining it in the first run.
Merge pull request #31 from viperthepala/patch-6

Update characterprofile.php