Hello,
I was wondering if there is any way to check whether a client is logged in on my homepage.
I have the WHMCS portal/panel integrated already and I want to show a log in box on my homepage.
I want it so that if they are not signed in, a login form appears (already have the code for that) and if they are signed in, then it shows the following:
Welcome Back, [first name]!
[Link to portal]
[sign out link]
I was also wondering if it was possible to show an admin page link if the user is an admin.
Any suggestions about how to show different text if they are signed in or if they are signed out?
The current portal is at http://portal.willhosting.com/ and the website is at http://willhosting.com (though, we are working on a beta one, too)
If anyone could help, it would be greatly appreciated by Will Hosting and by our clients.