Jump to content

Getting Login Information outside of WHMCS


Jeren

Recommended Posts

Greetings.

 

I'm looking to see how I can determine if a user is logged into WHMCS without being in WHMCS itself (ie: checking their login status from the main site). I tried a search on the forums for this but haven't found any help with this yet.

 

How would I go about doing this?

 

Thanks!

Link to comment
Share on other sites

I'm assuming you mean this: http://support.whmcs.com/knowledgebase.php?action=displayarticle&catid=7&id=26

 

Would this require making the page with the WHMCS template I use? I'm just wanting to check if a user is logged in, so would I be able to just use

<?php

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

$pagetitle = $_LANG['clientareatitle'];
$pageicon = "images/support/clientarea.gif";
$breadcrumbnav=''.$_LANG['globalsystemname'].'';

require("init.php");

if ($_SESSION['loggedinstatus']=="true") {
# User is Logged In - put any code you like here
}

?> 

 

This should allow me to do something if they're logged in but not force me to use the template, right?

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