Clicking "Dashboard" Logs me out

I am having trouble logging in as an admin on my website. I recently changed the URLs from local hose to As soon as i did that I have been unable to log on as an admin. I tried putting the following code in front of ‘<?php’ within the active themes functions.php file but no luck.



I would like to know how I can log on to dashboard again. Thanks

I would even consider a restoring everything to default if there is a way to do that

I have buddypress installed and I am using godaddy to host the domain.