how do i change the text when i login, the "Register" will change into "Control Panel" and "Login" will become "Logout"?

when i click logout, the control panel & logout will change back to register & login.
But in there have first login after display home page.But I want First display home page with login and then afetr login the text will change in to logout.
code is in a rar file.

You will need to explain what you have. Are you doing this in PHP only, or are you using templates? We need more information.