Northern Host Posted January 21, 2015 Share Posted January 21, 2015 I have my website built around WHMCS. The issue I'm running into is that even though the user is logged in, they must visit the client area first upon each new visit to the site in order to show they are authenticated, then everything is fine. Is it possible to change this, because I have it say "Welcome Back, User" at the top of my home page and they can't see it unless they are logged in. This is the code I have at the top of my custom pages. <?php require($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."clients/init.php"); $whmcs = new WHMCS_ClientArea(); if ($whmcs->isLoggedIn()) { $whmcs_result = mysql_query("SELECT * FROM tblclients WHERE id=".$whmcs->getUserID()); $whmcs_data = mysql_fetch_array($whmcs_result, MYSQL_ASSOC); } ?> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.