Jump to content

applying whmcs code to our site


neemisha

Recommended Posts

I m new to whmcs. On my site template I m applying the login form for the whmcs site which we are provided in integration code. now I need to display the status, whether logged in or not in whmcs, on my site. Do the whmcs site provide a code or any function which displays the logged in status on my site for whmcs.

 

thanks

Link to comment
Share on other sites

I think you could do it like this:

 

<?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") {
You are logged in
}
else {
You are not logged in
}

# Define the template filename to be used without the .tpl extension
$templatefile = "homepage";

/*
To assign variables in Smarty use the following syntax.
$smarty->assign('variablename', $value);
This can then be used as {$variablename} in the template
*/

include("display.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