Jump to content

Linking Variables To Other Directories


ScottPlunkett

Recommended Posts

Hi Guys,

 

At the top of my website I want to display some messages based on if the user is logged in to the client area or not. In example used below:

 

Welcome to PrivaHost, Your Not Logged In! - (Not Logged in User Message)

 

Welcome Back To PrivaHost, {$loggedinuser.firstname} (Would Show First Name) - (Logged In Message)

 

But, My WHMCS is in another directory. It's at domain.com/manage instead of domain.com.. How would I link my variables to the WHMCS directory so that it will show their first name and know if they are logged in.

 

Thanks alot for your help and replies,

 

Scott P.

Link to comment
Share on other sites

Payton is correct, but forgot to add that when you create your custom pages, you will need to modify the PHP includes on the page. So instead of:

require("dbconnect.php");

require("includes/functions.php");

require("includes/clientareafunctions.php");

you would have something like:

require("whmcs/dbconnect.php");

require("whmcs/includes/functions.php");

require("whmcs/includes/clientareafunctions.php");

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated