Jump to content

the login session on non-WHMCS pages?


born13

Recommended Posts

hello

 

i try to create a whmcs login menu on non-WHMCS page for my wordpress site, i put the following codes in my theme function, and create " if ($_SESSION['uid'])...else " codes on my homepage, it is working, but when i go to my wordpress appearance/menu/ and try to add menu or editing different menu, the editing page goes blank; i create a non-encrypted php file with some dummy text and put it in whmcs folder, and set the same path as following in my theme function, the editing page appear again. any helps?? thanks

 

require($_SERVER['DOCUMENT_ROOT']."/whmcs/dbconnect.php");

require($_SERVER['DOCUMENT_ROOT']."/whmcs/includes/functions.php");

require($_SERVER['DOCUMENT_ROOT']."/whmcs/includes/clientareafunctions.php");

 

function user_get_id()

{

$pagetitle = '';

$pageicon = "";

$breadcrumbnav = '';

initialiseClientArea($pagetitle,$pageicon,$breadcrumbnav);

$sessionid = $_SESSION['uid'];

return $sessionid;

}

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